Skip to content

Commit

Permalink
Final dragen standardizer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kjaisingh committed Jan 21, 2025
1 parent 266734e commit f4b502f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/svtk/svtk/standardize/std_dragen.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,17 @@ def standardize_info(self, std_rec, raw_rec):
5. Define ALGORITHMS.
"""

# Update SVTYPE
# Retrieve record data
svtype = raw_rec.info['SVTYPE']

# Check INV
isInv3, isInv5, matePos = checkInversion(raw_rec)
if isInv3 or isInv5:
svtype = 'INV'

# Check TANDEM DUP
if 'DUPSVLEN' in raw_rec.info:
svtype = 'DUP'
# Convert INS to DUP for tandem duplications
# if 'DUPSVLEN' in raw_rec.info:
# svtype = 'DUP'

# Update SVTYPE
std_rec.info['SVTYPE'] = svtype

# Update ID
Expand Down

0 comments on commit f4b502f

Please sign in to comment.