Changeset 254
- Timestamp:
- 09/04/09 09:46:41 (3 months ago)
- Files:
-
- bin/fasta_merge (modified) (2 diffs)
- bin/gff3_merge (modified) (2 diffs)
- lib/Process/IPRchunk.pm (modified) (3 diffs)
- lib/Process/IPRtiers.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bin/fasta_merge
r213 r254 9 9 Synopsis: 10 10 11 fasta_merge --datastore /maker/datastore -o genome.all 11 fasta_merge -d maker_datastore_index 12 fasta_merge -o genome.all -i <fasta1> <fasta2> ... 12 13 13 14 Descriptions: 14 15 15 16 This script will take a MAKER datastore, extract all the relevant 16 fasta files and create fasta files with -o base name for all the 17 relevant categories of sequence (i.e. transcript, protein, GeneMark 18 protien, etc.). 17 fasta files and create fasta files with relevant categories of 18 sequence (i.e. transcript, protein, GeneMark protien, etc.). 19 19 20 20 Options: 21 21 22 -d The location of the MAKER datastore 23 -o The base name for the output files.22 -d The location of the MAKER datastore. 23 -o Alternate base name for the output files. 24 24 -i A optional list of files to process along with or instead of the 25 25 datastore. … … 37 37 ); 38 38 39 if( (! $datastore && ! @files) || ! $outfile){39 if(! $datastore){ 40 40 print $usage; 41 41 exit(); 42 } 43 44 if (! $outfile){ 45 ($outfile) = $datastore =~ /([^\/]+)$/; 46 $outfile =~ s/_master_datastore_index.log//; 47 $outfile = "genome" if(! defined $outfile); 42 48 } 43 49 bin/gff3_merge
r205 r254 5 5 use File::Temp qw(tempfile); 6 6 7 my $usage = ""; 7 my $usage = " 8 9 Synopsis: 10 11 gff3_merge -d maker_datastore_index 12 gff3_merge -o genome.all.gff <gff3_file1> <gff3_file2> ... 13 14 Descriptions: 15 16 This script will take a MAKER datastore, extract all the relevant 17 GFF3 files and combined GFF3 file. The script can also combine 18 other correctly formated GFF3 files. 19 20 Options: 21 22 -d The location of the MAKER datastore. 23 -o Alternate base name for the output files. 24 25 "; 8 26 9 27 my $datastore; … … 23 41 print $usage; 24 42 exit(); 43 } 44 45 if (! $outfile){ 46 ($outfile) = $datastore =~ /([^\/]+)$/; 47 $outfile =~ s/_master_datastore_index.log// 48 $outfile .= ".gff"; 49 $outfile = "genome.all.gff" if(! defined $outfile); 25 50 } 26 51 lib/Process/IPRchunk.pm
r225 r254 63 63 64 64 #handle case of calling as function rather than method 65 if ( ref($self) ne "Process::IPRchunk") {65 if ($self ne "Process::IPRchunk" && ref($self) ne "Process::IPRchunk") { 66 66 $VARS = $self; 67 67 $self = new Process::IPRchunk(); … … 123 123 124 124 #handle case of calling as function rather than method 125 if ( ref($self) ne "Process::IPRchunk") {125 if ($self ne "Process::IPRchunk" && ref($self) ne "Process::IPRchunk") { 126 126 $tID = $VARS; 127 127 $VARS = $level; … … 199 199 200 200 #handle case of calling as function rather than method 201 if ( ref($self) ne "Process::IPRchunk") {201 if ($self ne "Process::IPRchunk" && ref($self) ne "Process::IPRchunk") { 202 202 $VARS = $level; 203 203 $level = $self; lib/Process/IPRtiers.pm
r228 r254 121 121 sub next_chunk { 122 122 my $self = shift; 123 my $level = $self->{LEVEL}{CURRENT};124 123 125 124 return undef if ($self->terminated || $self->failed); 126 125 127 $self->_next_level if($self->_level_finished); 126 #handle levels that have no chunks to run 127 while($self->_level_finished){ 128 $self->_next_level; 129 $self->_load_chunks; 130 } 131 132 #handle case where level needs to be initialized 128 133 $self->_load_chunks if(! $self->_level_started); 134 135 #get level after doing any necessary moves to next level 136 my $level = $self->{LEVEL}{CURRENT}; 129 137 130 138 if (my $chunk = shift @{$self->{LEVEL}{$level}{CHUNKS}}) { … … 167 175 168 176 return if ($self->terminated || $self->failed); 169 #return if ($self->_level_started && ! $self->_level_finished);177 return if ($self->_level_started && ! $self->_level_finished); 170 178 171 179 $self->_next_level if ($self->_level_finished);
