Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added temp dir to featurecounts (#455)
* Added handling of tempdir * Added author * Fixed output file names and added doc * Reformat * Added missing argument
- Loading branch information
Showing
3 changed files
with
32 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
name: subread featureCounts | ||
description: > | ||
FeatureCounts assign mapped reads or fragments (paired-end data) to genomic features such as genes, exons and promoters. | ||
For more information please see `featureCounts tutorial <http://bioinf.wehi.edu.au/featureCounts/>`_, `documentation of subread <https://bioconductor.org/packages/release/bioc/vignettes/Rsubread/inst/doc/SubreadUsersGuide.pdf>`_ and commandline help. | ||
author: | ||
- Antonie Vietor | ||
- Filipe G. Vieira | ||
input: | ||
- a list of .sam or .bam files | ||
- GTF, GFF or SAF annotation file | ||
- optional a tab separating file that determines the sorting order and contains the chromosome names in the first column | ||
- optional a fasta index file | ||
output: | ||
- .featureCounts file including read counts (tab separated) | ||
- .featureCounts.summary file including summary statistics (tab separated) | ||
- .featureCounts.jcounts file including count number of reads supporting each exon-exon junction (tab separated) | ||
- Feature counts file including read counts (tab separated) | ||
- Summary file including summary statistics (tab separated) | ||
- Junction counts file including count number of reads supporting each exon-exon junction (tab separated) | ||
notes: | | ||
* The `extra` param allows for additional program arguments. | ||
* For more information see, http://subread.sourceforge.net/ and https://bioconductor.org/packages/release/bioc/vignettes/Rsubread/inst/doc/SubreadUsersGuide.pdf | ||
* For a tutorial see, http://bioinf.wehi.edu.au/featureCounts/ |
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,22 +1,22 @@ | ||
rule feature_counts: | ||
input: | ||
sam="{sample}.bam", # list of sam or bam files | ||
samples="{sample}.bam", # list of sam or bam files | ||
annotation="annotation.gtf", | ||
# optional input | ||
# chr_names="", # implicitly sets the -A flag | ||
# fasta="genome.fasta" # implicitly sets the -G flag | ||
# fasta="genome.fasta" # implicitly sets the -G flag | ||
output: | ||
multiext("results/{sample}", | ||
".featureCounts", | ||
".featureCounts.summary", | ||
".featureCounts.jcounts") | ||
threads: | ||
2 | ||
multiext( | ||
"results/{sample}", | ||
".featureCounts", | ||
".featureCounts.summary", | ||
".featureCounts.jcounts", | ||
), | ||
threads: 2 | ||
params: | ||
tmp_dir="", # implicitly sets the --tmpDir flag | ||
r_path="", # implicitly sets the --Rpath flag | ||
extra="-O --fracOverlap 0.2" | ||
r_path="", # implicitly sets the --Rpath flag | ||
extra="-O --fracOverlap 0.2 -J", | ||
log: | ||
"logs/{sample}.log" | ||
"logs/{sample}.log", | ||
wrapper: | ||
"master/bio/subread/featurecounts" |
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