pandasgwas.Browser

A set of helper functions for accessing web links

open_gene_in_gwas_catalog

open_gene_in_gwas_catalog(gene_name: str) -> bool

Browse GWAS Catalog entitie Gene from the GWAS Web Graphical User Interface

from pandasgwas.Browser import *
open_gene_in_gwas_catalog('DPP6')
Parameters:
  • gene_name (str) –

    Gene name

Returns:

open_in_dbsnp

open_in_dbsnp(variant_id: str) -> bool

This function launches the web browser at dbSNP and opens a tab for SNP identifier

from pandasgwas.Browser import *
open_in_dbsnp('rs56261590')
Parameters:
  • variant_id (str) –

    A variant(Single Nucleotide Polymorphism) identifier

Returns:

open_in_gtex

open_in_gtex(variant_id: str) -> bool

This function launches the web browser at the GTEx Portal and opens a tab for SNP identifier.

from pandasgwas.Browser import *
open_in_gtex('rs56261590')
Parameters:
  • variant_id (str) –

    A variant(Single Nucleotide Polymorphism) identifier

Returns:

open_in_pubmed

open_in_pubmed(pubmed_id: str) -> bool

This function launches the web browser and opens a tab for PubMed citation

from pandasgwas.Browser import *
open_in_pubmed('26301688')
Parameters:
  • pubmed_id (str) –

    A PubMed identifier

Returns:

open_publication_in_gwas_catalog

open_publication_in_gwas_catalog(pubmed_id: str) -> bool

Browse GWAS Catalog entitie Publication from the GWAS Web Graphical User Interface

from pandasgwas.Browser import *
open_publication_in_gwas_catalog('25533513')
Parameters:
  • pubmed_id (str) –

    A PubMed identifier

Returns:

open_region_in_gwas_catalog

open_region_in_gwas_catalog(
    region_name_or_location: str,
) -> bool

Browse GWAS Catalog entitie Region from the GWAS Web Graphical User Interface

from pandasgwas.Browser import *
#region_name
open_region_in_gwas_catalog('2q37.1')
#location
open_region_in_gwas_catalog('chr2:230100001-234700000')
Parameters:
  • region_name_or_location (str) –

    Region name or chromosome and base pair location on the reference genome

Returns:

open_study_in_gwas_catalog

open_study_in_gwas_catalog(study_id: str) -> bool

Browse GWAS Catalog entitie Study from the GWAS Web Graphical User Interface

from pandasgwas.Browser import *
open_study_in_gwas_catalog('GCST000016')
Parameters:
  • study_id (str) –

    A Study identifier

Returns:

open_trait_in_gwas_catalog

open_trait_in_gwas_catalog(efo_id: str) -> bool

Browse GWAS Catalog entitie Trait from the GWAS Web Graphical User Interface

from pandasgwas.Browser import *
open_trait_in_gwas_catalog('EFO_0004884')
Parameters:
  • efo_id (str) –

    An EFO Trait identifier

Returns:

open_variant_in_gwas_catalog

open_variant_in_gwas_catalog(variant_id: str) -> bool

Browse GWAS Catalog entitie Single Nucleotide Polymorphism from the GWAS Web Graphical User Interface

from pandasgwas.Browser import *
open_variant_in_gwas_catalog('rs146992477')
Parameters:
  • variant_id (str) –

    A variant(Single Nucleotide Polymorphism) identifier

Returns: