Skip to content

Instantly share code, notes, and snippets.

@nkrumm
Forked from nhoffman/codesample.rst
Last active August 10, 2022 22:25
Show Gist options
  • Save nkrumm/cbbfb331e9f8ff8f1244bf716b2d35c0 to your computer and use it in GitHub Desktop.
Save nkrumm/cbbfb331e9f8ff8f1244bf716b2d35c0 to your computer and use it in GitHub Desktop.
Python code sample

Web app code sample

We're looking for a full-stack web/applications developer who can build solutions for our laboratories and bioinformatics teams. One useful way for us to get a sense for your skill in these areas is in the form of a working code sample. Here's what should be a fairly straightforward exercise:

  • Build a simple web page that performs a web BLAST query against nt using a DNA sequence read in via a form field (or from a file in FASTA format if you like).
  • It should validate the input to be of valid FASTA format.
  • Once the results are available, they should be displayed in a simple table. Include the fields that you think are most informative.

Requirements

Please make sure the application can be run locally!

Here are some example input sequences to try out:

>NC_009085_A1S_r15 NC_009085.1 Acinetobacter baumannii ATCC 17978 chromosome, complete genome.
ATTGAACGCTGGCGGCAGGCTTAACACATGCAAGTCGAGCGGGGGAAGGTAGCTTGCTAC
TGGACCTAGCGGCGGACGGGTGAGTAATGCTTAGGAATCTGCCTATTAGTGGGGGACAAC
ATCTCGAAAGGGATGCTAATACCGCATACGTCCTACGGGAGAAAGCAGGGGATCTTCGGA
CCTTGCGCTAATAGATGAGCCTAAGTCGGATTAGCTAGTTGGTGGGGTAAAGGCCTACCA
AGGCGACGATCTGTAGCGGGTCTGAGAGGATGATCCGCCACACTGGGACTGAGACACGGC
CCAGA
>NC_003909_BCE_5738 NC_003909.8 Bacillus cereus ATCC 10987, complete genome.
GATGAACGCTGGCGGCGTGCCTAATACATGCAAGTCGAGCGAATGGATTAAGAGCTTGCT
CTTATGAAGTTAGCGGCGGACGGGTGAGTAACACGTGGGTAACCTGCCCATAAGACTGGG
ATAACTCCGGGAAACCGGGGCTAATACCGGATAACATTTTGAACCGCATGGTTCGAAATT
GAAAGGCGGCTTCGGCTGTCACTTATGGATGGACCCGCGTCGCATTAGCTAGTTGGTGAG
GTAACGGCTCACCAAGGCAACGATGCGTAGCCGACCTGAGAGGGTGATCGGCCACACTGG
GACTGAGACACGGCCCAGA

This isn't meant to consume a lot of your time - a minimal solution is fine.

@crosenth
Copy link

crosenth commented Aug 10, 2022

Does Please make sure the application can be run locally! mean setting up Blast+ and running blastn on a local computer? We had a candidate who interpreted it that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment