Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-cunial committed Mar 24, 2024
1 parent 626e245 commit 158b111
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker/truvari_intrasample/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ def resolve(entry, ref):
if entry.alts[0] in ['<CNV>', '<INS>']:
return None

seq = ref.fetch(entry.chrom, entry.start, entry.stop)
seq_prime = ref.fetch(entry.chrom, entry.start, entry.stop)


# FC> Replacing non-standard DNA characters with an N
for i in range(len(seq)):
c = seq[i].upper()
seq = ""
for i in range(len(seq_prime)):
c = seq_prime[i].upper()
if c!='A' and c!='C' and c!='G' and c!='T':
seq[i] = 'N'
seq = seq + 'N'
else:
seq = seq + seq_prime[i]



Expand Down

0 comments on commit 158b111

Please sign in to comment.