Update ibdreduce_v3.py to allow for a matrix phenotype file or 2 column file#32
Merged
rjbohlender merged 1 commit intomasterfrom Sep 28, 2025
Merged
Conversation
Refactoring of the parse_pheno function in ibdreduce so that the user can select a column from a phecode matrix to use as the phenotype
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.
Feature(ibdreduce_v3.py):
Refactoring of the parse_pheno function in ibdreduce so that the user can select a column from a phecode matrix to use as the phenotype.
What was added:
Description:
This commit addresses issue #31. The user can now provide either a 2 column phenotype file or they can provide a matrix file with many columns. If the matrix is provided then they also should provide the phenotype name as an argument so that the parse_pheno function will select the right column from the matrix (lines 180-184). If the user passes a 2 column file then the program defaults to normal behavior. This commit adds convenience for people who already have a matrix style file from PheWAS analyses, etc...