Skip to content
Snippets Groups Projects
Commit 37236884 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Implement biotype() based on the method with the same name in

EnsemblGeneGeneric.pm
parent 7e52b3aa
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,33 @@ sub mapped_gene {
return ($new_scores, $mappings);
}
#
# rescore by penalising scores between transcripts with different biotypes
#
sub biotype {
my $self = shift;
my $num = shift;
my $tsb = shift;
my $mappings = shift;
my $transcript_scores = shift;
$self->logger->info( "Retry with biotype disambiguation...\n",
0, 'stamped' );
unless ( $transcript_scores->loaded() ) {
$tsb->biotype_transcript_rescore($transcript_scores);
$transcript_scores->write_to_file();
}
my $new_mappings = $self->basic_mapping( $transcript_scores,
"transcript_mappings$num" );
$num++;
my $new_scores =
$tsb->create_shrinked_matrix( $transcript_scores, $new_mappings,
"transcript_matrix$num" );
return ( $new_scores, $new_mappings );
}
#
# selectively rescore by penalising scores between transcripts with
......
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