Skip to content

Commit

Permalink
taxon names
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Jan 27, 2015
1 parent 2d33bf6 commit 5dd2ffa
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
29 changes: 29 additions & 0 deletions voseq/create_dataset/forms.py
Expand Up @@ -48,6 +48,11 @@ class CreateDatasetForm(BaseDatasetForm):
widget=forms.CheckboxInput(),
)

aminoacids = forms.ChoiceField(
label='Amino acids',
widget=forms.CheckboxInput(),
)

degen_translations = forms.ChoiceField(
label='Degenerated translations)',
widget=forms.RadioSelect(),
Expand All @@ -58,3 +63,27 @@ class CreateDatasetForm(BaseDatasetForm):
('SZ', 'SZ'),
]
)

special = forms.ChoiceField(
label='Special',
widget=forms.CheckboxInput(),
)

taxon_names = forms.ChoiceField(
label='What info do you want in the taxon names?',
choices=[
('CODE', 'Code'),
('ORDER', 'Order'),
('FAMILY', 'Family'),
('SUBFAMILY', 'Subfamily'),
('TRIBE', 'Tribe'),
('SUBTRIBE', 'Subtribe'),
('GENUS', 'Genus'),
('SPECIES', 'Species'),
('SUBSPECIES', 'Subspecies'),
('AUCTOR', 'Auctor'),
('HOSTORG', 'Host org.'),
('GENECODE', 'Gene code'),
],
widget=forms.CheckboxSelectMultiple(),
)
23 changes: 20 additions & 3 deletions voseq/create_dataset/templates/create_dataset/index.html
Expand Up @@ -53,13 +53,13 @@ <h3 class="panel-title"><b>Enter the required info to make yourself a ready-to-r
Amino Acids->Special->Degen->All->1st—2nd,3rd):
</td>
<td>
{{ form.positions.label }}
<b>{{ form.positions.label }}</b>
{{ form.positions }}

{{ form.partition_by_positions.label }}
<b>{{ form.partition_by_positions.label }}</b>
{{ form.partition_by_positions }}

Translations <br />
<b>Translations</b> <br />
{{ form.translations }}
{{ form.translations.label }}
<i id="translations-tooltip" class="fa fa-question-circle"></i>
Expand All @@ -68,9 +68,26 @@ <h3 class="panel-title"><b>Enter the required info to make yourself a ready-to-r
&nbsp;{{ i }}
<i title="{% cycle 'Normal' 'Degen S: alternative degen encoding of Serin 1 to Serin 2' 'Degen Z: alternative degen encoding of Serin 2 to Serin 1' 'Degen SZ: alternative degen encoding of Serin 1 and Serin 2 to NNN' %}" class="fa fa-question-circle"></i>
{% endfor %}

<br />

{{ form.aminoacids }}
{{ form.aminoacids.label }}

<br />

<b>{{ form.special.label }}</b><br />
{{ form.special }}
{{ form.special.label }}
<i class="fa fa-question-circle" title="Will enable you to specify different translations, positions and partitions for each gene/alignment"></i>
</td>
</tr>

<tr>
<td>{{ form.taxon_names.label }}</td>
<td>{{ form.taxon_names }}</td>
</tr>

</table>


Expand Down
5 changes: 5 additions & 0 deletions voseq/public_interface/static/css/pi.css
Expand Up @@ -41,3 +41,8 @@ body {
display: inline-block;
padding-right: 15px;
}

#id_taxon_names li {
display: inline-block;
padding-right: 15px;
}

0 comments on commit 5dd2ffa

Please sign in to comment.