Skip to content

Commit

Permalink
add precision to zgrep sample demuxing (#189)
Browse files Browse the repository at this point in the history
adds the `BX:Z:` prefix to the zgrep command to make sure it's only targeting the BX tag in the read header
  • Loading branch information
pdimens authored Jan 30, 2025
1 parent 1beb8e1 commit 25fa6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harpy/snakefiles/demultiplex_gen1.smk
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ rule demultiplex_samples:
None
shell:
"""
( zgrep -A3 "A..{params}B..D" {input} | grep -v "^--$" | gzip -q > {output} ) || touch {output}
( zgrep -A3 "BX:Z:A..{params}B..D" {input} | grep -v "^--$" | gzip -q > {output} ) || touch {output}
"""

rule assess_quality:
Expand Down

0 comments on commit 25fa6ed

Please sign in to comment.