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 c5a48c1 commit 626e245
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/truvari_intrasample/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ def resolve(entry, ref):
return None

seq = 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()
if c!='A' and c!='C' and c!='G' and c!='T':
seq[i] = 'N'



if entry.alts[0] == '<DEL>':
entry.ref = seq
entry.alts = [seq[0]]
Expand Down

0 comments on commit 626e245

Please sign in to comment.