NCBI-Codeathons / The_Virus_Index

A Federated Index of Virus Metadata and Hyperdata in Public Repositories
MIT License
3 stars 0 forks source link

Draft python API based on uses cases #5

Closed christiam closed 4 years ago

christiam commented 4 years ago

Create a draft python API based on virus discovery 2 group use cases that would facilitate access to the index

joanmarticarreras commented 4 years ago

Example queries to BigQuery:

sejmodha commented 4 years ago

DRAFT

Operations supported

joanmarticarreras commented 4 years ago
christiam commented 4 years ago
  • function name: get_SRA_runs_that_contain_a_virus
  input: virus_taxid (integer)
  output: SRA list (list of strings)
  • function name: get_all_viruses_from_SRA
  input: SRA (string)
  output: virus_taxid (list of integers)
  • function name: get_metadata_SRA
  input: value metadata_field
  output: SRA list if true

Per discussion with @sejmodha , this is from data in the previous codeathon, so we'll leave it out for now.

sejmodha commented 4 years ago

CRISPR spacer database