View source: R/prepare_counts.R
format_counts | R Documentation |
Format TSS or TSR counts for further analysis.
format_counts(experiment, data_type = c("tss", "tsr"), samples = "all")
experiment |
TSRexploreR object. |
data_type |
Whether to format TSS ('tss') or TSR ('tsr') counts. |
samples |
A vector of sample names to analyze. |
When TSSs or TSRs are first loaded into the TSRexploreR object they are stored as GRanges objects. This function converts these into data.table format and adds a few columns to facilitate downstream analysis.
TSRexploreR object with properly formatted features in data.table format.
data(TSSs_reduced) TSSs_reduced %>% tsr_explorer %>% format_counts(data_type="tss")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.