Sort a data frame by chromosome and position. (Note, this function could be faster using data.table. But this implementation avoids dependencies)
1 |
vcf |
data frame with variants; should contain columns (chr, position) |
chrorder |
vector of chromosome names; order of this vector will determine sort order |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.