Advertisement
eduardoperezl

Codigo de Constructor de la Herramienta de Proteina

Sep 9th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.33 KB | None | 0 0
  1. <problem>
  2.     <p> El constructor de proteína permite encadenar los bloques de construcción de proteínas, amino ácidos, y ver como esa cadena formará una estructura. Se está representado con
  3.       The protein builder allows you string together the building blocks of proteins, amino acids, and see how that string will form into a structure. Se te presenta un objetivo de forma de proteína, y tu tarea es tratar de recrearlo. En el ejemplo de abajo la forma que se te pide formar es una línea simple.</p>
  4.    <p> Asegurate de hacer click en "Fold" para plegar la proteína antes de hacer click en "Check".</p>
  5.  
  6. <script type="loncapa/python">
  7.  
  8. def protex_grader(expect,ans):
  9.   import json
  10.   ans=json.loads(ans)
  11.   if "ERROR" in ans["protex_answer"]:
  12.     raise ValueError("Protex did not understand your answer. Try folding the protein.")
  13.   return ans["protex_answer"]=="CORRECT"
  14.  
  15. </script>
  16.  
  17.   <text>
  18.     <customresponse cfn="protex_grader">
  19.       <designprotein2dinput width="855" height="500" target_shape="W;W;W;W;W;W;W"/>
  20.     </customresponse>
  21.   </text>
  22.   <solution>
  23.     <p>
  24.       Many protein sequences, such as the following example, fold to a straight line.You can play around with the protein builder if you're curious.
  25.     </p>
  26.     <ul>
  27.       <li>
  28.           Stick: RRRRRRR
  29.       </li>
  30.     </ul>
  31.   </solution>
  32. </problem>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement