Description Usage Arguments Details Value See Also
read.haps
loads SHAPEIT haps/sample into a haps
object.
haps
class requires a list object with three elements,
haps
, sample
, and map
, with corresponding dimensions.
write.haps
writes haps object to haps/sample file formats
1 2 3 4 5 6 7 |
haps |
Filename of .haps file. |
sample |
Filename of .sample file.
If |
x |
Object to test or convert |
read.haps
accepts compressed files (.gz and .bz2, see connections),
but then both filename arguments must be given.
is.haps
doesn't actually test if x
inherits from class haps
,
just that the contents matches.
read.haps
returns a list with three entries:
samples
:Data fram with contents of .sample file (three columns).
haps
:Matrix with unphased genotypes of each allele, with each loci per row and indivduals in tuples of columns.
map
:Data frame with map of loci, i.e. chromosome, snp ID, chromosomal position, and the two alleles.
extract.gt
for vcfR-style extraction of genotypes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.