BE.180:Assignment1: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
Line 17: Line 17:
  key3
  key3
  value3...
  value3...
*Please plan to submit one .py file containing the code for both question 1 and question 2, named as yourathenaname_assignmentnumber.py.  For example, for the first assignment, my file would be called spencers_1.py.
*Your code should create two output files, one for question 1, called output1.txt, and one for question 2, called output2.txt.


===Questions and Clarifications===
===Questions and Clarifications===

Revision as of 20:17, 16 February 2006

Assignment PDF

  • Download Assignment 1 PDF

Parts

Write your code so that it could take in any input file which has the following structure:
key1
value1
key2
value2
key3
value3...
  • Please plan to submit one .py file containing the code for both question 1 and question 2, named as yourathenaname_assignmentnumber.py. For example, for the first assignment, my file would be called spencers_1.py.
  • Your code should create two output files, one for question 1, called output1.txt, and one for question 2, called output2.txt.

Questions and Clarifications

  • Note that the stop codon TAA must be in frame, i.e. a multiple of 3 basepairs away from the ATG. For example, ATGxxxxxxTAA would be in frame, but ATGxxxxxTAA would not be. (x is any basepair)
  • Is it significant that the barcode is CAPS and the other parts are lower case?
    • NO/no.
  • Can an ORF be any length over 50, or should its length be a multiple of some small integer?
    • An ORF should be a length that is a multiple of three, the number of base pairs that comprise a codon
  • Does the ORF include the start ATG and stop TAA? Suppose the DNA string is "ATG...TAA": is the ORF "..." or "ATG..." or "ATG...TAA" or "...TAA"?
    • The ORF includes the "start" ATG and "stop" TAA.
  • Can ORFs overlap? Suppose the DNA string is "ATG...TAAxxxTAA". The first ORF is obviously (modulo previous question) "ATG...TAA". Is "ATG...TAAxxxTAA" also an ORF? It meets the specification of "a string starting with ATG and ending with TAA". One could imagine a similar situation with overlapping starting tags: "ATG...ATGxxxTAA" might have both "ATG...ATGxxxTAA" and "ATGxxxTAA".
    • Yes, ORFs can overlap.