Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from Merfoo/gene-sequences-import
Gene sequences import for Maddison Lab
- Loading branch information
Showing
14 changed files
with
308 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= render 'descriptors/batch_load/modify_gene_descriptor/batch_load' -%> |
35 changes: 35 additions & 0 deletions
35
app/views/descriptors/batch_load/modify_gene_descriptor/_batch_load.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div> | ||
<h2> Modify Gene Descriptor batch load </h2> | ||
|
||
<div class="flexbox full_viewport_whitespace"> | ||
<div class="item item1 one_third_width"> | ||
<h3> Description and requirements </h3> | ||
|
||
<p> Modifies each gene descriptors gene attribute logic to be at least one forward primer and one reverse primer. </p> | ||
<ul> | ||
<li>A tab-delimited, UTF-8 compatible text file is required.</li> | ||
<li>Column headers are (see <%= link_to('sample template', asset_path('batch_load_templates/descriptors/modify_gene_descriptor_batch_load.tab'), target: '_blank') -%>).</li> | ||
<li>Each primer is separated by a comma and space (", ")</li> | ||
<li>Multiple uploads of the same data will X.</li> | ||
<li>It is assumed each gene has one forward primer and one reverse primer.</li> | ||
<li>There is currently some|no size limit to the file being loaded but this may change in the future.</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="item item2 one_third_width"> | ||
<h3> Example file </h3> | ||
|
||
<p> A tab delimited formatted file | ||
In the example whitespace is a tab. View sample file template.</p> | ||
|
||
<pre class="fixed_width_font"> | ||
gene_name forward_primers reverse_primers | ||
</pre> | ||
</div> | ||
|
||
<div class="item item3"> | ||
<h3> Go! </h3> | ||
<%= render partial: '/descriptors/batch_load/modify_gene_descriptor/form', locals: {url: preview_modify_gene_descriptor_batch_load_descriptors_path, submit: :preview} -%> | ||
</div> | ||
</div> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
app/views/descriptors/batch_load/modify_gene_descriptor/_form.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%= form_tag url, multipart: true do -%> | ||
<div class="field"> | ||
<%= label_tag :file, 'Select a file' -%> | ||
<br> | ||
<%= file_field_tag :file -%> | ||
</div> | ||
|
||
<%= content_for :warn_level -%> | ||
<%= submit_tag submit -%> | ||
<% end %> |
1 change: 1 addition & 0 deletions
1
app/views/descriptors/batch_load/modify_gene_descriptor/create.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= render partial: '/shared/data/all/batch_load/create' -%> |
33 changes: 33 additions & 0 deletions
33
app/views/descriptors/batch_load/modify_gene_descriptor/preview.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<% content_for :warn_level do -%> | ||
<%= warn_level_input(@result) -%> | ||
<% end %> | ||
<%= content_for :batch_form do -%> | ||
<%= render partial: '/descriptors/batch_load/modify_gene_descriptor/form', locals: {url: create_modify_gene_descriptor_batch_load_descriptors_path, submit: :create} -%> | ||
<% end %> | ||
<%= content_for :line_breakdown do -%> | ||
<table class="top_align_text"> | ||
<tr> | ||
<th class="four_character_width">line</th> | ||
<th class="four_character_width">data count</th> | ||
<th> gene attribute logic </th> | ||
<th class=""> data errors* </th> | ||
<th class=""> parse errors </th> | ||
</tr> | ||
|
||
<% @result.sorted_processed_rows.each do |i, rp| -%> | ||
<tr> | ||
<%= batch_line_link_td(i) -%> | ||
<%= batch_all_objects_count_td(rp) -%> | ||
<td> | ||
<%= rp.objects[:descriptor].each_with_index.collect{|n, i| "#{i + 1}: " + n.gene_attribute_logic }.join('<br>').html_safe -%> | ||
</td> | ||
<%= batch_data_errors_td(rp) -%> | ||
<%= batch_parse_errors_td(rp) -%> | ||
</tr> | ||
<% end -%> | ||
</table> | ||
<% end %> | ||
<%= render partial: '/shared/data/all/batch_load/preview' -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.