Description Usage Arguments Value Examples
Genomic coordinates can be encoded in a variety of ways, this function cleans up coordinates where one column
1 | fix_coordinates(variants, coordinate_column, allele_column)
|
variants |
data frame of variants |
coordinate_column |
name of column containing chromosome information |
allele_column |
name of column containing allele information |
a data frame with chrom, start_pos, end_pos and allele columns.
1 2 3 4 | fix_coordinates(data.frame(coord=c("chr1:10000:A"),
allele=c("chr1:10000:A:G")), "coord", "allele")
fix_coordinates(data.frame(coord=c("chr1:10000:A"),
allele=c("chr1:10003:ATGC:G")), "coord", "allele")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.