Skip to content

Commit

Permalink
resolved typo in input rule for single-end reads
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed May 12, 2024
1 parent 142fb0b commit 939f57b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,14 @@ def get_star_input(wildcards):
elif config['data']['rnaseq_filetype'] == '.fq' or config['data']['rnaseq_filetype'] == '.fastq':
if config['preproc']['activate']:
if config['data']['rnaseq_readtype'] == 'SE':
return expand("results/{sample}/rnaseq/preproc/reads.fq.gz", **wildcards)
return dict(
zip(
["fq1"],
expand("results/{sample}/rnaseq/reads/{group}_preproc.fq.gz",
sample=wildcards.sample,
group=wildcards.group)
)
)
elif config['data']['rnaseq_readtype'] == 'PE': # PE
return dict(
zip(
Expand All @@ -390,7 +397,7 @@ def get_star_input(wildcards):
)
else: # no pre-processing
return config['data']['rnaseq'][wildcards.group]

# collect the individual alignments from splitted bamfiles
def aggregate_aligned_rg(wildcards):
# make sure that all samples are processed in checkpoint - split fastq file
Expand Down
1 change: 1 addition & 0 deletions workflow/rules/hlatyping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ rule index_hla_panel:
"../envs/yara.yml"
shell:
"""
mkdir -p resources/hla/yara_index/
yara_indexer \
-o resources/hla/yara_index/{wildcards.nartype} \
{input.fa} > {log}
Expand Down
3 changes: 1 addition & 2 deletions workflow/rules/quantification.smk
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ rule countfeatures_rnaseq:
sample = "results/{sample}/rnaseq/align/{group}_final_STAR.bam",
annotation_file = "resources/refs/genome.gtf"
output:
table = "results/{sample}/rnaseq/quantification/{group}_counts.txt",
summary = "results/{sample}/rnaseq/quantification/{group}_counts.txt.summary",
"results/{sample}/rnaseq/quantification/{group}_counts.txt"
log:
"logs/{sample}/featurecounts/rnaseq_{group}.log",
threads: 2
Expand Down

0 comments on commit 939f57b

Please sign in to comment.