Skip to content

Commit

Permalink
fix bug for non standard fastq file
Browse files Browse the repository at this point in the history
  • Loading branch information
y9c committed Jul 29, 2023
1 parent 28d84f8 commit 7202325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ rule run_cutadapt:
SAMPLE2BARCODE[wildcards.sample]["umi5"],
SAMPLE2BARCODE[wildcards.sample]["umi3"],
)
+ ' --rename="{id}_{cut_prefix}{cut_suffix} {comment}"'
+ ' --rename="{id}_{cut_prefix}{cut_suffix}"'
if SAMPLE2BARCODE[wildcards.sample]["umi5"] > 0
and SAMPLE2BARCODE[wildcards.sample]["umi3"] > 0
else "-u {}".format(SAMPLE2BARCODE[wildcards.sample]["umi5"])
+ ' --rename="{id}_{cut_prefix} {comment}"'
+ ' --rename="{id}_{cut_prefix}"'
if SAMPLE2BARCODE[wildcards.sample]["umi5"] > 0
else "-u -{}".format(SAMPLE2BARCODE[wildcards.sample]["umi3"])
+ ' --rename="{id}_{cut_suffix} {comment}"'
+ ' --rename="{id}_{cut_suffix}"'
if SAMPLE2BARCODE[wildcards.sample]["umi3"] > 0
else "",
mask_ends_args=lambda wildcards: "-u {}".format(
Expand Down
Binary file modified bin/joinFastq
Binary file not shown.

0 comments on commit 7202325

Please sign in to comment.