Skip to content

yawetse/variant-search

Repository files navigation

Variant Search Coding Assignment

Assignment

Create a web application that allows a user to search for genomic variants by gene name and display the results in a tabular view.

Installation

  1. clone repository
  2. run npm install (node 10+), I have a local docker image I will deploy later
  3. run node index.js -e development
$ cd /path/to/working-dir
$ git clone git@github.com:yawetse/variant-search.git 
$ npm install
$ node index.js -e development

Features

The endpoints require Basic Auth (for Postman/CURL base64 encode client_id:client_secret) in browser use the client_id as the username and client_secret as the password

  1. Allow the user to enter a gene name to search for variants in that gene. Display the results in a table that shows various attributes associated with each genomic variant.

  2. Provide an auto-suggest feature for entering the gene name.

  3. Provide two RESTful endpoints supporting the functionality listed in steps 1 and 2.

    • Auto Suggest RESTful endpoint: http://localhost:8786/basic_api/v1/search/genes/{SEARCHTERM}?format=json
    • Gene Variants RESTful endpoint: http://localhost:8786/basic_api/v1/genes/{GENE}?format=json

Implementation

Server Code

Client Code

Implementation

Screenshots

Main Interface

Main Interface

Main Interface - Auto Suggest

Auto Suggest

Main Interface - Gene Variants

Gene Results

REST - auto suggest

Auto Suggest

REST - gene variants

Gene Variants

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors