View source: R/convert.variants.to.GRanges.R
convert.variants.to.GRanges | R Documentation |
Given a data.frame of SNPs, convert the SNP locations to a GRanges object.
convert.variants.to.GRanges(variants)
variants |
Data frame with four header columns and SNPs in the remaining columns. |
This function creates a GRanges object from the CHR and POS columns of the SNP data.frame.
GRanges object containing the SNP locations.
Daniel Gatti
data(example.snps)
gr = convert.variants.to.GRanges(example.snps[1:100,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.