-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new rule to get transcript counts
- Loading branch information
1 parent
7099bce
commit dd49c54
Showing
4 changed files
with
41 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -31,5 +31,9 @@ | |
"nanostat": { | ||
"threads": "4", | ||
"mem": "16g" | ||
}, | ||
"nanocount": { | ||
"threads": "2", | ||
"mem": "16g" | ||
} | ||
} |
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,4 +1,5 @@ | ||
{ | ||
"options": { | ||
"nanocount_em_iter": "100" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Quantification rules | ||
rule nanocount: | ||
""" | ||
Quality-control step to gather various statistics from a BAM file. | ||
This tool is supported by MultiQC. | ||
Github: https://github.com/a-slide/NanoCount | ||
@Input: | ||
Sorted Transcriptomic BAM file (scatter) | ||
@Output: | ||
NanoCount metrics file | ||
""" | ||
input: | ||
bam = join(workpath, "{name}", "bams", "{name}.sorted.transcriptome.bam"), | ||
output: | ||
counts = join(workpath, "{name}", "counts", "{name}.nanocount.transcripts.tsv"), | ||
params: | ||
rname = "nanocount", | ||
em_iter = config['options']['nanocount_em_iter'], | ||
conda: depending(join(workpath, config['conda']['modr']), use_conda) | ||
container: depending(config['images']['modr'], use_singularity) | ||
threads: int(allocated("threads", "nanocount", cluster)) | ||
shell: """ | ||
NanoCount \\ | ||
-i {input.bam} \\ | ||
--extra_tx_info \\ | ||
-e {params.em_iter} \\ | ||
-o {output.counts} | ||
""" |