Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Araformatics group
Araformatics project
Commits
b9d4b867
Commit
b9d4b867
authored
Dec 07, 2021
by
Molemaker, Maureen
Browse files
added docstring and index_bam rule, also added -e to the stringtie command
parent
ed411cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/mapping
View file @
b9d4b867
...
...
@@ -3,7 +3,7 @@ Author: Maureen Molemaker, studentnumber
Author: Liset Eendebak, studentnumber 1014355
script to map the fastq reads onto the reference genome
and to annotate the transcripts
Usage: snakemake -s mapping -c
1 # use 1
core
Usage: snakemake -s mapping -c
<no. of
core
s>
"""
SAMPLES = ["20180613.A-13R1", "20180613.A-13R2", "20180613.A-13R3",
...
...
@@ -42,6 +42,14 @@ rule sort_sam: # works for both bowtie2 and hisat2
shell:
"samtools sort -o {output} {input}"
#This rule was used for validating the mapping in IGV
#rule index_bam: # works for both bowtie2 and hisat2
# input:
# "{sample}_hisat2.bam"
# output:
# "{sample}_hisat2.bam.bai"
# shell:
# "samtools index {input}"
rule gene_annotation:
input:
...
...
@@ -52,7 +60,7 @@ rule gene_annotation:
params:
label="{sample}"
shell:
"stringtie -G {input.annotation} -o {output} -l {params.label} {input.bamfile}"
"stringtie -G {input.annotation}
-e
-o {output} -l {params.label} {input.bamfile}"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment