Skip to content

Commit 6bba008

Browse files
committed
Cleanup and initializations
1 parent 08c5166 commit 6bba008

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"ValuesAndExpressions::ProhibitMagicNumbers",
88
"InputOutput::RequireBriefOpen",
99
"Modules::ProhibitExcessMainComplexity",
10-
"Modules::RequireVersionVar"
10+
"Modules::RequireVersionVar",
11+
"ControlStructures::ProhibitDeepNests",
12+
"BuiltinFunctions::ProhibitStringySplit"
1113
]
1214
}

LABEL_RES/scripts/._hmmscore

-82 Bytes
Binary file not shown.

LABEL_RES/scripts/evaluateResults.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
local $RS = "\n";
7979
while ( my $line = <PL> ) {
8080
chomp($line);
81-
my @pieces = split( '/', $line );
81+
my @pieces = split( q{/}, $line );
8282
my $annot = pop(@pieces);
8383
my $junk = shift(@pieces);
8484
if ( scalar @pieces > 1 ) {
@@ -116,7 +116,7 @@ ($)
116116
my $pred = trim( $fields[1] );
117117
my $anno = 'unknown';
118118

119-
if ( $fields[0] =~ /{([^{}]*)}\s*$/sxm ) {
119+
if ( $fields[0] =~ /{([^{}]*)}\s*$/smx ) {
120120
$anno = $1;
121121
}
122122

LABEL_RES/scripts/interleavedSamples.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
use File::Basename;
4444
use Getopt::Long;
4545

46-
my ( $numberGroups, $fraction, $fastQ, $byReadPairs, $readZipped, $underscoreHeader, $extension );
46+
my ( $numberGroups, $fraction, $extension );
47+
my ( $byReadPairs, $readZipped, $underscoreHeader, $fastQ ) = ( 0, 0, 0, 0 );
4748
GetOptions(
4849
'groups|G=i' => \$numberGroups,
4950
'fraction|F=i' => \$fraction,
@@ -54,7 +55,7 @@
5455
'extension|X:s' => \$extension
5556
);
5657

57-
if ( scalar(@ARGV) < 2 ) {
58+
if ( scalar @ARGV < 2 ) {
5859
die( "\n$PROGRAM_NAME <input.fasta> <out_prefix> [-G <#groups>|-F <denom-fraction>] [OPTIONS]\n"
5960
. "\t-F|--fraction POSITIVE_NUMBER\t\tFraction of dataset, using denominator D: 1/D.\n"
6061
. "\t-G|--groups POSITIVE_NUMBER\t\tNumber of datasets required.\n"

t.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
my $s = 'Sam/is/there';
4+
foreach $x ( split(q{/},$s) ) {
5+
print $x,"\n";
6+
}

0 commit comments

Comments
 (0)