Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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