700x_proteinmake.xml 1.07 KB
Newer Older
1
<problem attempts="10" display_name="Designing Proteins in Two Dimensions" graceperiod="" max_attempts="" rerandomize="never" showanswer="always" start="2013-02-05T00:00" weight="" xqa_key="qaijS3UatK020Wc0sfCtFe0V6jpB4d64">
James Tauber committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  <script type="loncapa/python">

def two_d_grader(expect,ans):
  import json
  ans=json.loads(ans)
  if "ERROR" in ans["protex_answer"]:
    raise ValueError("Protex did not understand your answer... try folding the protein")
  return ans["protex_answer"]=="CORRECT"


</script>
  <text>
    <customresponse cfn="two_d_grader">
      <designprotein2dinput width="855" height="500" target_shape="W;W;W;W;W;W;W"/>
    </customresponse>
  </text>
  <p>Be sure to click "Fold" to fold your protein before you click "Check".</p>
  <solution>
    <p>
            There are many protein sequences that will fold to the shape we asked you
            about. Here is a sample sequence that will work. You can play around with
            it if you are curious.
        </p>
    <ul>
      <li>
                Stick: RRRRRRR
            </li>
    </ul>
  </solution>
</problem>