Description Usage Arguments Value Examples
Add description
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | create_bagel(
x,
genome,
check_ref_chromosomes = TRUE,
check_ref_bases = TRUE,
chromosome_col = "chr",
start_col = "start",
end_col = "end",
ref_col = "ref",
alt_col = "alt",
sample_col = "sample",
extra_fields = NULL,
verbose = TRUE
)
|
x |
Any object that can be coerced to a data.table including a matrix or data.frame. |
genome |
A BSgenome object indicating which genome reference the variants and their coordinates were derived from. |
check_ref_chromosomes |
Whether to peform a check to ensure that
the chromosomes in the |
check_ref_bases |
Whether to check if the reference bases in the
|
chromosome_col |
The name of the column that contains the chromosome
reference for each variant. Default |
start_col |
The name of the column that contains the start
position for each variant. Default |
end_col |
The name of the column that contains the end
position for each variant. Default |
ref_col |
The name of the column that contains the reference
base(s) for each variant. Default |
alt_col |
The name of the column that contains the alternative
base(s) for each variant. Default |
sample_col |
The name of the column that contains the sample
id for each variant. Default |
extra_fields |
Which additional fields to extract and include in
the bagel object. Default |
verbose |
Whether to print status messages during error checking.
Default |
Returns a bagel object
1 2 3 4 5 | maf_file <- system.file("testdata", "public_TCGA.LUSC.maf",
package = "BAGEL")
variants <- extract_variants_from_maf_file(maf_file)
g <- select_genome("38")
bagel <- create_bagel(x = variants, genome = g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.