Commit b42efe16 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Skip genes that are listed in Compara but aren't in the relevant core...

Skip genes that are listed in Compara but aren't in the relevant core databases. Shouldn't be necessary in production runs but makes testing with previous Compara versions easier.
parent c158ecbc
...@@ -188,12 +188,16 @@ foreach my $to_species (@to_multi) { ...@@ -188,12 +188,16 @@ foreach my $to_species (@to_multi) {
my $from_gene = $from_ga->fetch_by_stable_id($from_stable_id); my $from_gene = $from_ga->fetch_by_stable_id($from_stable_id);
next if (!$from_gene);
my @to_genes = @{$homologies->{$from_stable_id}}; my @to_genes = @{$homologies->{$from_stable_id}};
my $i = 1; my $i = 1;
foreach my $to_stable_id (@to_genes) { foreach my $to_stable_id (@to_genes) {
my $to_gene = $to_ga->fetch_by_stable_id($to_stable_id); my $to_gene = $to_ga->fetch_by_stable_id($to_stable_id);
next if (!$to_gene);
project_display_names($to_ga, $to_dbea, $from_gene, $to_gene, $i, scalar(@to_genes), %db_to_type) if ($names); project_display_names($to_ga, $to_dbea, $from_gene, $to_gene, $i, scalar(@to_genes), %db_to_type) if ($names);
project_go_terms($to_ga, $to_dbea, $ma, $from_gene, $to_gene) if ($go_terms); project_go_terms($to_ga, $to_dbea, $ma, $from_gene, $to_gene) if ($go_terms);
......
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