vcf2hap | R Documentation |
Generate hapResult from vcfR object
A simple filter by position was provided in this function,
however it's prefer to filter VCF (vcfR object) through
filter_vcf()
.
vcf2hap(
vcf,
hapPrefix = "H",
filter_Chr = FALSE,
filter_POS = FALSE,
pad = 3,
hetero_remove = TRUE,
na_drop = TRUE,
...
)
vcf |
vcfR object imported by |
hapPrefix |
prefix of hap names, default as "H" |
filter_Chr |
not used |
filter_POS |
not used |
pad |
The number length in haplotype names should be extend to. |
hetero_remove |
whether remove accessions contains hybrid site or not.
Default as |
na_drop |
whether remove accessions contains unknown allele site or not
Default as |
... |
Parameters not used |
object of hapResult class
Zhangrenl
extract genotype from vcf:
vcfR::extract_gt_tidy()
,
import vcf files:
import_vcf()
(preferred) and
vcfR::read.vcfR()
,
filter vcf according position and annotations:
filter_vcf()
data("geneHapR_test")
hapResult <- vcf2hap(vcf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.