Skip to content

Commit

Permalink
cleanup perl/INSTALL.md; remove temp_dir by default; remove .zip hand…
Browse files Browse the repository at this point in the history
…ling which won't work when libdeflate is used or bgzip is used
  • Loading branch information
akotlar committed Sep 18, 2024
1 parent 7bb6e12 commit 15a84b1
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 67 deletions.
2 changes: 1 addition & 1 deletion config/hg19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ statistics:
programPath: bystro-stats
refTrackField: ref
siteTypeField: refSeq.siteType
temp_dir: /mnt/annotator/tmp
temp_dir: ~
tracks:
outputOrder:
- ref
Expand Down
2 changes: 1 addition & 1 deletion config/hg38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ statistics:
programPath: bystro-stats
refTrackField: ref
siteTypeField: refSeq.siteType
temp_dir: /mnt/annotator/tmp
temp_dir: ~
tracks:
outputOrder:
- ref
Expand Down
6 changes: 3 additions & 3 deletions install/install-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ set -e

# Ensure that DIR and PROFILE_FILE are provided
if [ "$#" -ne 6 ]; then
echo "Usage: $0 <PROFILE_FILE> <GOPATH_PARENT_DIR> <GO_INSTALL_DIR> <BYSTRO_INSTALL_DIR> <GO_PLATFORM> <GO_VERSION>"
echo "Usage: $0 <PROFILE_FILE> <GOLANG_INSTALL_DIR> <BYSTRO_GO_PROGRAMS_INSTALL_DIR> <BYSTRO_INSTALL_DIR> <GO_PLATFORM> <GO_VERSION>"
exit 1
fi

PROFILE_FILE="$1"
GOPATH_PARENT_DIR="$2"
INSTALL_DIR="$3"
INSTALL_DIR="$2"
GOPATH_PARENT_DIR="$3"
BYSTRO_INSTALL_DIR="$4"
GO_PLATFORM="$5"
GO_VERSION="$6"
Expand Down
243 changes: 186 additions & 57 deletions perl/INSTALL.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion perl/lib/Interface.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ has compress => (
is => 'ro',
isa => 'Str',
metaclass => 'Getopt',
documentation => 'Compress the output?',
documentation => 'Enable compression. Specify the type of compression: lz4 gz bgz. `bgz` is an alias for gz (gzip); when bgzip is available, it will be used and will generate a block gzipped file with index',
default => 0,
);

Expand Down
2 changes: 1 addition & 1 deletion perl/lib/Seq/Definition.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ has temp_dir => ( is => 'ro', isa => 'Maybe[Str]' );
has compress => ( is => 'ro', isa => 'Str', default => 1 );

has compressType =>
( is => 'ro', isa => enum( [qw/lz4 gz bgz zip/] ), default => 'gz' );
( is => 'ro', isa => enum( [qw/lz4 gz bgz/] ), default => 'gz' );

# Do we want to tarball our results
has archive => ( is => 'ro', isa => 'Bool', default => 0 );
Expand Down
5 changes: 2 additions & 3 deletions perl/lib/Seq/Role/IO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ sub getInnerFileCommand {
my $compressed =
$innerFile =~ /[.]gz$/
|| $innerFile =~ /[.]bgz$/
|| $innerFile =~ /[.]zip$/
|| $filePath =~ /[.]lz4$/;

my $innerCommand;
Expand Down Expand Up @@ -204,7 +203,7 @@ sub isCompressedSingle {
return 0;
}

if ( $basename =~ /[.]gz$/ || $basename =~ /[.]bgz$/ || $basename =~ /[.]zip$/ ) {
if ( $basename =~ /[.]gz$/ || $basename =~ /[.]bgz$/ ) {
return "gzip";
}

Expand Down Expand Up @@ -251,7 +250,7 @@ sub getWriteFh {
}

my $fh;
my $hasGz = $file =~ /[.]gz$/ || $file =~ /[.]bgz$/ || $file =~ /[.]zip$/;
my $hasGz = $file =~ /[.]gz$/ || $file =~ /[.]bgz$/;
my $hasLz4 = $file =~ /[.]lz4$/;
if ( $hasGz || $hasLz4 || $compress ) {
if ( $hasLz4 || ( $compress && $compress =~ /[.]lz4$/ ) ) {
Expand Down

0 comments on commit 15a84b1

Please sign in to comment.