validate_pedigree()andfind_parentage():founders_filenow also accepts a character vector of ids or a data.frame (first column), in addition to a file path. All inputs can now be supplied from memory.validate_pedigree(): removed the suggested replacement parents (best_male_candidate,best_male_candidate_error_pct,best_female_candidate,best_female_candidate_error_pct) fromfull_resultsand the per-status tables. Usefind_parentage(method = "fill_pedigree")oncorrected_pedigreeto fill in missing parents.validate_pedigree(): newmarker_summaryelement in the returned list gives, for every marker, the number of trios tested, the number with a Mendelian mismatch and the mismatch percentage, sorted worst first. It covers all trios with both parents known and genotyped, and helps spot markers (e.g. paralogous or miscalled) that cause many failures.find_parentage(): newmethod = "fill_pedigree"fills in missing parents of a pedigree.progeny_filemust haveid,male_parentandfemale_parentcolumns (e.g.validate_pedigree()$corrected_pedigree); parents coded0/NA/empty are unknown. A known male searches only females, a known female only males, and rows with both unknown get the full pair search (skip founders with the newfounders_file). Rows with both parents known are skipped. Results gainsearch_modeandknown_parent_error_pct, and a known parent without genotypes getsstatus = "known_parent_no_genotype".find_parentage(): newtop_nargument reports the besttop_ncandidates per progeny, ranked by Mendelian error (ties broken by markers tested). Rank 1 stays in the base columns and ranks 2 totop_nare added as suffix columns (male_parent_2,female_parent_2,mendelian_error_pct_2,markers_tested_2forbest_pair;best_match_2and the same error/marker columns for the other methods). The defaulttop_n = 1keeps the previous output, includingshow_ties.find_parentage(): newtied_candidatescolumn gives the number of candidates (pairs forbest_pair) that share each progeny’s lowest error. Values above 1 mean the best assignment is ambiguous, including for the single-parent methods, which previously did not report ties.validate_pedigree(): fixedcorrected_pedigreeforlow_markers_remove_female_parent, which also set the male parent to0. Low-marker trios now remove only the identified parent(s).- New
assign_composition_line()turns the output ofsolve_composition_poly()into the composition table used by Familia: percentages per reference population and aPredicted line, labelledUndeterminedwhen the highest proportion is belowassign_threshold(default 50).solve_composition_poly()is unchanged. validate_pedigree(): newmarker_trio_table = FALSEargument. When TRUE the result includesmarker_trio_table, a marker-by-trio table with one column per trio (id_male_parent_female_parent) giving each marker’s status:match,mismatch_male,mismatch_female,mismatch_both,mismatch_combination(each parent compatible alone but not the pair),untestable(odd ploidy) ormissing_*named after the individuals without a call (e.g.missing_male,missing_male_female,missing_progeny).
Release on GitHub · About BIGpopA
Back to top