Description Usage Arguments Details Value
View source: R/scMeth_functions.R
Create pairwise comparisons between single-cells
1 2 | create_pairwise_master(cpg, digital = TRUE, cores_to_use = 2,
calcdiff = TRUE)
|
cpg |
A list of named data frames containing CpG calls. See details for required format of dataframes. Required. |
digital |
Whether or not to discard non-binary CpG calls. Useful in single-cells as it's very unlikely that a single-cell contains a heterozygous methylation call. Defaults to TRUE. |
calcdiff |
Whether or not to directly calculate the average difference (if TRUE), or to return a list of dataframes containing pairwise common CpGs (if FALSE). Defaults to TRUE. Usually you don't want false unless you wish to do something else with all the pairwise data |
ncores |
Number of cores to parallelize over. Defaults to 1 |
Each dataframe containing CpG calls must have the following four columns: 1. Chromsome column, named "chr" 2. Start/Position column, named "start" 3. Percentage or fractional methylation column, named "meth" (between 0-100 or 0-1)
A list of dataframes if calcdiff
is FALSE. Otherwise, a dataframe containing the pairwise dissimiarlties if calcdiff
is TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.