View source: R/genotypeInfoUpdate.R
updatedSnpInfo | R Documentation |
Update SNP information including SNP name, base-pair position, chromosomal location and the strand information.
updatedSnpInfo(plink, inputPrefix, chipAnnoFile, chipType, outputPrefix)
plink |
an executable program in either the current working directory or somewhere in the command path. |
inputPrefix |
the prefix of the input PLINK binary files. |
chipAnnoFile |
a pure text file that stores the chip annotation information. If the chip annotation file is not available for your study, it can be downloaded from http://www.well.ox.ac.uk/~wrayner/strand/. |
chipType |
a string name defines the type of the chip annotation file:
'SNPIDstudy', and 'rsIDstudy'. The detail is described in
|
outputPrefix |
the prefix of the output PLINK binary files. |
The SNP information in the chip annotation file is used as the reference.
The output PLINK binary files after updating SNP information.
Junfang Chen
prepareAnnoFile4affy
## In the current working directory bedFile <- system.file("extdata", "controlData.bed", package="Gimpute") bimFile <- system.file("extdata", "controlData.bim", package="Gimpute") famFile <- system.file("extdata", "controlData.fam", package="Gimpute") chipAnnoFile <- system.file("extdata", "chipAnno.txt", package="Gimpute") system(paste0("scp ", bedFile, bimFile, famFile, " .")) inputPrefix <- "controlData" chipType <- "rsIDstudy" outputPrefix <- "updatedSnpInfo" ## Not run: Requires an executable program PLINK, e.g. ## plink <- "/home/tools/plink" ## updatedSnpInfo(plink, inputPrefix, chipAnnoFile, ## chipType, outputPrefix, outputSNPfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.