Commit 9c894fca authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Translation stable ID version incrementation only dependent on

translated sequence, not transcript sequence.
parent 3d190b82
......@@ -255,7 +255,7 @@ sub is_valid {
genes, the rules for incrementing the version number are:
- exons: if exon sequence changed
- transcript: if spliced exon sequence changed
- translation: if transcript or translation changed
- translation: if translated sequence changed
- gene: if any of its transcript changed
Return type : String - the version to be used
Exceptions : thrown on wrong argument
......@@ -280,19 +280,7 @@ sub calculate_version {
}
elsif ( $s_obj->isa('Bio::EnsEMBL::IdMapping::TinyTranslation') ) {
# increment version if transcript or translation sequences changed
my $s_tr =
$self->cache->get_by_key( 'transcripts_by_id', 'source',
$s_obj->transcript_id() );
my $t_tr =
$self->cache->get_by_key( 'transcripts_by_id', 'target',
$t_obj->transcript_id() );
if ( $s_tr->seq_md5_sum() ne $t_tr->seq_md5_sum() ||
$s_obj->seq() ne $t_obj->seq() )
{
++$version;
}
if ( $s_obj->seq() ne $t_obj->seq() ) { ++$version }
}
elsif ( $s_obj->isa('Bio::EnsEMBL::IdMapping::TinyGene') ) {
# increment version if any transcript changed
......
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