Skip to content

Commit

Permalink
Update the GTDB download and create script
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Jun 9, 2024
1 parent 8226c10 commit f7dec0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions indices/gtdb-create-dmp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ sub system_call
#print STDERR " finished\n";
}

my $usage = "Usage: create-dmp-gtdb.pl [OPTIONS]\n".
my $usage = "Usage: gtdb-create-dmp.pl [OPTIONS]\n".
"\t-d STR: directory of GTDB untarred representative sequence\n".
"\t-m STR: GTDB metadata file\n".
"\t-o STR: output prefix [gtdb_]\n".
#"\t-t INT: number of threads to use [1]\n".
"\t--names STR: NCBI's names.dmp file. If not given, using non-NCBI taxid to represent intermediate nodes.\n".
"\t--skipSeqId2TaxId: skip the step of generating seqid_to_taxid.map file.\n"
"\t--generateSeqId2TaxId: generate seqid_to_taxid.map conversion file.\n"
;

die "$usage\n" if (@ARGV == 0) ;
Expand All @@ -59,7 +59,7 @@ sub system_call
my $metaFile = "" ;
my $novelTaxId = 10000000 ;
my $numThreads = 1 ;
my $skipSeqIdMap = 0 ;
my $generateSeqIdMap = 0 ;

GetOptions(
"o=s" => \$outputPrefix,
Expand All @@ -68,7 +68,7 @@ sub system_call
#"t=i" => \$numThreads,
#"nodes=s" => \$ncbiNodeDmp,
"names=s" => \$ncbiNameDmp,
"skipSeqId2TaxId" => \$skipSeqIdMap
"generateSeqId2TaxId" => \$generateSeqIdMap
) ;
my $fullGenomeDir = abs_path($genomeDir) ;

Expand Down Expand Up @@ -202,7 +202,7 @@ sub system_call
close FPoutFileList ;

# Iterate through the genome files to generate the seqid map file
if ($skipSeqIdMap)
if ($generateSeqIdMap == 0)
{
exit(0) ;
}
Expand Down
2 changes: 1 addition & 1 deletion indices/gtdb-download.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use Getopt::Long ;

my $usage = "perl ./download-gtdb.pl [options]:\n".
my $usage = "perl ./gtdb-download.pl [options]:\n".
"options:\n".
"\t-o STR: output prefix [gtdb]\n".
"\t--names STR: the NCBI names.dmp file\n".
Expand Down

0 comments on commit f7dec0f

Please sign in to comment.