convert.variants.to.GRanges {DOQTL} | 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,])