Add trimming functionality and update related documentation#144
Open
smasongarrison wants to merge 15 commits intomainfrom
Open
Add trimming functionality and update related documentation#144smasongarrison wants to merge 15 commits intomainfrom
smasongarrison wants to merge 15 commits intomainfrom
Conversation
Trimming tree
make extended
f48c767 to
c6a3b67
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds new functionality for identifying and removing leaf nodes from pedigree datasets, making it easier to clean and simplify pedigree structures. The main changes introduce two new functions—
findLeavesandtrimPedigree—along with their documentation and export statements. These functions help users iteratively prune pedigree data by removing individuals who do not affect the overall connectivity of the pedigree, with flexible options for customization.New pedigree pruning functionality:
findLeavesfunction, which identifies structural leaf nodes in a pedigree (terminal nodes and founder singletons), with options to protect individuals based on phenotype data and to control verbosity. (R/trimPedigree.R,NAMESPACE,man/findLeaves.Rd) [1] [2] [3]trimPedigreefunction, which iteratively removes leaf nodes from a pedigree until no more can be removed or a stopping condition is met. It supports user-specified removals, minimum size constraints, phenotype-based protection, and updates parent references after removal. (R/trimPedigree.R,NAMESPACE,man/trimPedigree.Rd) [1] [2] [3]Documentation and exports:
findLeavesandtrimPedigreein theNAMESPACEfile so they are available for users. [1] [2]findLeavesandtrimPedigree, including usage examples and detailed parameter explanations. (man/findLeaves.Rd,man/trimPedigree.Rd) [1] [2]