Skip to content

Commit

Permalink
fix rule align (star) parameters and make gtf an actual input
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaehnemann committed Apr 19, 2023
1 parent 9bb366c commit fdce847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ diffexp:
params:
cutadapt-pe: ""
cutadapt-se: ""
star: "--outSAMtype BAM Unsorted"
star: ""
5 changes: 2 additions & 3 deletions workflow/rules/align.smk
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ rule align:
input:
unpack(get_fq),
index="resources/star_genome",
gtf="resources/genome.gtf"
output:
aln="results/star/{sample}_{unit}/Aligned.sortedByCoord.out.bam",
reads_per_gene="results/star/{sample}_{unit}/ReadsPerGene.out.tab",
log:
"logs/star/{sample}_{unit}.log",
params:
idx=lambda wc, input: input.index,
extra="--outSAMtype BAM SortedByCoordinate --quantMode GeneCounts --sjdbGTFfile {} {}".format(
"resources/genome.gtf", config["params"]["star"]
),
extra=lambda wc, input: f'--outSAMtype BAM SortedByCoordinate --quantMode GeneCounts --sjdbGTFfile {input.gtf} {config["params"]["star"]}',
threads: 24
wrapper:
"v1.21.4/bio/star/align"

0 comments on commit fdce847

Please sign in to comment.