| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/RcppExports.R |
| 3 |
\name{NewPgen} |
| 4 |
\alias{NewPgen} |
| 5 |
\title{Opens a .pgen or PLINK 1 .bed file.} |
| 6 |
\usage{ |
| 7 |
NewPgen(filename, pvar = NULL, raw_sample_ct = NULL, sample_subset = NULL) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{filename}{.pgen/.bed file path.} |
| 11 |
|
| 12 |
\item{pvar}{Object (see NewPvar()) corresponding to the .pgen's companion |
| 13 |
.pvar; technically optional, but necessary for some functionality. In |
| 14 |
particular, at multiallelic variants, all ALT alleles may be collapsed |
| 15 |
together when .pvar information is not available.} |
| 16 |
|
| 17 |
\item{raw_sample_ct}{Number of samples in file; required if it's a PLINK 1 |
| 18 |
.bed file, otherwise optional.} |
| 19 |
|
| 20 |
\item{sample_subset}{List of 1-based positions of samples to load; |
| 21 |
optional, all samples are loaded if this is not specified.} |
| 22 |
} |
| 23 |
\value{ |
| 24 |
A pgen object, which can be queried for genotype/dosage data. |
| 25 |
} |
| 26 |
\description{ |
| 27 |
Opens a .pgen or PLINK 1 .bed file. |
| 28 |
} |