Skip to content

Commit

Permalink
removed bug from 25102023 that impaired removal of non-local genes, t…
Browse files Browse the repository at this point in the history
…his duplicated a few clusters
  • Loading branch information
brunocontrerasmoreira committed Nov 15, 2023
1 parent ea21661 commit bc0c7b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pangenes/_cluster_analysis.pl
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ sub help_message {

foreach $cluster_id (@cluster_ids) {

#next if($cluster_id !~ '1:::HORVU.MOREX.r3.3HG0311160'); #gene:BGIOSGA000009'); #debug
#next if($cluster_id !~ 'Os01g0116250'); #1:::HORVU.MOREX.r3.3HG0311160'); #gene:BGIOSGA000009'); #debug

# set main cluster id, note it can be updated within the loop
$main_cluster_id = $cluster_id;
Expand Down Expand Up @@ -624,7 +624,7 @@ sub help_message {
# original cluster was named after this gene,
# we'll need to create a new one and set it as main cluster
# NOTE: this can only happen once per cluster
if(defined($cluster{$gene_stable_id})) {
if(defined($cluster{ $supported{$species}.':::'.$gene_stable_id })) {

# copy original cluster to new main cluster id
$new_cluster_id = $supported{$species}.':::'.$best_gene_stable_id;
Expand All @@ -646,7 +646,7 @@ sub help_message {
push(@{ $cluster{$cluster_id}{$species}}, $gene_stable_id);

if($verbose) {
print "# WARN: remove $gene_stable_id from cluster $cluster_id -> ".
print "# WARN: remove $gene_stable_id from cluster $cluster_id => ".
"$main_cluster_id ($index_dist)\n";
}

Expand Down

0 comments on commit bc0c7b9

Please sign in to comment.