View source: R/gt_mix_functions.R
| construct_genotype_cluster_graph | R Documentation |
Function that constructs a genotype cluster graph using a set of SOC directories and an experimental design
construct_genotype_cluster_graph( experimental_design, file_locations, ncounts = 10, use_VAF = TRUE )
experimental_design |
an experimental design matrix rownames should be microfluidics channels, colnames should be genotypes |
file_locations |
the file locations |
ncounts |
numeric - the number of counts supporting each variant |
use_VAF |
if TRUE calculates genotype to genotype similarity on the basis of mean squared error between variant allele frequencies, if FALSE calculates relatedness (Pedersen et al. 2020) using a reimplementation of the Somalier approach. |
a list $graph_membership gives you cluster memberships $graph_plot gives a force directed embedding of the graph $membership_plot gives a heatmap of memberships $membership_matrix gives a matrix of channel memberships
construct_genotype_cluster_graph()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.