Unverified Commit b9bef364 authored by s-mm's avatar s-mm Committed by GitHub

Merge pull request #92 from Ensembl/bugfix/save_trigger

Code to fix unnecessary save trigger when an ensembl transcript is opened
parents 3fdd9ebb 2eaac111
......@@ -2613,6 +2613,9 @@ sub _replace_SubSeq_sqlite {
$self->logger->debug("$new_subseq_name: diffs to original saved SubSeq.");
$self->_log_diffs($diffs, "SubSeq $new_subseq_name");
$from_HumAce->update_Transcript($new_subseq, $old_subseq, $diffs);
if ($self->_locus_cache->get($new_locus_name)->gene_type_prefix eq 'ensembl') {
$self->_locus_cache->get($new_locus_name)->gene_type_prefix('');
}
} else {
$self->logger->debug("$new_subseq_name: no diffs so nothing else to do.");
}
......
......@@ -1275,6 +1275,9 @@ sub _get_Locus_from_tk {
if ($name =~ /^([^:]+):/) {
$locus->gene_type_prefix($1);
}
if (! $locus->gene_type_prefix) {
$locus->gene_type_prefix($self->SubSeq->Locus->gene_type_prefix);
}
$locus->description($desc) if $desc;
$locus->set_aliases(@aliases);
......
Markdown is supported
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