powered by
Get variant meta-data form the bim file of a PLINK1 BED fileset.
readBIM(bim, vfr = NULL, vto = NULL)
data frame of variants, loaded from BIM.
prefix or name of a PLINK file.
variant-wise, from where to read? (index/proportion, def=1).
varinat-wise, to where then stop? (index/proportion, def=P).
There are six columns in a bim file
chr: chromosme of the variant
vid: variant id, such as an RS number;
cmg: position by centimorgan;
bps: position by basepairs;
al1: allele 1, the one counted as dosage.
al2: allele 2.
bed <- file.path(system.file("extdata", package="plinkFile"), "000.bed") bim <- readBIM(bed, 20, 30) bim
Run the code above in your browser using DataLab