Skip to content

Commit

Permalink
Linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kjaisingh committed Jan 7, 2025
1 parent a61a342 commit 9079a3b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/svtk/svtk/standardize/std_dragen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from svtk.utils import is_smaller_chrom, parse_bnd_pos, parse_bnd_strands
from .standardize import VCFStandardizer


def checkInversion(record):
isInv3 = False
isInv5 = False
Expand All @@ -24,7 +25,7 @@ def getMateInfo(splitChar):
mateChr = ":".join(mateInfo[:-1])
matePos = int(matePos)
return mateChr, matePos

if record.alts[0].startswith('['):
mateChr, matePos = getMateInfo('[')
if mateChr == record.chrom:
Expand All @@ -36,6 +37,7 @@ def getMateInfo(splitChar):

return isInv3, isInv5, matePos


@VCFStandardizer.register('dragen')
class DragenStandardizer(VCFStandardizer):
def standardize_records(self):
Expand All @@ -57,7 +59,7 @@ def standardize_records(self):

# Track IDs of observed records
mate_IDs.append(record.id)

yield self.standardize_record(record)

def standardize_info(self, std_rec, raw_rec):
Expand Down Expand Up @@ -126,7 +128,7 @@ def standardize_info(self, std_rec, raw_rec):

# Update ALGORITHMS
std_rec.info['ALGORITHMS'] = ['dragen']

# Update INV
isInv3, isInv5, matePos = checkInversion(raw_rec)
if isInv3 or isInv5:
Expand Down

0 comments on commit 9079a3b

Please sign in to comment.