Skip to content

Commit

Permalink
added missing output of index in realign
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Aug 16, 2023
1 parent ba70d0e commit 201b42c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workflow/rules/align.smk
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ rule realign:
rg="results/{sample}/rnaseq/reads/{group}_readgroups.txt",
idx = multiext("resources/refs/bwa/genome", ".amb", ".ann", ".bwt", ".pac", ".sa"),
output:
"results/{sample}/rnaseq/align/{group}_final_BWA.bam"
bam="results/{sample}/dnaseq/align/{group}_final_BWA.bam"
idx="results/{sample}/dnaseq/align/{group}_final_BWA.bam.bai"
conda:
"../envs/basic.yml"
log:
Expand All @@ -182,7 +183,7 @@ rule realign:
| samtools fastq -OT RG -@ {threads} - \
| bwa mem -pt{threads} -CH <(cat {input.rg}) resources/refs/bwa/genome - \
| samtools sort -@6 -m1g - -o {output} > {log} 2>&1
samtools index {output}
samtools index {output.bam}
"""

### workflow when aligning paired-end fastq files for DNAseq
Expand Down

0 comments on commit 201b42c

Please sign in to comment.