View source: R/load_telescope_reports.R
load_telescope_reports | 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_telescope_reports( files, colnames = names(files), all_locs = NULL, count_column = "final_count" )
files |
A character vector with paths to the reports. |
colnames |
Output column names. If |
all_locs |
A character vector with all genes/loci to be included in the output; typically this is a list of all loci in the annotation. If not provided, the loci will be the union of loci in all reports, in an arbitrary order. |
count_column |
The column in the Telescope report to use. Defaults is 'final_count' |
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") t_files <- file.path(ddir, paste0(samples.encode$GEO_sample, '-telescope_report.tsv')) names(t_files) <- samples.encode$Name # Provide all_locs to include all annotated loci (preferred) herv_counts <- load_telescope_reports(t_files, all_locs=HERVrmsk.hg38.v2$locus) # Contstruct table with loci that appear in reports ## Not run: herv_counts <- load_telescope_reports(t_files) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.