Git Product home page Git Product logo

civic-api-client's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gatoravi snashraf

civic-api-client's Issues

Get simple list of genes endpoint

Right now the api has a /genes endpoint that returns a subset of user-defined length with all genes and corresponding variants, variant groups, descriptions, etc. for those genes. It would be nice if this endpoint instead returned a list of ALL genes in the database, limited only to the id, name, and entrez_id fields, so that one could use this as a quick reference for getting the appropriate CIViC identifiers for detailed queries (e.g. if I'm interested in BRAF I could use the returned result {"id":5,"name":"BRAF","entrez_id":673} to do a subsequent API call for BRAF at https://civic.genome.wustl.edu/api/genes/5)

Add function to pull out all valid variants

Obi's suggestion:
Creates a tsv file of all variants in CIViC with representative transcript and coordinates available.
Outputs might look something like:
chr start stop ref var rep_transcript drugs diseases summary number_evidence_statements url_for_civic_variant

Error when running `civic-api-client variants-list --no-coords --max-gene-count 10`

Hey guys,

I am getting an error when I try to run this now:

civic-api-client variants-list --no-coords --max-gene-count 10

Max number of genes to query is  10
Traceback (most recent call last):
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/bin/civic-api-client", line 11, in <module>
    sys.exit(main())
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/lib/python2.7/site-packages/civic_api_client/command_line.py", line 21, in main
    return vl1.main()
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/lib/python2.7/site-packages/civic_api_client/variants_lister.py", line 249, in main
    self.create_filtered_variants_list()
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/lib/python2.7/site-packages/civic_api_client/variants_lister.py", line 244, in create_filtered_variants_list
    self.filter_variants()
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/lib/python2.7/site-packages/civic_api_client/variants_lister.py", line 210, in filter_variants
    vd1 = VariantDetails(self.args, variant_details)
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/lib/python2.7/site-packages/civic_api_client/variants_lister.py", line 25, in __init__
    self.parse_variant_details(variant_details)
  File "/Users/mgriffit/git/civic/civic-api-client/myenv/lib/python2.7/site-packages/civic_api_client/variants_lister.py", line 47, in parse_variant_details
    self.gene_name = variants['entrez_name']
NameError: global name 'variants' is not defined

develop a method to identify drug name synonyms that could be changed to a more 'official' drug name

Many initial studies (especially phase I clinical trials) occur before the field has settled on a drug name. For example "AZD9291" became "osimertinib". It is a curation task to migrate towards the standardized and most widely accepted generic name for every drug. We should come up with a way to scan for use of such synonyms that could be replaced with the generic name according to some canonical source.

For example, the NCI Drug Dictionary:

http://www.cancer.gov/publications/dictionaries/cancer-drug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.