Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Emmanuel QUEVILLON
BIGSdb
Commits
89b0d30f
Commit
89b0d30f
authored
Jan 17, 2015
by
Keith Jolley
Browse files
Genome Comparator: Limit loci in reference genome to 10,000.
parent
35730389
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/BIGSdb/Plugins/GenomeComparator.pm
View file @
89b0d30f
...
...
@@ -37,6 +37,7 @@ use constant MAX_UPLOAD_SIZE => 32 * 1024 * 1024; #32MB
use
constant
MAX_SPLITS_TAXA
=>
200
;
use
constant
MAX_DISPLAY_TAXA
=>
150
;
use
constant
MAX_GENOMES
=>
1000
;
use
constant
MAX_REF_LOCI
=>
10000
;
use
constant
MAX_MUSCLE_MB
=>
4
*
1024
;
#4GB
sub
get_attributes
{
...
...
@@ -51,7 +52,7 @@ sub get_attributes {
buttontext
=>
'
Genome Comparator
',
menutext
=>
'
Genome comparator
',
module
=>
'
GenomeComparator
',
version
=>
'
1.7.
0
',
version
=>
'
1.7.
1
',
dbtype
=>
'
isolates
',
section
=>
'
analysis,postquery
',
url
=>
"
$self
->{'config'}->{'doclink'}/data_analysis.html#genome-comparator
",
...
...
@@ -849,6 +850,9 @@ sub _analyse_by_reference {
}
$self
->
{'
html_buffer
'}
.=
"
</table>
";
$self
->
{'
jobManager
'}
->
update_job_status
(
$job_id
,
{
message_html
=>
$self
->
{'
html_buffer
'}
}
);
if
(
@cds
>
MAX_REF_LOCI
)
{
throw
BIGSdb::
PluginException
(
"
Too many loci in reference genome - limit is set at
"
.
MAX_REF_LOCI
.
'
.
'
);
}
$self
->
{'
html_buffer
'}
.=
"
<h3>All loci</h3>
\n
";
$self
->
{'
file_buffer
'}
.=
"
\n\n
All loci
\n
--------
\n\n
";
$self
->
{'
html_buffer
'}
.=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment