Skip to content

Commit fdce847

Browse files
committed
fix rule align (star) parameters and make gtf an actual input
1 parent 9bb366c commit fdce847

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ diffexp:
5959
params:
6060
cutadapt-pe: ""
6161
cutadapt-se: ""
62-
star: "--outSAMtype BAM Unsorted"
62+
star: ""

workflow/rules/align.smk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ rule align:
22
input:
33
unpack(get_fq),
44
index="resources/star_genome",
5+
gtf="resources/genome.gtf"
56
output:
67
aln="results/star/{sample}_{unit}/Aligned.sortedByCoord.out.bam",
78
reads_per_gene="results/star/{sample}_{unit}/ReadsPerGene.out.tab",
89
log:
910
"logs/star/{sample}_{unit}.log",
1011
params:
1112
idx=lambda wc, input: input.index,
12-
extra="--outSAMtype BAM SortedByCoordinate --quantMode GeneCounts --sjdbGTFfile {} {}".format(
13-
"resources/genome.gtf", config["params"]["star"]
14-
),
13+
extra=lambda wc, input: f'--outSAMtype BAM SortedByCoordinate --quantMode GeneCounts --sjdbGTFfile {input.gtf} {config["params"]["star"]}',
1514
threads: 24
1615
wrapper:
1716
"v1.21.4/bio/star/align"

0 commit comments

Comments
 (0)