Skip to content

Commit

Permalink
Modified help message.
Browse files Browse the repository at this point in the history
  • Loading branch information
zy-optimistic committed Nov 20, 2023
1 parent b7041e1 commit d8a9a7c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 19 deletions.
1 change: 1 addition & 0 deletions config/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ metaeuk=
{hmmsearch}
hmmsearch=
{bbtools}
#path to stat.sh
bbtools=
4 changes: 2 additions & 2 deletions gaep
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use FindBin qw ($RealBin);
my $task = 'gaep';
my $mode = 0;

my $command = shift ;
my $command = shift ;

my $usage = qq(
Program: gaep
Version: V1.1.1
Version: V1.2.3
Pipeline to assess genome assembly.
Expand Down
3 changes: 2 additions & 1 deletion scripts/breakpoint_detection.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
my $mode = 0;

my $usage = <<USAGE;
Program: $task
Program: gaep bkp
Usage: gaep bkp <-r fasta_file> [options]
Options:
-r <FILE> genome assembly in a fasta file
-i <FILE> Fastq file. Can be set more than one time.
Expand Down
2 changes: 1 addition & 1 deletion scripts/pipeline.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
=head1 Description
GAEP: Genome Assembly Evaluating Pipeline
Version: V1.1.1
Version: V1.2.3
=head1 Usage
Expand Down
18 changes: 7 additions & 11 deletions scripts/run_busco5.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
my $mode = 0;

my $usage = <<USAGE;
Program: $task
Program: gaep busco
Command:
$task -r assembly [options]
gaep busco <-r assembly> [options]
Options:
-d <PATH> output directory
Expand Down Expand Up @@ -53,7 +53,7 @@
"h" => \$help,
);

die $usage if $help || (!$assembly && !$lineage);
die $usage if $help || (!$assembly || !$lineage);

$lineage = "./$lineage" if $lineage !~ /\//;
if (-e "$lineage/dataset.cfg") {
Expand All @@ -78,7 +78,10 @@
die "[$task]Error! Can't make directory:\"$dir\"\n";
}
}
$prefix_out = "busco_output" unless $prefix_out;
#elsif(!$dir) {
# $dir='./run_busco5_output';
#}
$prefix_out = "busco_output" unless $prefix_out;

#$ENV{PATH} = "$ENV{PATH}".":".dirname($config->{'augustus'});
#my $AUGUSTUS_CONFIG_PATH = dirname($config->{'augustus'})."/../config";
Expand Down Expand Up @@ -108,13 +111,6 @@
sub create_config {
my $config = shift;
my $def_con = shift;
#$config->{'tblastn'} = dirname($config->{'tblastn'});
#$config->{'makeblastdb'} = $config->{'tblastn'};
#$config->{'augustus'} = dirname($config->{'augustus'});
#$config->{'etraining'} = $config->{'augustus'};
#$config->{'gff2gbSmallDNA.pl'} = $config->{'augustus'};
#$config->{'new_species.pl'} = $config->{'augustus'};
#$config->{'optimize_augustus.pl'} = $config->{'augustus'};
if (lc($domain) eq 'eukaryota') {
$config->{metaeuk} = $config->{metaeuk} ? check_software("metaeuk", $config->{metaeuk}) : check_software("metaeuk");
die "[$task] Error! Can't find metaeuk.\nPlease input a correct path or add it to environment.\n" if $config->{'metaeuk'} eq "-1";
Expand Down
4 changes: 2 additions & 2 deletions scripts/run_merqury.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
my $mode = 0;

my $usage = qq(
Program: $task
Program: gaep kacc
Usage: $task <-r fasta> <-i fastq> [<-i fastq>] [options]
Usage: gaep kacc <-r fasta> <-i fastq> [<-i fastq>] [options]
Options:
-r Genome assembly in a fasta file
-g Total length of assembly
Expand Down
4 changes: 2 additions & 2 deletions scripts/stat_accuracy_base.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
my $mode = 0;

my $usage = qq(
Program: $task
Program: gaep macc
Usage: $task
Usage: gaep macc <-r fasta_file> [options]
Options:
-r <FILE> Genome assembly in a fasta file
-i <FILE> Fastq1 file. Can be set more than one time
Expand Down

0 comments on commit d8a9a7c

Please sign in to comment.