Description Usage Arguments Value Examples
View source: R/filter_by_mutation_frequency.R
Returns a vector of genes that passes the minimum number of mutations.
1 | filter_by_mutation_frequency(bgr, min_times_mut, sample_is = TRUE)
|
bgr |
a bipartite edge graph that has the node attributes |
min_times_mut |
minimum number of mutations per gene |
sample_is |
either |
a vector of (unique) gene names
1 2 3 4 5 6 7 8 9 | library(wext)
suppressPackageStartupMessages(library(tidygraph))
bgr <- make_sample_gene_bipartite(
simple_dataset$sample_name,
simple_dataset$mutated_gene
)
filter_by_mutation_frequency(bgr, 2)
filter_by_mutation_frequency(bgr, 3)
filter_by_mutation_frequency(bgr, 4, sample_is = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.