Skip to content
Snippets Groups Projects
Commit 2b5d39eb authored by seehagec01's avatar seehagec01
Browse files
parents 14a0711b a05ab632
No related branches found
No related tags found
No related merge requests found
...@@ -11,22 +11,22 @@ rule samtool: ...@@ -11,22 +11,22 @@ rule samtool:
shell: shell:
"samtools view --threads {threads} -f4 {input} > {output}" "samtools view --threads {threads} -f4 {input} > {output}"
rule fastq: rule converts:
input: input:
"results/unmapped/ERR4082860_unmapped.sam" "results/unmapped/{sample}_unmapped.sam"
output: output:
"results/unmapped_fastq/ERR4082860_1_unmapped.fastq", "results/unmapped_converts/{sample}_1_unmapped.fastq",
"results/unmapped_fastq/ERR4082860_2_unmapped.fastq" "results/unmapped_converts/{sample}_2_unmapped.fastq"
log: log:
"workflow/report/fastq/ERR4082860.log" "workflow/report/converts/{sample}.log"
threads:4 threads:4
conda: conda:
"../envs/yourenv.yaml" "../envs/yourenv.yaml"
shell: shell:
""" """
samtools view -S -b --threads={threads} {input} > ERR4082860_unmapped.bam samtools view -S -b --threads={threads} {input} > {wildcards.sample}_unmapped.bam 2> {log}
samtools sort -n ERR4082860_unmapped.bam -o ERR4082860_sorted.bam samtools sort -n {wildcards.sample}_unmapped.bam -o {wildcards.sample}_sorted.bam 2>> {log}
bedtools bamtofastq -i ERR4082860_sorted.bam -fq {output[0]} -fq2 {output[1]} 2> {log} bedtools bamtofastq -i {wildcards.sample}_sorted.bam -fq {output[0]} -fq2 {output[1]} 2>> {log}
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment