Skip to content
Snippets Groups Projects
Commit f55f4be4 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

add not_dna flag to avoid storing sequence if it is not a dna database

parent 53f8331d
No related branches found
No related tags found
No related merge requests found
......@@ -1953,6 +1953,7 @@ sub store {
my $self = shift;
my $slice = shift;
my $seqref = shift;
my $not_dna = shift;
#
# Get all of the sanity checks out of the way before storing anything
......@@ -1985,7 +1986,7 @@ sub store {
throw("Slice must have valid seq region name.");
}
if($cs->is_sequence_level()) {
if($cs->is_sequence_level() && !$not_dna) {
if(!$seqref) {
throw("Must provide sequence for sequence level coord system.");
}
......@@ -2022,7 +2023,7 @@ sub store {
throw("Database seq_region insertion failed.");
}
if($cs->is_sequence_level()) {
if($cs->is_sequence_level() && !$not_dna) {
#store sequence if it was provided
my $seq_adaptor = $db->get_SequenceAdaptor();
$seq_adaptor->store($seq_region_id, $$seqref);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment