Changeset 269
- Timestamp:
- 09/24/09 11:42:35 (2 months ago)
- Files:
-
- lib/GI.pm (modified) (2 diffs)
- lib/ds_utility.pm (modified) (1 diff)
- lib/runlog.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lib/GI.pm
r268 r269 606 606 #fix non standard peptides 607 607 if (defined $alt) { 608 $$seq_ref =~ s/ \*//g;608 $$seq_ref =~ s/[\*\-]//g; 609 609 $$seq_ref =~ s/[^abcdefghiklmnpqrstvwyzxABCDEFGHIKLMNPQRSTVWYZX\-\n]/$alt/g; 610 } 611 #fix nucleotide sequences 612 elsif($key !~ /protein/){ 613 #most programs use N for masking but for some reason the NCBI decided to 614 #use X to mask their sequence, which causes many many programs to fail 615 $$seq_ref =~ s/\-//g; 616 $$seq_ref =~ s/X/N/g; 617 die "ERROR: The nucleotide sequence file \'$file\'\n". 618 "appears to contain protein sequence or unrecognized characters.\n". 619 "Please check/fix the file before continuing.\n". 620 "Invalid Character: $1\n\n" 621 if($$seq_ref =~ /([^acgturykmswbdhvnxACGTURYKMSWBDHVNX\-\n])/); 610 622 } 611 623 … … 2237 2249 $CTL_OPT{'single_length'} = 250; 2238 2250 $CTL_OPT{'min_protein'} = 0; 2239 $CTL_OPT{'AED_thresho d'} = 1;2251 $CTL_OPT{'AED_threshold'} = 1; 2240 2252 $CTL_OPT{'keep_preds'} = 0; 2241 2253 $CTL_OPT{'map_forward'} = 0; lib/ds_utility.pm
r209 r269 127 127 128 128 #remove deep directory data so log is relative 129 my $cwd = Cwd:: cwd();129 my $cwd = Cwd::getcwd(); 130 130 my $entry = join("\t", @F); 131 132 #while loop is used to solve weird incorrect cwd 133 #that happens randomly on the cluster 134 while($cwd ne Cwd::getcwd()){ 135 $cwd = Cwd::getcwd(); 136 } 131 137 132 138 if($entry =~ /\tFINISHED|\tSTARTED|\tDIED|\tSKIPPED|\tRETRY/){ lib/runlog.pm
r268 r269 197 197 if($continue_flag >= 0 || $continue_flag == -1){ 198 198 #CHECK CONTROL FILE OPTIONS FOR CHANGES 199 my $cwd = Cwd::cwd(); 200 while (my $key = each %{$logged_vals{CTL_OPTIONS}}) { 199 my $cwd = Cwd::getcwd(); 200 201 #while loop is used to solve weird incorrect cwd 202 #that happens randomly on the cluster 203 while($cwd ne Cwd::getcwd()){ 204 $cwd = Cwd::getcwd(); 205 } 206 207 foreach my $key (@ctl_to_log) { 201 208 #these are only sometimes important 202 209 if($key =~ /^est_pass$|^altest_pass$|^protein_pass$|^rm_pass$/ || … … 204 211 ){ 205 212 next unless($CTL_OPTIONS{genome_gff}); 206 my $old = $logged_vals{CTL_OPTIONS}{genome_gff}; 213 my $old = (exists $logged_vals{CTL_OPTIONS}{genome_gff}) ? 214 $logged_vals{CTL_OPTIONS}{genome_gff} : ''; 207 215 $old =~ s/^$cwd\/*//; 208 216 my $new = $CTL_OPTIONS{genome_gff}; 209 217 $new =~ s/^$cwd\/*//; 218 219 #temp lamprey 220 my $chpc = "scratch/serial-pio/u0045039/lamprey2/"; 221 $old =~ s/^$chpc\/*//; 222 $new =~ s/^$chpc\/*//; 223 $chpc = "scratch/serial/u0045039/lamprey2/"; 224 $old =~ s/^$chpc\/*//; 225 $new =~ s/^$chpc\/*//; 226 210 227 211 228 #only continue if change not already happening … … 365 382 "did not finish on the last run and must be erased\n"; 366 383 push(@files, $key); 384 385 #this next step will get both temp directories and files that 386 #have the incorrect location in the log but are in theVoid 367 387 $key =~ /([^\/]+)$/; 368 388 my $rm_f_name = $1; 389 390 if(! -e $key && -e "$the_void/$rm_f_name"){ 391 push(@files, $rm_f_name); 392 } 393 369 394 $rm_f_name =~ s/\.fasta$//; 370 395 my @d = <$the_void/*$rm_f_name*>; … … 589 614 590 615 #log control file options 591 my $cwd = Cwd::cwd(); 616 my $cwd = Cwd::getcwd(); 617 618 #while loop is used to solve weird incorrect cwd 619 #that happens randomly on the cluster 620 while($cwd ne Cwd::getcwd()){ 621 $cwd = Cwd::getcwd(); 622 } 623 592 624 foreach my $key (@ctl_to_log) { 593 625 my $ctl_val = ''; … … 618 650 619 651 my $log_file = $self->{file_name}; 620 my $cwd = Cwd::cwd(); 652 my $cwd = Cwd::getcwd(); 653 654 #while loop is used to solve weird incorrect cwd 655 #that happens randomly on the cluster 656 while($cwd ne Cwd::getcwd()){ 657 $cwd = Cwd::getcwd(); 658 } 621 659 622 660 #this line hides unnecessarilly deep directory details 623 661 #this is important for maker webserver security 662 #also important when moving work directory around 624 663 if(defined $key && defined $type){ 625 664 $key =~ s/^$cwd\/*// if($type =~ /^STARTED$|^FINISHED$/);
