Skip to content

Commit c839920

Browse files
committed
handle empty clonotype ids in 10x contigs file
1 parent e4b6a30 commit c839920

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

make_10x_clones_file.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def read_tcr_data(
7171
else:
7272
clonotype2barcodes[clonotype].append( bc )
7373

74-
print l['productive']
74+
if not clonotype:
75+
print 'empty clonotype id:', l
76+
continue
77+
assert clonotype
7578
## experimenting here ########################################3
7679
if l['productive'].lower() != 'true':
7780
continue

0 commit comments

Comments
 (0)