-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting population allele frequencies #29
Merged
nakib103
merged 31 commits into
Ensembl:main
from
likhitha-surapaneni:population_scores
Jan 31, 2024
Merged
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fd86f09
Parsing populations from VCF
likhitha-surapaneni ae26a08
Logic to compute ref allele frequency, maf, hpmaf
likhitha-surapaneni 6a384ac
Added endpoint to return population object
likhitha-surapaneni eae1b9a
Adding Population schema
likhitha-surapaneni 0247d13
Fixed a bug in population frequencies
likhitha-surapaneni 6865f77
Making allele_frequency nullable
likhitha-surapaneni 22308a1
Reverting nullable allele_frequency for now
likhitha-surapaneni 91699ce
Reverting nullable allele_frequency for now
likhitha-surapaneni 36e7723
Added population metadata for gnomadg and gnomade
likhitha-surapaneni 940ccf8
Added population metadata for gnomadg and gnomade
likhitha-surapaneni f6a2d27
Added examples for population and population_allele_frequencies
likhitha-surapaneni 31ca0f1
Renamed file
likhitha-surapaneni 4eb9e14
Minor typo
likhitha-surapaneni e6a5f3e
Added examples for gnomADg, gnomADe
likhitha-surapaneni bc8ba60
Cleanup of files
likhitha-surapaneni 1870e41
Added version metadata for gnomADg and gnomADe
likhitha-surapaneni 3a78f32
Allele_frequency as nullable
likhitha-surapaneni f661d72
Not returning population_allele_frequencies with allele_frequency null
likhitha-surapaneni 5575ce0
Removed updates to example payload
likhitha-surapaneni 4dfa7d3
Removed updates to example payload
likhitha-surapaneni bb6ae82
Modified endpoint from population to populations; Updated examples
likhitha-surapaneni d5a100c
Merge branch 'main' into population_scores
likhitha-surapaneni 8a7557d
Fixing is_global values
likhitha-surapaneni 42b7667
Merge branch 'population_scores' of https://github.com/likhitha-surap…
likhitha-surapaneni 193ffe1
Fixing the nullability logic in super_population
likhitha-surapaneni a032adf
Fixing the nullability logic in super_population
likhitha-surapaneni 518b5c8
Fixed typo in population metadata file and removed the redundant work…
likhitha-surapaneni f38e487
Fixed typo in population metadata file and removed the redundant work…
likhitha-surapaneni b74af67
Updated population.graphql to conform with VDM
likhitha-surapaneni f3bfa14
Handling multiple maf and hpmaf alleles
likhitha-surapaneni 4052b2c
Added display_group_name
likhitha-surapaneni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"1000_genomes": [ | ||
{"name": "1000GENOMES:phase_3:ALL", "frequencies": {"af": "AF"}}, | ||
{"name": "1000GENOMES:phase_3:AFR", "frequencies": {"af": "AFR_AF"}}, | ||
{"name": "1000GENOMES:phase_3:AMR", "frequencies": {"af": "AMR_AF"}}, | ||
{"name": "1000GENOMES:phase_3:EAS", "frequencies": {"af": "EAS_AF"}}, | ||
{"name": "1000GENOMES:phase_3:EUR", "frequencies": {"af": "EUR_AF"}}, | ||
{"name": "1000GENOMES:phase_3:SAS", "frequencies": {"af": "SAS_AF" }} | ||
], | ||
"gnomAD_exomes": [ | ||
{"name": "gnomADe:ALL", "frequencies": {"af": "gnomAD_exomes_AF", "ac": "gnomAD_exomes_AC", "an": "gnomAD_exomes_AN"}}, | ||
{"name": "gnomADe:afr", "frequencies": {"af": "gnomAD_exomes_AF_afr", "ac": "gnomAD_exomes_AC_afr", "an": "gnomAD_exomes_AN_afr"}}, | ||
{"name": "gnomADe:amr", "frequencies": {"af": "gnomAD_exomes_AF_amr", "ac": "gnomAD_exomes_AC_amr", "an": "gnomAD_exomes_AN_amr"}}, | ||
{"name": "gnomADe:asj", "frequencies": {"af": "gnomAD_exomes_AF_asj", "ac": "gnomAD_exomes_AC_asj", "an": "gnomAD_exomes_AN_asj"}}, | ||
{"name": "gnomADe:eas", "frequencies": {"af": "gnomAD_exomes_AF_eas", "ac": "gnomAD_exomes_AC_eas", "an": "gnomAD_exomes_AN_eas"}}, | ||
{"name": "gnomADe:fin", "frequencies": {"af": "gnomAD_exomes_AF_fin", "ac": "gnomAD_exomes_AC_fin", "an": "gnomAD_exomes_AN_fin"}}, | ||
{"name": "gnomADe:nfe", "frequencies": {"af": "gnomAD_exomes_AF_nfe", "ac": "gnomAD_exomes_AC_nfe", "an": "gnomAD_exomes_AN_nfe"}}, | ||
{"name": "gnomADe:oth", "frequencies": {"af": "gnomAD_exomes_AF_oth", "ac": "gnomAD_exomes_AC_oth", "an": "gnomAD_exomes_AN_oth"}}, | ||
{"name": "gnomADe:sas", "frequencies": {"af": "gnomAD_exomes_AF_sas", "ac": "gnomAD_exomes_AC_sas", "an": "gnomAD_exomes_AN_sas"}} | ||
], | ||
"gnomAD_genomes": [ | ||
{"name": "gnomADg:ALL", "frequencies": {"af": "gnomAD_genomes_AF", "ac": "gnomAD_genomes_AC", "an": "gnomAD_genomes_AN"}}, | ||
{"name": "gnomADg:afr", "frequencies": {"af": "gnomAD_genomes_AF_afr", "ac": "gnomAD_genomes_AC_afr", "an": "gnomAD_genomes_AN_afr"}}, | ||
{"name": "gnomADg:ami", "frequencies": {"af": "gnomAD_genomes_AF_ami", "ac": "gnomAD_genomes_AC_ami", "an": "gnomAD_genomes_AN_ami"}}, | ||
{"name": "gnomADg:amr", "frequencies": {"af": "gnomAD_genomes_AF_amr", "ac": "gnomAD_genomes_AC_amr", "an": "gnomAD_genomes_AN_amr"}}, | ||
{"name": "gnomADg:asj", "frequencies": {"af": "gnomAD_genomes_AF_asj", "ac": "gnomAD_genomes_AC_asj", "an": "gnomAD_genomes_AN_asj"}}, | ||
{"name": "gnomADg:eas", "frequencies": {"af": "gnomAD_genomes_AF_eas", "ac": "gnomAD_genomes_AC_eas", "an": "gnomAD_genomes_AN_eas"}}, | ||
{"name": "gnomADg:fin", "frequencies": {"af": "gnomAD_genomes_AF_fin", "ac": "gnomAD_genomes_AC_fin", "an": "gnomAD_genomes_AN_fin"}}, | ||
{"name": "gnomADg:mid", "frequencies": {"af": "gnomAD_genomes_AF_mid", "ac": "gnomAD_genomes_AC_mid", "an": "gnomAD_genomes_AN_mid"}}, | ||
{"name": "gnomADg:nfe", "frequencies": {"af": "gnomAD_genomes_AF_nfe", "ac": "gnomAD_genomes_AC_nfe", "an": "gnomAD_genomes_AN_nfe"}}, | ||
{"name": "gnomADg:oth", "frequencies": {"af": "gnomAD_genomes_AF_oth", "ac": "gnomAD_genomes_AC_oth", "an": "gnomAD_genomes_AN_oth"}}, | ||
{"name": "gnomADg:sas", "frequencies": {"af": "gnomAD_genomes_AF_sas", "ac": "gnomAD_genomes_AC_sas", "an": "gnomAD_genomes_AN_sas"}} | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
type Population{ | ||
""" | ||
Population | ||
""" | ||
name: String! | ||
size: Int! | ||
description: String! | ||
type: String! | ||
is_global: Boolean! | ||
is_from_genotypes: Boolean! | ||
display_group_name: String! | ||
super_population: Population | ||
sub_populations: [Population!]! | ||
} |
This file contains 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
This file contains 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
Binary file not shown.
Binary file not shown.
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There can be multiple
hpmaf
allele. MAF with same highest frequency level in separate populations.Not much effect in EV currently as not part of the view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nakib103 , this seems valid. Similarly, there can be multiple alleles having MAF, we need to mark them. Example to test multiple alleles having same MAF:
13:57932480:rs11276267
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Likhitha, also tested for
17:63992940:rs1183731126
hpmaf.