View source: R/analysis-functions.R
is_sharing | R Documentation |
Computes the amount of integration sites shared between the groups identified in the input data.
is_sharing(
...,
group_key = c("SubjectID", "CellMarker", "Tissue", "TimePoint"),
group_keys = NULL,
n_comp = 2,
is_count = TRUE,
relative_is_sharing = TRUE,
minimal = TRUE,
include_self_comp = FALSE,
keep_genomic_coord = FALSE,
table_for_venn = FALSE
)
... |
One or more integration matrices |
group_key |
Character vector of column names which identify a single group. An associated group id will be derived by concatenating the values of these fields, separated by "_" |
group_keys |
A list of keys for asymmetric grouping.
If not NULL the argument |
n_comp |
Number of comparisons to compute. This argument is relevant only if provided a single data frame and a single key. |
is_count |
Logical, if |
relative_is_sharing |
Logical, if |
minimal |
Compute only combinations instead of all possible
permutations? If |
include_self_comp |
Include comparisons with the same group? |
keep_genomic_coord |
If |
table_for_venn |
Add column with truth tables for venn plots? |
An integration site is always identified by the combination of fields in
mandatory_IS_vars()
, thus these columns must be present
in the input(s).
The function accepts multiple inputs for different scenarios, please refer
to the vignette
vignette("workflow_start", package = "ISAnalytics")
for a more in-depth explanation.
The function outputs a single data frame containing all requested comparisons and optionally individual group counts, genomic coordinates of the shared integration sites and truth tables for plotting venn diagrams.
The sharing data obtained can be easily plotted in a heatmap via the
function sharing_heatmap
or via the function
sharing_venn
A data frame
The function will explicitly check for the presence of these tags:
All columns declared in mandatory_IS_vars()
Other Analysis functions:
CIS_grubbs()
,
HSC_population_size_estimate()
,
compute_abundance()
,
cumulative_is()
,
gene_frequency_fisher()
,
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")
)
sharing <- is_sharing(aggreg)
sharing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.