Skip to content

Commit

Permalink
add exhaustive option to off target algorithm when searching for cris…
Browse files Browse the repository at this point in the history
…prs, fix tests for this as well
  • Loading branch information
sajp committed May 8, 2015
1 parent 67a6cc6 commit 7e34f1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/LIMS2/WebApp/Controller/User/DesignTargets.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sub gene_report : Path('/user/design_target_report') {

my %report_parameters = (
type => $c->request->param('report_type') || 'standard',
off_target_algorithm => $c->request->param('off_target_algorithm') || 'bwa',
off_target_algorithm => $c->request->param('off_target_algorithm') || 'exhaustive',
crispr_types => $c->request->param('crispr_types') || 'pair',
filter => $c->request->param('filter') || 0,
);
Expand Down
6 changes: 5 additions & 1 deletion root/site/user/designtargets/index.tt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

<label><strong>Off Target Algorithm Type</strong></label>
<label class="radio">
<input type="radio" name="off_target_algorithm" value="bwa" checked>
<input type="radio" name="off_target_algorithm" value="exhaustive" checked>
Exhaustive
</label>
<label class="radio">
<input type="radio" name="off_target_algorithm" value="bwa">
BWA
</label>
<label class="radio">
Expand Down
5 changes: 3 additions & 2 deletions t/lib/LIMS2/t/WebApp/Controller/User/Crisprs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ sub all_tests : Test(21)
ok $res = $mech->submit_form(
fields => {
genes => 'MGI:1917722',
crispr_types => 'group'
crispr_types => 'group',
off_target_algorithm => 'exhaustive',
},
button => 'action',
);
Expand Down Expand Up @@ -75,4 +76,4 @@ sub all_tests : Test(21)

}

1;
1;

0 comments on commit 7e34f1a

Please sign in to comment.