Description Usage Arguments Details Value Examples
View source: R/extract_chrIDs.R
This function allows to extract the chromosome IDs, based on the meta information contained in the VCF file.
1 | extract_chrIDs(meta)
|
meta |
meta information contained in the first element of the list returned by the readBSA_vcf() function |
The meta information from the VCF file (which is stored in the first element of the list generated byreadBSA_vcf())is taken as input.
The lines in the meta information which contain a sequence of key words (including ID and length) that make them unique from others, are extracted into a character vector.
For each element of that vector, the characters before and after the chromosome ID are removed, resulting in each element of the vector containing only the characters corresponding to a specific chromosome ID. The final character vector contains all chromosomes IDs in the way they are named and ordered within the VCF file.
Character vector containing a list of chromosome IDs.
1 | chromList <- extract_chrIDs(meta=vcf_list$meta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.