Skip to main content

We provide korsair-api to help you query and retrieve KORSAIR directly on your python code.

Project description

Korsair

Project description


korsair-api is a library package providing APIs to query the KORSAIR database(http://korsair.kisti.re.kr/), Korean Reference SNP and Indel Repository. We provide korsair-api to help you query and retrieve KORSAIR directly on your python code. With korsair-api, users can filter the query result based on the variant's information annotated with VEP, such as CADD score. korsair-api communicates with KORSAIR by REST APIs provided by KORSAIR.

Install and Import


Install with pip

python3 -m pip install korsair-api

Import korsair

from korsair_api import korsair

Functions


  • get_variant(chro, pos, ref, alt)
  • get_variant_id(rsid)
  • get_gene(gene_id)
  • get_region(chro, start, end)
  • extract_data(df, column, num)
  • extract_none_rsid(df)
  • extract_filter(df, value)

Simple Example


Gene Symbol: TP53 
Variant format: 7-140787574-C-T
dbSNP: rs397507456, Region: 17-7676272-7675994
Ensembl Gene: ENSG00000133703
Ensembl Transcript: ENST00000311936
  1. get_variant

    korsair.get_vaiant('chr7', 140787574, 'C', 'T')
    
  2. get_variant_id

    korsair.get_variant_id('rs397507456')
    
  3. get_gene

    korsair.get_gene('CHD8')
    
  4. get_region

    korsair.get_region(17, 7676272, 7675994)
    
  5. extract_data(df, column, num)

    df = korsair.get_gene_('CHD8')
    extract_data(df, 'cadd_score', 20)
    
  6. extract_none_rsid(df)

    df = korsair.get_gene_('CHD8')
    extract_none_rsid(df)
    
  7. extract_filter(df, value)

    df = korsair.get_gene_('CHD8')
    extract_filter(df, 'pass')
    

Site


KORSAIR

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

korsair_api-1.1.5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file korsair_api-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: korsair_api-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for korsair_api-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9cd06b3e0222ea4c9b30bbb1bb7e93d657dc3803515875de69a037ed086668a9
MD5 ee98ffb140f76c26353461db61f75a7b
BLAKE2b-256 0cb9a47926df7d33f57ceef251adc5dc346a1cac80d4475b079dad08e1eb8caf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page