Skip to content

Commit

Permalink
fix getting read length issue for single index
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Mar 29, 2024
1 parent 26484bf commit d3e6ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions demux_run_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def stats(ds, **kwargs):

# check if the run is 10X by read length
atac, use_bases_mask = scripts.get_sequencing_read_data.main(sequencer_path)
print("read length: {}".format(use_bases_mask))
if use_bases_mask == [29, 89] or atac:
# if is atac run, demux is using cellranger mkfastq
if atac:
Expand Down
2 changes: 1 addition & 1 deletion scripts/get_sequencing_read_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_sequencing_read_data(sequencer_path):
use_bases_mask = "Y" + str(reads_tag[0][1]) + ",I" + str(reads_tag[1][1]) + ",Y" + str(reads_tag[2][1]) + ",Y" + str(reads_tag[3][1])
else:
atac = False
use_bases_mask = [reads_tag[0][1], reads_tag[3][1]]
use_bases_mask = [reads_tag[0][1], reads_tag[-1][1]]

return(atac, use_bases_mask)

Expand Down

0 comments on commit d3e6ad0

Please sign in to comment.