Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated versions and fixes for samtools wrappers. (#431)
* Added proper tempdir and updated version * Reformat * Added log files and missing import * Fixed tempfile * Fix tmpfil * Yet another tmpfile fix * Changed wrapper name since it also changed in samtools * Changed params name * Removed extension * chore: exclude deleted files from those that are linted Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
- Loading branch information
1 parent
1117186
commit cbba82d
Showing
17 changed files
with
65 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ channels: | |
- conda-forge | ||
- bioconda | ||
dependencies: | ||
- samtools ==1.10 | ||
- samtools =1.14 |
5 changes: 4 additions & 1 deletion
5
bio/samtools/bam2fq/interleaved/meta.yaml → bio/samtools/fastq/interleaved/meta.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
name: samtools bam2fq interleaved | ||
name: samtools fastq interleaved | ||
description: | ||
Convert a bam file back to unaligned reads in a single fastq file with | ||
samtools. For paired end reads, this results in an unsorted interleaved file. | ||
authors: | ||
- David Laehnemann | ||
- Victoria Sack | ||
- Filipe G. Vieira | ||
notes: | | ||
* For more information see, http://www.htslib.org/doc/samtools-fasta.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
rule samtools_fastq_interleaved: | ||
input: | ||
"mapped/{sample}.bam", | ||
output: | ||
"reads/{sample}.fq", | ||
log: | ||
"{sample}.interleaved.log", | ||
params: | ||
" ", | ||
threads: 3 | ||
wrapper: | ||
"master/bio/samtools/fastq/interleaved" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ channels: | |
- conda-forge | ||
- bioconda | ||
dependencies: | ||
- samtools ==1.10 | ||
- samtools =1.14 |
8 changes: 5 additions & 3 deletions
8
bio/samtools/bam2fq/separate/meta.yaml → bio/samtools/fastq/separate/meta.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
name: samtools bam2fq separate | ||
name: samtools fastq separate | ||
description: | ||
Convert a bam file with paired end reads back to unaligned reads in a two | ||
separate fastq files with samtools. Reads that are not properly paired are | ||
discarded (READ_OTHER and singleton reads in samtools bam2fq documentation), | ||
separate fastq files with `samtools`. Reads that are not properly paired are | ||
discarded (READ_OTHER and singleton reads in `samtools fastq` documentation), | ||
as are secondary (0x100) and supplementary reads (0x800). | ||
authors: | ||
- David Laehnemann | ||
- Victoria Sack | ||
- Filipe G. Vieira | ||
notes: | | ||
* Samtools -@/--threads takes one integer as input. This is the number of additional threads and not raw threads. | ||
* For more information see, http://www.htslib.org/doc/samtools-fasta.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
rule samtools_fastq_separate: | ||
input: | ||
"mapped/{sample}.bam", | ||
output: | ||
"reads/{sample}.1.fq", | ||
"reads/{sample}.2.fq", | ||
log: | ||
"{sample}.separate.log", | ||
params: | ||
sort="-m 4G", | ||
fastq="-n", | ||
# Remember, this is the number of samtools' additional threads. At least 2 threads have to be requested on cluster sumbission. This value - 2 will be sent to samtools sort -@ argument. | ||
threads: 3 | ||
wrapper: | ||
"master/bio/samtools/fastq/separate" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters