renamePlinkBFile: Rename PLINK binary files

View source: R/managePlinkData.R

renamePlinkBFileR Documentation

Rename PLINK binary files

Description

Rename a set of PLINK binary files (.BED, .BIM and .FAM).

Usage

renamePlinkBFile(inputPrefix, outputPrefix, action)

Arguments

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".

Details

The original input files can be retained using the action "copy" or removed by using "move".

Value

Renamed PLINK binary files.

Author(s)

Junfang Chen

Examples

## 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")

transbioZI/Gimpute documentation built on April 10, 2022, 4:20 a.m.