pandasgwas.get_associations
get_associations
get_associations(
study_id: str = None,
association_id: str = None,
variant_id: str = None,
efo_id: str = None,
pubmed_id: str = None,
efo_trait: str = None,
set_operation: str = "bind",
interactive: bool = True,
) -> Association
Retrieves Associations via the NHGRI-EBI GWAS Catalog REST API. The REST API is queried multiple times with the criteria passed as arguments. By default all Associations that match the criteria supplied in the arguments are retrieved: this corresponds to the default set_operation set to 'bind', If you rather have only the Associations that match simultaneously all criteria provided, then set set_operation to 'intersection'.
from pandasgwas.get_associations import *
associations = get_associations(association_id='16603')
Parameters: |
|
---|
Returns: |
|
---|
get_associations_all
get_associations_all(
interactive: bool = True,
) -> Association
Gets all associations
from pandasgwas.get_associations import *
associations = get_associations_all()
Parameters: |
|
---|
Returns: |
|
---|
get_associations_by_association_id
get_associations_by_association_id(
association_id: str, interactive: bool = True
) -> Association
Get GWAS Catalog Associations by their Association identifier
from pandasgwas.get_associations import *
associations = get_associations_by_association_id('16603')
Parameters: |
|
---|
Returns: |
|
---|
get_associations_by_efo_id
get_associations_by_efo_id(
efo_id: str, interactive: bool = True
) -> Association
Get GWAS Catalog Associations by their EFO Trait identifier
from pandasgwas.get_associations import *
associations = get_associations_by_efo_id('EFO_0001065')
Parameters: |
|
---|
Returns: |
|
---|
get_associations_by_efo_trait
get_associations_by_efo_trait(
efo_trait: str, interactive: bool = True
) -> Association
Gets associations that match trait description
from pandasgwas.get_associations import *
associations = get_associations_by_efo_trait('MHPG measurement')
Parameters: |
|
---|
Returns: |
|
---|
get_associations_by_pubmed_id
get_associations_by_pubmed_id(
pubmed_id: str, interactive: bool = True
) -> Association
Get GWAS Catalog associations by PubMed identifiers
from pandasgwas.get_associations import *
associations = get_associations_by_pubmed_id('21041247')
Parameters: |
|
---|
Returns: |
|
---|
get_associations_by_study_id
get_associations_by_study_id(
study_id: str, interactive: bool = True
) -> Association
Get GWAS Catalog Associations by Study identifier
from pandasgwas.get_associations import *
associations = get_associations_by_study_id('GCST000854')
Parameters: |
|
---|
Returns: |
|
---|
get_associations_by_variant_id
get_associations_by_variant_id(
variant_id: str, interactive: bool = True
) -> Association
Get GWAS Catalog Associations by their Single Nucleotide Polymorphism identifier
from pandasgwas.get_associations import *
associations = get_associations_by_variant_id('rs6538678')
Parameters: |
|
---|
Returns: |
|
---|