-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wrapper for rsem-generate-data-matrix. (#374)
* Added wrapper for rsem-generate-data-matrix. * Added a second results file to demonstrate merging.
- Loading branch information
1 parent
6cd6aa5
commit 0997adf
Showing
7 changed files
with
58 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
channels: | ||
- bioconda | ||
dependencies: | ||
- rsem ==1.3.3 |
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,11 @@ | ||
name: rsem generate data matrix | ||
description: | | ||
Run rsem-generate-data-matrix to combine a set of single-sample rsem results into a single matrix. | ||
authors: | ||
- Brett Copeland | ||
input: | ||
- a list of rsem results files | ||
output: | ||
- Quantification results summarized by allele/gene/isoform per sample | ||
notes: | | ||
* For more information, see https://github.com/deweylab/RSEM. |
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,14 @@ | ||
rule rsem_generate_data_matrix: | ||
input: | ||
# one or more expression files created by rsem-calculate-expression | ||
["a.genes.results", "b.genes.results"], | ||
output: | ||
# a tsv containing each sample in the input as a column | ||
"genes.results", | ||
params: | ||
# optional additional parameters | ||
extra="", | ||
log: | ||
"logs/rsem/generate_data_matrix.log", | ||
wrapper: | ||
"master/bio/rsem/generate-data-matrix" |
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,2 @@ | ||
gene_id transcript_id(s) length effective_length expected_count TPM FPKM | ||
Sheila Sheila 20.00 20.00 0.00 0.00 0.00 |
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,2 @@ | ||
gene_id transcript_id(s) length effective_length expected_count TPM FPKM | ||
Sheila Sheila 20.00 20.00 1.00 1.00 1.00 |
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,17 @@ | ||
__author__ = "Brett Copeland" | ||
__copyright__ = "Copyright 2021, Brett Copeland" | ||
__email__ = "[email protected]" | ||
__license__ = "MIT" | ||
|
||
|
||
import os | ||
|
||
from snakemake.shell import shell | ||
|
||
extra = snakemake.params.get("extra", "") | ||
log = snakemake.log_fmt_shell(stdout=False, stderr=True) | ||
shell( | ||
"rsem-generate-data-matrix {extra} " | ||
"{snakemake.input} > {snakemake.output} " | ||
"{log}" | ||
) |
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