ReadSparseHardcalls | R Documentation |
If HasSparseHardcalls() is true, returns a sparse representation for the (variant, allele) pair. If HasSparseHardcalls() is false, the function fails.
ReadSparseHardcalls(pgen, variant_num, allele_num = 2L, return_ints = FALSE)
pgen |
Object returned by NewPgen(). |
variant_num |
Variant index (1-based). |
allele_num |
Allele index; 1 corresponds to REF, 2 to the first ALT allele, 3 to the second ALT allele if it exists, etc. Optional, defaults to 2. |
return_ints |
Whether to make the "counts" component of the return value an IntegerVector instead of a NumericVector; defaults to false. |
An object where "sample_nums" is an increasing sequence of positive integers listing which samples have the allele, and "counts" is a vector listing the allele counts for those samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.