Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a --check option to test dependencies to prokka and report #175

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bin/prokka
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ my(@Options, $quiet, $debug, $kingdom, $fast, $force, $outdir, $prefix, $cpus,
$genus, $species, $strain, $plasmid,
$usegenus, $proteins, $hmms, $centre, $scaffolds,
$rfam, $norrna, $notrna, $rnammer, $rawproduct, $noanno,
$metagenome, $compliant, $listdb, $citation);
$metagenome, $compliant, $listdb, $citation, $check);
setOptions();

# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Expand Down Expand Up @@ -1605,6 +1605,7 @@ sub setOptions {
{OPT=>"citation",VAR=>\&show_citation, DESC=>"Print citation for referencing Prokka"},
{OPT=>"quiet!", VAR=>\$quiet, DEFAULT=>0, DESC=>"No screen output"},
{OPT=>"debug!", VAR=>\$debug, DEFAULT=>0, DESC=>"Debug mode: keep all temporary files"},
{OPT=>"check!", VAR=>\$check, DEFAULT=>0, DESC=>"Check dependencies: Check all dependencies, report and exit."},
'Setup:',
{OPT=>"listdb", VAR=>\&list_db, DESC=>"List all configured databases"},
{OPT=>"setupdb", VAR=>\&setup_db, DESC=>"Index all installed databases"},
Expand Down Expand Up @@ -1660,6 +1661,12 @@ sub setOptions {
${$_->{VAR}} = $_->{DEFAULT};
}
}

if($check){
&check_all_tools();
exit(0);
}

}

sub usage {
Expand Down