-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsplitXchr.Rd
44 lines (41 loc) · 1.41 KB
/
splitXchr.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genotypeInfoUpdate.R
\name{splitXchr}
\alias{splitXchr}
\title{Split chromosome X into pseudoautosomal region and
non-pseudoautosomal region.}
\usage{
splitXchr(plink, inputPrefix, outputPrefix)
}
\arguments{
\item{plink}{an executable program in either the current working directory
or somewhere in the command path.}
\item{inputPrefix}{the prefix of the input PLINK binary files.}
\item{outputPrefix}{the prefix of the output PLINK binary files.}
}
\value{
The output PLINK binary files after splitting chromosome X into
pseudoautosomal region and non-pseudoautosomal region.
}
\description{
Split chromosome X into pseudoautosomal region and
non-pseudoautosomal region, if chromosome X data is available.
}
\details{
Genomic coordinate system is on genome build hg19.
}
\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" ## Specify the input PLINK file prefix
outputPrefix <- "1_10_splitXchr"
## Not run: Requires an executable program PLINK, e.g.
## plink <- "/home/tools/plink"
## removeSampID(plink, inputPrefix, outputPrefix)
}
\author{
Junfang Chen
}