-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' of https://github.com/wtsi-npg/npg_qc into maste…
…r to create release 69.8.0
- Loading branch information
Showing
6 changed files
with
46 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ sub find_or_save_composition { | |
|
||
sub write_samtools_script { | ||
my ($script_path, $b1) = @_; | ||
|
||
open my $fh, '>', $script_path or croak "Cannot open $script_path for writing"; | ||
|
||
print $fh '#!/usr/local/bin/bash'; | ||
print $fh '#!/usr/bin/env bash'; | ||
print $fh "\n"; | ||
print $fh '# Script to fake samtools in testing. Automatically generated by npg at ' . time; | ||
print $fh "\n"; | ||
|
@@ -65,34 +65,31 @@ sub write_samtools_script { | |
} | ||
|
||
close $fh or carp "Cannot close $script_path"; | ||
|
||
chmod 0775, $script_path; | ||
return 1; | ||
} | ||
|
||
sub write_fastx_script { | ||
sub write_seqtk_script { | ||
|
||
my ($script_path, $b1) = @_; | ||
|
||
my $fh; | ||
open($fh, '>', $script_path) or croak "Cannot open $script_path for writing"; | ||
|
||
print $fh '#!/usr/local/bin/bash'; | ||
print $fh "\n"; | ||
print $fh '# Script to fake fastx in testing. Automatically generated by npg at ' . time; | ||
print $fh '# Script to fake seqtk in testing. Automatically generated by npg at ' . time; | ||
print $fh "\n"; | ||
|
||
# echo the first argument $1; | ||
# echo number of arguments: $#; | ||
if (!defined $b1) { | ||
my $out = q[usage: fastx_reverse_complement [-h] [-r] [-z] [-v] [-i INFILE] [-o OUTFILE] | ||
Part of FASTX Toolkit 0.0.12 by A. Gordon ([email protected]) | ||
[-h] = This helpful help screen. | ||
[-z] = Compress output with GZIP. | ||
[-i INFILE] = FASTA/Q input file. default is STDIN. | ||
[-o OUTFILE] = FASTA/Q output file. default is STDOUT. | ||
my $out = q[ | ||
Usage: seqtk <command> <arguments> | ||
Version: 1.3 | ||
Command: seq common transformation of FASTA/Q | ||
]; | ||
|
||
print $fh "echo '$out'"; | ||
|
@@ -107,7 +104,7 @@ Part of FASTX Toolkit 0.0.12 by A. Gordon ([email protected]) | |
sub write_bwa_script { | ||
|
||
my ($script_path, $s1, $bwa_version) = @_; | ||
|
||
my $fh; | ||
open($fh, '>', $script_path) or croak "Cannot open $script_path for writing"; | ||
|
||
|
@@ -133,7 +130,7 @@ sub write_bwa_script { | |
} | ||
|
||
close $fh; | ||
|
||
chmod 0775, $script_path; | ||
return 1; | ||
} | ||
|