Skip to content

Commit

Permalink
Create fastqc adapters TSV file from fasta file
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Apr 10, 2024
1 parent 30db0c7 commit c3e5db4
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ rule fastqc_raw:
tmp=$(mktemp -d -p "{params.tmpdir}")
trap 'rm -rf "${{tmp}}"' EXIT
# Create fastqc adapters file,
# file needs to be in TSV format
paste - - < "{params.adapters}" \\
| sed 's/^>//g' \\
> "${{tmp}}/adapters.tsv"
# Running fastqc with local
# disk or a tmpdir, fastqc
# has been observed to lock
# up gpfs filesystems, adding
# this on request by HPC staff
fastqc \\
-a "{params.adapters}" \\
-a "${{tmp}}/adapters.tsv" \\
-t {threads} \\
-o "${{tmp}}" \\
{input.fq}
Expand Down Expand Up @@ -80,13 +86,19 @@ rule fastqc_trim:
tmp=$(mktemp -d -p "{params.tmpdir}")
trap 'rm -rf "${{tmp}}"' EXIT
# Create fastqc adapters file,
# file needs to be in TSV format
paste - - < "{params.adapters}" \\
| sed 's/^>//g' \\
> "${{tmp}}/adapters.tsv"
# Running fastqc with local
# disk or a tmpdir, fastqc
# has been observed to lock
# up gpfs filesystems, adding
# this on request by HPC staff
fastqc \\
-a "{params.adapters}" \\
-a "${{tmp}}/adapters.tsv" \\
-t {threads} \\
-o "${{tmp}}" \\
{input.fq}
Expand Down

0 comments on commit c3e5db4

Please sign in to comment.