View source: R/analysis-functions.R
cumulative_is | R Documentation |
Given an input integration matrix that can be grouped over time, this function adds integrations in groups assuming that if an integration is observed at time point "t" then it is also observed in time point "t+1".
cumulative_is(
x,
key = c("SubjectID", "CellMarker", "Tissue", "TimePoint"),
timepoint_col = "TimePoint",
include_tp_zero = FALSE,
counts = TRUE,
keep_og_is = FALSE,
expand = TRUE
)
x |
An integration matrix, ideally aggregated via
|
key |
The aggregation key used |
timepoint_col |
The name of the time point column |
include_tp_zero |
Should time point 0 be included? |
counts |
Add cumulative counts? Logical |
keep_og_is |
Keep original set of integrations as a separate column? |
expand |
If |
A data frame
The function will explicitly check for the presence of these tags:
All columns declared in mandatory_IS_vars()
Checks if the matrix is annotated by assessing presence of
annotation_IS_vars()
Other Analysis functions:
CIS_grubbs()
,
HSC_population_size_estimate()
,
compute_abundance()
,
gene_frequency_fisher()
,
is_sharing()
,
iss_source()
,
sample_statistics()
,
top_integrations()
,
top_targeted_genes()
data("integration_matrices", package = "ISAnalytics")
data("association_file", package = "ISAnalytics")
aggreg <- aggregate_values_by_key(
x = integration_matrices,
association_file = association_file,
value_cols = c("seqCount", "fragmentEstimate")
)
cumulated_is <- cumulative_is(aggreg)
cumulated_is
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.