Unverified Commit 5054c3a6 authored by Tiago Grego's avatar Tiago Grego Committed by GitHub

Merge pull request #95 from Ensembl/bugfix/save_trigger

Bugfix/save trigger
parents 9316b05d 1bbd5db7
......@@ -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