-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathchunk4eachChr.Rd
42 lines (38 loc) · 1.17 KB
/
chunk4eachChr.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/phasingImpute.R
\name{chunk4eachChr}
\alias{chunk4eachChr}
\title{Chunk each chromosome into multiple segments}
\usage{
chunk4eachChr(inputPrefix, outputPrefix, chrs, windowSize = 3e+06)
}
\arguments{
\item{inputPrefix}{the prefix of the input PLINK .bim file for
each chromosome, without the chromosome codes.}
\item{outputPrefix}{the prefix of the output pure text files that keep
all the chunks for each chromosome separately.}
\item{chrs}{specifiy the chromosome codes for chunking.}
\item{windowSize}{the window size of each chunk.
The default value is 3000000.}
}
\value{
The output pure text files include all the chunks
for each chromosome separately.
}
\description{
Chunk each chromosome genotyping data into multiple segments
by a predefined window size.
}
\examples{
## In the current working directory
bimFile <- system.file("extdata", "gwas_data_chr23.bim", package="Gimpute")
system(paste0("scp ", bimFile, " ."))
inputPrefix <- "gwas_data_chr"
outputPrefix <- "chunks_chr"
chrs <- 23
print(chrs)
chunk4eachChr(inputPrefix, outputPrefix, chrs, windowSize=3000000)
}
\author{
Junfang Chen
}