- New
vcf_to_dosage()converts a VCF (.vcf/.vcf.gz) orvcfRobject into allele-B dosages for any ploidy, as anid+ markers table or an individuals x markers matrix. - New
ped_to_dosage()converts a PLINK.pedfile (diploid) into allele dosages. A.mapfile is optional and only supplies marker names. The counted allele is the alphabetically/numerically last allele at each marker, or can be supplied to code a second file like a first one. find_parentage(),validate_pedigree(),allele_freq_poly()andsolve_composition_poly()now accept genotypes as a TXT/TSV/CSV file, a VCF file orvcfRobject, a PLINK.pedfile, a data.frame / data.table, or a matrix. VCF input is converted withvcf_to_dosage()using the function’sploidy;.pedinput requiresploidy = 2.- When the reference panel is a
.pedfile,allele_freq_poly()stores the counted allele per marker andsolve_composition_poly()uses it to code a validation.pedfile consistently. allele_freq_poly()andsolve_composition_poly()also accept a data.frame with anid/IDcolumn; existing matrix and row-named data.frame inputs are unchanged.- Genotype read errors in
find_parentage()andvalidate_pedigree()now include the underlying error message. - Column names
id,male_parent,female_parentandsexare now matched ignoring case, spaces and dots (e.g.ID,Male_Parent,FEMALE PARENT) incheck_ped(),validate_pedigree(),find_parentage()and genotype tables. - Fixed
solve_composition_poly()failing whenYcontains a single animal. - Removed the
ped,groups,mia,sireanddamarguments fromsolve_composition_poly(). They relied on internal helpers that were not carried over from BIGr and always failed. The function now takesY,Xandploidy.
Release on GitHub · About BIGpopA
Back to top