View source: R/managePlinkData.R
renamePlinkBFile | R Documentation |
Rename a set of PLINK binary files (.BED, .BIM and .FAM).
renamePlinkBFile(inputPrefix, outputPrefix, action)
inputPrefix |
the prefix of the input PLINK binary files. |
outputPrefix |
the prefix of the output PLINK binary files. |
action |
a string indicating if the action is "copy" or "move". |
The original input files can be retained using the action "copy" or removed by using "move".
Renamed PLINK binary files.
Junfang Chen
## 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") system(paste0("scp ", bedFile, bimFile, famFile, " .")) inputPrefix <- "controlData" outputPrefix <- "dataCtl" outputPrefix <- "1_02_removedExclInst" ## renamePlinkBFile(inputPrefix, outputPrefix, action="move")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.