-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_design.tt
118 lines (111 loc) · 3.06 KB
/
view_design.tt
1
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[% META title="View Design" %]
<p>
<a href="[% c.uri_for( '/user/browse_designs' ) %]" class="btn btn-primary">
<i class="icon-hand-left icon-white"></i>
Back to search
</a>
</p>
<div class="page-header">
<h1>Design <small> [% design.id %]</small></h1>
</div>
<table class="table table-bordered">
[%- FOR r IN display_design %]
[%- SET title=r.0; SET accessor = r.1 -%]
<tr>
<th>[% title %]</th> <td>[% design.$accessor %]</td>
</tr>
[%- END %]
</table>
<h2>Comments</h2>
[% IF design.comments.size > 0 %]
<table class="table">
<thead>
<tr>
<th>Category</th>
<th>Comment</th>
<th>Public?</th>
<th>Created at</th>
<th>Created by</th>
</tr>
</thead>
<tbody>
[%- FOR comment IN design.comments %]
<tr>
<td>[% comment.category %]</td>
<td>[% comment.comment_text %]</td>
<td>
[% IF comment.is_public %]
yes
[% ELSE %]
no
[% END %]
</td>
<td>[% comment.created_by %]</td>
<td>[% comment.created_at %]</td>
</tr>
[%- END %]
</tbody>
</table>
[% ELSE %]
<p><em>No comments for this design</em></p>
[% END %]
<h2>Oligos</h2>
[% IF design.oligos.size > 0 %]
<table class="table table-striped">
<thead>
<tr>
<th>Type</th>
<th>Chromosome</th>
<th>Strand</th>
<th>Start</th>
<th>End</th>
<th>Sequence</th>
</tr>
</thead>
<tbody>
[%- FOR oligo IN design.oligos %]
<tr>
<td>[% oligo.type %]</td>
<td>[% oligo.locus.chr_name %]</td>
<td>[% oligo.locus.chr_strand %]</td>
<td>[% oligo.locus.chr_start %]</td>
<td>[% oligo.locus.chr_end %]</td>
<td>[% oligo.seq %]</td>
</tr>
[%- END %]
</tbody>
</table>
[% IF design.oligos_fasta %]
<form id="UCSC_BLAT" enctype="multipart/form-data" method="post" action="http://genome.ucsc.edu/cgi-bin/hgBlat" name="UCSC_BLAT" target="_blank">
<input type="hidden" name="org" value="Mouse" />
<input type="hidden" name="db" value="mm9" />
<input type="hidden" name="type" value="DNA" />
<input type="hidden" name="sort" value="query,score" />
<input type="hidden" name="output" value="hyperlink" />
<input type="hidden" name="userSeq" value="[% design.oligos_fasta %]"/>
<input type="hidden" name="Lucky" value="I'm feeling lucky" />
<input type="submit" class="btn btn-primary" value="UCSC BLAT" name="Lucky"/>
</form>
[% END %]
[% ELSE %]
<p><em>No oligos for this design</em></p>
[% END %]
<h2>Genotyping Primers</h2>
[% IF design.genotyping_primers.size > 0 %]
<table class="table table-striped">
<thead>
<th>Type</th>
<th>Sequence</th>
</thead>
<tbody>
[%- FOR primer IN design.genotyping_primers %]
<tr>
<td>[% primer.type %]</td>
<td>[% primer.seq %]</td>
</tr>
[%- END %]
</tbody>
</table>
[% ELSE %]
<p><em>No genotyping primers for this design</em></p>
[% END %]