Skip to content

Commit

Permalink
Merge pull request #21 from mourisl/gtdb
Browse files Browse the repository at this point in the history
Fix an issue of creating redundant intermediate nodes in the taxonomy tree
  • Loading branch information
mourisl authored Nov 20, 2024
2 parents dc25bd3 + 985f94d commit 05283f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

//#define DEBUG

#define CENTRIFUGER_VERSION "1.0.6-r175"
#define CENTRIFUGER_VERSION "1.0.6-r178"

extern char nucToNum[26] ;
extern char numToNuc[26] ;
Expand Down
8 changes: 7 additions & 1 deletion indices/gtdb-create-dmp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,18 @@ sub system_call
else
{
$ltid = $novelTaxId ;
$ncbiNamesToTaxId{$lineageFields[$j]} = $ltid ;
#$ncbiNamesToTaxId{$lineageFields[$j]} = $ltid ;
$newNamesToTaxId{$lineageFields[$j]} = $ltid ;
++$novelTaxId ;
}

$taxid = $ltid if ($j == scalar(@lineageFields) - 1) ;

if (defined $nodesToPrint{$ltid} && $nodesToPrint{$ltid} != $parentTid)
{
die "A conflict of lineage information is found when processing $lineage\n" ;
}

$nodesToPrint{$ltid} = $parentTid ;
$taxIdRank{$ltid} = $cols2[0] ;
$namesToPrint{$ltid} = $cols2[1] ;
Expand Down

0 comments on commit 05283f0

Please sign in to comment.