Included libraries | Package variables | General documentation | Methods |
WebCvs | Raw content |
parse_results | Description | Code |
run_analysis | No description | Code |
parse_results | code | next | Top |
Title : parse_results |
parse_results | description | prev | next | Top |
my ($self) = @_; my $filehandle; my $resfile = $self->resultsfile(); my @fps; if (-e $resfile) { if (-z $resfile) { print STDERR "PrositePattern didn't find any hits\n"; return; } else { open (CPGOUT, "<$resfile") or $self->throw("Error opening ", $resfile, "\n "); #}
} } # Example output:
#sp|Q9BQN2|MT1P3_HUMAN ps_scan|v1.57 PS00203 13 31 . . . Name "METALLOTHIONEIN_VRT" ; LevelTag "(0)" ; Sequence "CtCAgsCkCkeCkCtsCkK" ; SequenceDescription "sp|Q9BQN2|MT1P3_HUMAN Putative metallothionein MT1P3 OS=Homo sapiens GN=MT1P3 PE=5 SV=1" ; KnownFalsePos 0
#sp|A0RXF8|HEM1_CENSY ps_scan|v1.57 PS00436 4 15 . . . Name "PEROXIDASE_2" ; LevelTag "(-1)" ; Sequence "GLinARVtFHNS" ; SequenceDescription "sp|A0RXF8|HEM1_CENSY Glutamyl-tRNA reductase OS=Cenarchaeum symbiosumGN=hemA PE=3 SV=1" ; KnownFalsePos 13
#sp|A0RXF8|HEM1_CENSY ps_scan|v1.57 PS00747 97 120 . . . Name "GLUTR" ; LevelTag "(0)"; Sequence "HLlrLTSGLDSmVVGEeQILGQVK" ; SequenceDescription "sp|A0RXF8|HEM1_CENSY Glutamyl-tRNA reductase OS=Cenarchaeum symbiosum GN=hemA PE=3 SV=1" ; KnownFalsePos 0
### etc.
my $id; while (<CPGOUT>) { chomp; print "$_\n"; my $score = 0; my $hstart = 1; my $hend = -1; my ($id, $hid, $start, $end ) = /\s*(\S+)\s+\S+\s+(\S+)\s+(\d+)\s+(\d+)\s+\S+\s+\S+\s+\S+/; #Calculate the length of the match using the values given for the sequence.
$hend = $end - $start + 1; print "matched\n"; my $evalue = 0.01; my $percentIdentity = 0; my $fp= $self->create_protein_feature($start, $end, $score, $id, $hstart, $hend, $hid, $self->analysis, $evalue, $percentIdentity); push @fps, $fp; } close (CPGOUT); $self->output(\@fps); } 1;
run_analysis | description | prev | next | Top |
my ($self) = @_; # run program}
print STDERR "running ".$self->program." against ".$self->database."\n"; print STDERR "FILENAME: ".$self->queryfile."\n"; my $cmd = $self->program .' '. $self->analysis->parameters .' '. $self->queryfile.' '. '> ' . $self->resultsfile; print STDERR "$cmd\n"; $self->throw ("Error running PrositePattern_wormbase ".$self->program." on ".$self->queryfile) unless ((system ($cmd)) == 0);
run_program | Top |
Title : run_program
Usage : $self->program
Function : makes the system call to program
Example :
Returns :
Args :
Throws :