Estimate multilocus haplotype frequencies with MultiLociBiallelicModel
Source:R/MultiLociBiallelicModel_wrapper.R
MultiLociBiallelicModel_wrapper.RdEstimates multilocus haplotype frequencies from amino-acid calls and loci groups. Samples with any missing genotype are dropped (legacy behaviour; the model cannot handle missing data). Requires variantstring 1.x (Suggests).
Usage
MultiLociBiallelicModel_wrapper(
aa_calls,
loci_groups,
mlaf_output,
aa_sample_occurence_cut_off = 0
)Details
Inputs
aa_calls: Amino-acid calls TSV (specimen_name,gene_id,aa_position,ref_aa,aa). Seevignette("input-formats", package = "PGEcore").loci_groups: Loci-groups TSV (group_id,gene_id,aa_position).
Running
MultiLociBiallelicModel_wrapper(
aa_calls = "aa_calls.tsv",
loci_groups = "loci_groups.tsv",
mlaf_output = "mlaf.tsv"
)Rscript exec/MultiLociBiallelicModel_wrapper \
--aa_calls aa_calls.tsv \
--loci_groups loci_groups.tsv \
--mlaf_output mlaf.tsvRequires variantstring (Suggests).