Commit 7e1e8fdc by Mark Hoeber

Merge pull request #2453 from edx/sylvia/documentation/BLD-759

Add "Protein Builder" to "Additional Tools"
parents 54dbadb3 bd4e5e40
......@@ -14,6 +14,7 @@ Individual course teams frequently create tools and problem types that don't hav
Below, you'll find the information you need to create the following tools.
* :ref:`Multiple Choice and Numerical Input`
* :ref:`Protein Builder`
.. _Multiple Choice and Numerical Input:
......@@ -61,3 +62,70 @@ Multiple Choice and Numerical Input Problem Code
</choicetextresponse>
</problem>
.. _Protein Builder:
************************
Protein Builder
************************
The protein builder asks students to create specified protein shapes by stringing together amino acids. In the example below, the goal protein shape is a simple line.
.. image:: /Images/ProteinBuilder.gif
:alt: Image of the protein builder
.. _Create the Protein Builder:
==========================
Create the Protein Builder
==========================
To create the protein builder:
#. Upload all of the files listed above to the *Files & Uploads* page in your course.
#. Under the HTML component, click **Problem** under **Add New Component**, and then click **Blank Advanced Problem**.
#. In the component that appears, click **Edit**.
#. In the component editor, paste the Problem component code from below.
#. Make any changes that you want, and then click **Save**.
.. _Protein Builder Code:
=====================
Protein Builder Code
=====================
::
<problem>
<p>The protein builder allows you string together the building blocks of proteins, amino acids, and see how that string will form into a structure. You are presented with a goal protein shape, and your task is to try to re-create it. In the example below, the shape that you are asked to form is a simple line.</p>
<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>
......@@ -13,6 +13,8 @@ Change Log
* - Date
- Change
* - 02/04/14
- Added :ref:`Additional Tools` topic with :ref:`Multiple Choice and Numerical Input` and :ref:`Protein Builder`
* - 01/29/2014
- Added the chapter :ref:`Using an Instant Hangout in Your Course`.
* - 01/21/2014
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment