prepare_labels | R Documentation |
Prepare node labels so that each node is labelled with a comma separated list of the alterated genes representing its associated genotype.
prepare_labels(samples, genes)
samples |
input dataset (mutational matrix) as matrix |
genes |
list of gene names (in the columns' order) |
Note that after this procedure the user is expected also to run fix_clonal_genotype to also add the clonal genortype to the mutational matrix if it is not present.
the computed edge list
require(dplyr) # compact compactedDataset <- compact_dataset(example_dataset()) samples <- compactedDataset$matrix # save genes' names genes <- colnames(compactedDataset$matrix) # keep the information on frequencies for further analysis freqs <- compactedDataset$counts/sum(compactedDataset$counts) # prepare node labels listing the mutated genes for each node labels <- prepare_labels(samples, genes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.