Description Usage Arguments Details Value See Also Examples
gather_counts takes an object of class fpkm or
raw and returns a new object of the class fpkm_counts or
raw_counts, which inherits from fpkm/raw respectively. An
extra counts column is added to the input object and returned. The
counts column is a list of data.tables.
1 2 3 4 5 6 7 8 9 10 11 12 13 | gather_counts(x, ...)
## Default S3 method:
gather_counts(x, ...)
## S3 method for class 'fpkm'
gather_counts(x, by = c("gene-id", "gene-name",
"transcript-id"), threshold = 0.1, log_base = FALSE, verbose = FALSE,
...)
## S3 method for class 'raw'
gather_counts(x, by = c("gene-id", "gene-name"),
threshold = 1L, log_base = FALSE, verbose = FALSE, ...)
|
x |
An object of class |
... |
Additional arguments to be passed to or from other methods. |
by |
Level at which reads should be aggregated to (if necessary). There are three possible values:
|
threshold |
In case of Note that |
log_base |
Value to pass to the In case of In case of |
verbose |
Logical. Default is |
gather_counts is an S3 generic with methods implemented for
both fpkm and raw objects.
In case of fpkm objects, the fpkm values are assumed to be
generated by cufflinks. The argument by provides the
the level at which differential expression has to be computed,
since it contains fpkm counts for all expressed isoforms. See details for
possible values for by.
In case of raw, the most common analysis is differential
gene expression. Transcript level read counts are not possible (or makes
very less sense) with raw counts. See get_counts function from
gcount package for more.
A new object of class fpkm_counts or raw_counts
corresponding to fpkm or raw objects respectively.
rnaseq limma_dge
edger_dge as.eset show_counts
construct_design construct_contrasts
write_dge volcano_plot
density_plot
1 2 3 4 5 6 7 8 9 10 11 12 13 | path = system.file("tests", package="ganalyse")
# ----- fpkm ----- #
fpkm_path = file.path(path, "fpkm", "annotation.txt")
fpkm_obj = rnaseq(fpkm_path, format="fpkm", experiment="sample")
(fpkm_counts = gather_counts(fpkm_obj, by="gene-id", log_base=2L))
class(fpkm_counts)
# ----- raw ----- #
raw_path = file.path(path, "raw", "annotation.txt")
raw_obj = rnaseq(raw_path, format="raw", experiment="sample")
(raw_counts = gather_counts(raw_obj, by="gene-id", threshold=1L))
class(raw_counts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.