View source: R/load_tsv_counts.R
load_star_counts | R Documentation |
This returns a dataframe where the rows are genes/loci and columns are
samples. If files
is a named vector, the names are used as sample
names; otherwise sample names can be provided by colnames
. If not
provided, unique strings will be extracted from the report filenames.
load_star_counts( files, colnames = names(files), stranded = c("unstranded", "read1", "read2") )
files |
A character vector with paths to the reports. |
colnames |
Output column names. If |
stranded |
Strandedness of data. Use 'unstranded' for unstranded data, 'read1' if the first read aligns to the RNA, and 'read2' if the second read aligns to the RNA. dUTP-based methods should use 'read2'. |
A dataframe where the rows are genes/loci and the columns are samples (when each report corresponds to one sample).
ddir <- system.file("extdata", package="scopetools") tsv_files <- Sys.glob(file.path(ddir, '*.ReadsPerGene.out.tab')) gene_counts <- load_star_counts(tsv_files)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.