Skip to content

Commit 145d81b

Browse files
committed
Change the way how samples are sorted
1 parent 5358eff commit 145d81b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

taca/illumina/HiSeqX_Runs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ def _generate_clean_samplesheet(ssparser, indexfile, fields_to_remove=None, rena
374374
sample['index2'] = index_dict_smartseq[smartseq_index][x][1]
375375

376376
# Sort to get the added indicies from 10x in the right place
377-
# Python 3 doesn't support sorting a list of dicts implicitly. Sort by lane and then index
378-
ssparser.data.sort(key=lambda item: (item.get('Lane'), item.get('index')))
377+
# Python 3 doesn't support sorting a list of dicts implicitly. Sort by lane and then Sample_ID
378+
ssparser.data.sort(key=lambda item: (item.get('Lane'), item.get('Sample_ID')))
379379

380380
if not fields_to_remove:
381381
fields_to_remove = []

0 commit comments

Comments
 (0)