indexes_chr | R Documentation |
This function tests that chromosomes appear in their numerical order (dies with an error otherwise), and returns the last index of each chromosome.
indexes_chr(chrs)
chrs |
Vector of integer chromosomes as it appears in a |
Vector of end indexes per chromosome.
The numerical value of the chromosome is its index in this vector.
Chromosomes that were not observed have NA
values as their end indexes.
# the end of chr1 is at index 4, for chr2 it's 7, and for chr3 it's 9
indexes_chr( c(1,1,1,1,2,2,2,3,3) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.