View source: R/rnaseq_helpers.R
write_tpm_matrix | R Documentation |
Write an TPM expression matrix to a CSV file in extdata
write_tpm_matrix( summarised_experiment, path = "inst/extdata/", drop = NULL, tpm = 1, samples = 5 )
summarised_experiment |
a |
path |
the existing folder to write to, Default is |
drop |
samples (columns) to remove |
tpm |
minimum TPM for a gene to be kept, Default: 1 |
samples |
minimum number of samples a gene must be present in to be kept, Default: 5 |
This function writes an expression matrix to a CSV file in extdata
,
filtering out genes with fewer than tpm
reads in at least samples
samples.
path to the CSV file
SummarizedExperiment-class
write.table
## Not run: if (interactive()) { write_tpm_matrix(cml_mrna_GRCm38_HLT, c("F545.7", "X490.17"), tpm = 1, samples = 5) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.