View source: R/collapse_intron_counts.R
collapse_intron_counts | R Documentation |
Merge counts from intron reads with corresponding cDNA reads
collapse_intron_counts(
counts,
which_counts = c("spliced", "total", "unspliced")
)
counts |
Counts matrix with rownames corresponding to gene names and colnames corresponding to cell barcodes. Can be a counts matrix with intron counts specified by -I or an alevin-fry "USA" matrix, with intron counts marked by "-U" and ambiguous counts "-A". |
which_counts |
Which type of counts should be included: Only counts aligned to spliced cDNA ("spliced") or all spliced and unspliced cDNA ("unspliced" or "total"). Ambiguous counts in USA mode are always included. Default is "spliced". |
unfiltered gene x cell counts matrix
## Not run:
# only keep counts from spliced cDNA in final counts matrix
collapse_intron_counts(counts,
which_counts = "spliced"
)
# include unspliced cDNA in final counts matrix
collapse_intron_counts(counts,
which_counts = "total"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.