Skip to content

Commit

Permalink
Version 1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
zy-optimistic committed Jun 30, 2022
1 parent bea44a3 commit 3eb1ed1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/pipeline.pl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ =head1 Note:
#use Data::Dumper;

my $task = 'gaap pipe';
my $mode = 0;
my $mode = 1;

my %data = (
assembly => '',
Expand Down Expand Up @@ -98,8 +98,15 @@ =head1 Note:
if (system "mkdir -p $dir"){
die "[$task] Error! Can't make directory:\"$dir\"\n";
}
}else {
my @f = <"$dir/mapping">;
if (@f) {
die "[$task] Directory $dir/mapping is not empty. Please specify another directory or a empty directory.\n";
}
}



$prefix = "gaap_output" unless $prefix;
my $prefix_out = "$dir/$prefix" if $dir;

Expand Down
5 changes: 5 additions & 0 deletions scripts/run_merqury.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
if (system "mkdir -p $dir"){
die "[$task] Error! Can't make directory:\"$dir\"\n";
}
}else {
my @f = <$dir>;
if (@f) {
die "[$task] Directory $dir is not empty. Please specify another directory or a empty directory.\n";
}
}
if (! -e "$dir/meryl"){
if (system "mkdir -p $dir/meryl"){
Expand Down

0 comments on commit 3eb1ed1

Please sign in to comment.