File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 65
65
66
66
# Run bowtie on each file
67
67
foreach my $input (@ARGV ) {
68
+ # # Check conformity of file names
69
+ my $volume ;
70
+ my $dirs ;
71
+ my $sfile ;
72
+ ($volume ,$dirs ,$sfile ) = File::Spec-> splitpath($input );
73
+
74
+ $sfile =~ / ^[^_]+_W[0-9]+.*_(Fwd|Rev)\. (fq|fastq)(\. gz|)$ / ||
75
+ die " Input file name $sfile is misshapen. Must match pattern ^[^_]+_W[0-9]+.*_(Fwd|Rev)\. (fq|fastq)(\. gz|)$\n " ;
76
+
68
77
my $cmdline = " $path /$0 --junc=$junc --outDir=$outDir --cores=$cores --trim5=$trim5 --trim3=$trim3 " ;
69
78
70
79
$cmdline .= " $btopt $input " ;
71
80
print $logFH " $cmdline " ;
72
81
system " $path /bin/run_bowtie.sh $input $junc " .$outDir ." /map $cores $trim5 $trim3 \" $btopt \" $path /bin" and
73
82
die " [2] Error during bowtie mapping of $input \n " ;
74
83
75
- my $volume ;
76
- my $dirs ;
77
- my $sfile ;
78
- ($volume ,$dirs ,$sfile ) = File::Spec-> splitpath($input );
79
84
$sfile =~ s /\. (fastq|fq).*// ;
80
85
my $ssize = -s " $outDir /map/$sfile .stats.txt" ;
81
86
if ($ssize > 0) {
You can’t perform that action at this time.
0 commit comments