Skip to content

Commit 560975e

Browse files
authored
Fix IdentifyDuplicates to resolve NoneType mismatches (#788)
* Initial commit * Removed trailing whitespace * Used .get(x, y) to standardize with repo
1 parent abf305d commit 560975e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/sv-pipeline/scripts/identify_duplicates.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def process_duplicates(vcf, fout):
4444
record.stop,
4545
record.info.get('SVTYPE'),
4646
record.info.get('SVLEN'),
47-
record.info.get('CHR2'),
48-
record.info.get('END2'),
49-
record.info.get('STRANDS'),
50-
record.info.get('CPX_TYPE'),
51-
record.info.get('CPX_INTERVALS')
47+
record.info.get('CHR2', ""),
48+
record.info.get('END2', 0),
49+
record.info.get('STRANDS', ""),
50+
record.info.get('CPX_TYPE', ""),
51+
record.info.get('CPX_INTERVALS', "")
5252
)
5353
exact_buffer.append((exact_key, record.id))
5454

0 commit comments

Comments
 (0)