annotate run-multi_join_serial.pl @ 2:3a9cc859f4c1 draft

Uploaded
author mir-bioinf
date Wed, 15 Apr 2015 14:43:04 -0400
parents
children 0aa0ebcd307c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
1 #!/usr/bin/perl
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
2
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
3
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
4 use Getopt::Long;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
5 use Pod::Usage;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
6 use IO::File;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
7 use Data::Dumper;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
8
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
9 #require '/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/multi_join_shell.pl'; ##comment this line out when finished testing
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
10 #require '/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/addColumnsFromFile2ToFile1.pl';
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
11 #require '/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/GetOptWC.pm';
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
12
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
13 GetOptions(
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
14 "log=s" => \$log,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
15 "join_file=s" => \$data_in,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
16 "join_col=s" => \$coljoin,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
17 "time" => \$mTime,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
18 "q|quiet" => \$quiet,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
19 "iteration=i" => \$I,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
20 "totalfiles=i" => \$N,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
21 "with_header=s" => \$header_yes,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
22 "input_name=s" => \$in_name,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
23 "resultsfile=s" => \$out_file,
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
24 # "h|help" => \$help
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
25 ) or pod2usage( -exitval => 2, -verbose => 2 );
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
26
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
27
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
28 #check parameters and options
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
29 my $debug = scalar(@ARGV);
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
30
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
31 $coljoin--;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
32 #pod2usage(-msg => "To troubleshoot. ARGV should be @ARGV with $debug arguments in it.");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
33 pod2usage(-msg => "Forward probability should be in [0, 1]!", -exitval => 2, -verbose => 2) if ($probF < 0 || $probF > 1);
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
34
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
35 $N++;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
36
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
37 # #
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
38 use IO::Handle;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
39 open OUTPUT, '>>',$log or die "cant open this file for OUTPUT: $log. Computer says: $!\n";;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
40 open ERROR, '>>', $log or die "cant open this file for ERROR: $log. Computer says: $!\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
41 STDOUT->fdopen( \*OUTPUT, 'a' ) or die "cant open file $!\n"; #cms changing mode from 'w' to 'a' for multiple files in one run
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
42 STDERR->fdopen( \*ERROR, 'a' ) or die "cant open file $!\n"; #cms changing mode from 'w' to 'a' for multiple files in one run
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
43 # # #
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
44
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
45 my @options;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
46
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
47 my $fileno = $I + 1;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
48
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
49 ##Keeping track of the input files (one per iteration of this script) in an external file:
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
50 open $Filenames, '>>', "temp_filenames.txt" or die "cannot open the temporary file $!\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
51 print $Filenames "$data_in\t";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
52 print $Filenames "$coljoin\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
53
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
54 if (($I==$N-1)&&($N>=2)) {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
55 ## At the end of the last iteration
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
56 close($Filenames);
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
57
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
58 print "\nLAST ITERATION COMPLETED and at least two input files provided.\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
59
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
60 ##Read in file temp_filenames.txt
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
61 open(my $tmpfile, "<", "temp_filenames.txt") or die "Cannot open temp file: $!";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
62 my @fileArray = <$tmpfile>;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
63 #unshift @fileArray,$conditions; ##don't need to do this since conditions aren't used here
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
64 close($tmpfile) or die "what is that??!!! $!";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
65
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
66
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
67 ##Need to send output file name to shell script:
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
68 push @fileArray, $out_file; ##adds out_file to the end of fileArray
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
69 ##Also need to send yes/no for keeping header:
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
70 push @fileArray, $header_yes;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
71
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
72 ##Debug:
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
73 print "\nFirst file fileArray[0] is $fileArray[0].";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
74 print "\nOutput file is next-to-last val in fileArray, $fileArray[-2].";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
75 print "\nUse header? is last val in fileArray, $fileArray[-1].";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
76 print "\nSecond file now is fileArray[2], $fileArray[2].";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
77
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
78 ##@fileArray has one file per line,output,header_yes, so $N+1 rows
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
79 my $f=0;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
80 my @first;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
81 my @second;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
82 do {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
83
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
84 @first = split('\t',$fileArray[$f]); ##was filename\tJoinCol
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
85 print "\njoin column from first line is $first[1].";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
86
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
87 ##CMS DEALING WITH HEADER OR NOT:
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
88 if ($header_yes eq "no") {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
89 my $fh1;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
90 $fh1 = IO::File->new("<$first[0]");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
91 my $line1file1 = $fh1->getline();
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
92 $line1file1 =~ s/\s+$//;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
93 #print "\nline1file1 is $line1file1\n"; ##DEBUG
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
94 @cols = split "\t",$line1file1;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
95 my $numcols1 = @cols;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
96 my $head1;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
97 for (my $i=1; $i<$numcols1; $i++) {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
98 $head1.="C$i\t";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
99 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
100 $head1.="C$numcols1\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
101 open(my $fh_sub, '>', './header1.txt') or die "OOPIES: $!\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
102 print "\nheader first file $first[0] on next line:\n$head1"; ##DEBUG
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
103 print $fh_sub $head1;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
104 close $fh_sub;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
105 system("cat $first[0] >> ./header1.txt"); ##put header in front of file
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
106 ##now want to use ./header1.txt instead of what was in $first[0] earlier
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
107 $first[0] = "./header1.txt";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
108 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
109
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
110
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
111
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
112 @second = split('\t',$fileArray[$f+1]);
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
113
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
114 if ($header_yes eq "no") {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
115 my $fh2;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
116 $fh2 = IO::File->new("<$second[0]");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
117 my $line1file2 = $fh2->getline();
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
118 $line1file2 =~ s/\s+$//;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
119 @cols = split "\t",$line1file2;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
120 my $numcols2 = @cols;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
121 my $head2;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
122 for (my $i=1; $i<$numcols2; $i++) {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
123 $head2.="C$i\t";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
124 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
125 $head2.="C$numcols2\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
126 open(my $fh_sub, '>', './header2.txt') or die "OOPIES: $!\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
127 print "\nheader from $second[0] on next line:\n$head2"; ##DEBUG
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
128 print $fh_sub $head2;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
129 close $fh_sub;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
130 system("cat $second[0] >> ./header2.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
131 $second[0]="./header2.txt";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
132 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
133
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
134 print "\ncommand following:\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
135 print "/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/addColumnsFromFile2ToFile1.pl -File1=$first[0] -File2=$second[0] -cola1=$first[1] -cola2=$second[1] -colb1=$first[1] -colb2=$second[1]";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
136 system("/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/addColumnsFromFile2ToFile1.pl", "-File1=$first[0]", "-File2=$second[0]", "-cola1=$first[1]", "-cola2=$second[1]", "-colb1=$first[1]", "-colb2=$second[1]");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
137 print "\nOut from system call on next line:\n$!";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
138 $f+=2;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
139 system("mv file1_file2.txt joined.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
140 if ($header_yes eq "no") {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
141 system("rm ./header2.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
142 system("rm ./header1.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
143 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
144 } while ($f < 2); ##FIRST TWO ONLY!!!
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
145
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
146 for ($f; $f<$N; $f++) {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
147 my @current = split('\t',$fileArray[$f]); ##was filename\tJoinCol
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
148 print "\njoin column from first line is $first[1].";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
149
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
150 if ($header_yes eq "no") {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
151 my $fh;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
152 $fh = IO::File->new("<$current[0]");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
153 my $line1file = $fh->getline();
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
154 $line1file =~ s/\s+$//;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
155 @cols = split "\t",$line1file;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
156 my $numcols = @cols;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
157 my $head;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
158 for (my $i=1; $i<$numcols; $i++) {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
159 $head.="C$i\t";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
160 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
161 $head.="C$numcols\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
162 open(my $fh_sub, '>', './header.txt') or die "OOPIES: $!\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
163 print "\nheader from file $current[0] on next line:\n$head"; ##DEBUG
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
164 print $fh_sub $head;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
165 close $fh_sub;
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
166 system("cat $current[0] >> ./header.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
167 $current[0]="./header.txt";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
168 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
169
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
170 print "\ncommand following:\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
171 print "/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/addColumnsFromFile2ToFile1.pl -File1=joined.txt -File2=$current[0] -cola1=$first[1] -cola2=$current[1] -colb1=$first[1] -colb2=$current[1]";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
172 system("/opt/galaxy/galaxy-dist/tools/ngs_rna/Unreleased/addColumnsFromFile2ToFile1.pl","-File1=joined.txt", "-File2=$current[0]", "-cola1=$first[1]", "-cola2=$current[1]", "-colb1=$first[1]", "-colb2=$current[1]");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
173 print "\nOut from system call on next line:\n$!";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
174 system("mv file1_file2.txt joined.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
175 if ($header_yes eq "no") {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
176 system("rm ./header.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
177 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
178 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
179
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
180 system("mv joined.txt $fileArray[-2]");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
181
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
182 ##NOT SURE WHAT TO DO WITH THIS FOR THE MULTI-JOIN TOOL:
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
183 ##Now, make the EC files from the genes-results files (extract appropriate columns):
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
184 #my $condStr = multi_join_shell(@fileArray); ##RSEMgetTPMs needs to take care of carriage returns
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
185 ##NEED TO MODIFY RSEMTOEBSEQ_SHELL SO IT TAKES THE OUTPUT FILENAME AS WELL
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
186
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
187 system("rm temp_filenames.txt");
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
188
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
189 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
190 elsif ($N<2) {
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
191 print "\n<br /><i>Only one file; not running join.</i>\n";
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
192 }
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
193
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
194
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
195
3a9cc859f4c1 Uploaded
mir-bioinf
parents:
diff changeset
196 #print "LOG $mv\n";