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

Penalize genes jumping to new biotypes harder (0.8 --> 0.5).

parent a99d3fec
No related branches found
No related tags found
No related merge requests found
......@@ -409,9 +409,10 @@ sub biotype_gene_rescore {
my $target_gene = $self->cache->get_by_key('genes_by_id', 'target',
$entry->target);
if ($source_gene->biotype ne $target_gene->biotype) {
if ( $source_gene->biotype() ne $target_gene->biotype() ) {
#$self->logger->debug("biotype ".$entry->to_string."\n");
$matrix->set_score($entry->source, $entry->target, ($entry->score * 0.8));
$matrix->set_score( $entry->source(), $entry->target(),
( $entry->score()*0.5 ) );
$i++;
}
}
......
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