| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
| WebCvs |
use Bio::DB::GenBank;
use Bio::Tools::Protparam;
my $gb = new Bio::DB::GenBank(-retrievaltype => 'tempfile' , -format => 'Fasta'); my @ids=qw(O14521 O43709 O43826); my $seqio = $gb->get_Stream_by_acc(\@ids ); while( my $seq = $seqio->next_seq ) { my $pp = Bio::Tools::Protparam->new(seq=>$seq->seq); print "ID : ", $seq->display_id,"\n", "Amino acid number : ",$pp->amino_acid_number(),"\n", "Number of negative amino acids : ",$pp->num_neg(),"\n", "Number of positive amino acids : ",$pp->num_pos(),"\n", "Molecular weight : ",$pp->molecular_weight(),"\n", "Theoretical pI : ",$pp->theoretical_pI(),"\n", "Total number of atoms : ", $pp->total_atoms(),"\n", "Number of carbon atoms : ",$pp->num_carbon(),"\n", "Number of hydrogen atoms : ",$pp->num_hydrogen(),"\n", "Number of nitrogen atoms : ",$pp->num_nitro(),"\n", "Number of oxygen atoms : ",$pp->num_oxygen(),"\n", "Number of sulphur atoms : ",$pp->num_sulphur(),"\n", "Half life : ", $pp->half_life(),"\n", "Instability Index : ", $pp->instability_index(),"\n", "Stability class : ", $pp->stability(),"\n", "Aliphatic_index : ",$pp->aliphatic_index(),"\n", "Gravy : ", $pp->gravy(),"\n", "Composition of A : ", $pp->AA_comp('A'),"\n", "Composition of R : ", $pp->AA_comp('R'),"\n", "Composition of N : ", $pp->AA_comp('N'),"\n", "Composition of D : ", $pp->AA_comp('D'),"\n", "Composition of C : ", $pp->AA_comp('C'),"\n", "Composition of Q : ", $pp->AA_comp('Q'),"\n", "Composition of E : ", $pp->AA_comp('E'),"\n", "Composition of G : ", $pp->AA_comp('G'),"\n", "Composition of H : ", $pp->AA_comp('H'),"\n", "Composition of I : ", $pp->AA_comp('I'),"\n", "Composition of L : ", $pp->AA_comp('L'),"\n", "Composition of K : ", $pp->AA_comp('K'),"\n", "Composition of M : ", $pp->AA_comp('M'),"\n", "Composition of F : ", $pp->AA_comp('F'),"\n", "Composition of P : ", $pp->AA_comp('P'),"\n", "Composition of S : ", $pp->AA_comp('S'),"\n", "Composition of T : ", $pp->AA_comp('T'),"\n", "Composition of W : ", $pp->AA_comp('W'),"\n", "Composition of Y : ", $pp->AA_comp('Y'),"\n", "Composition of V : ", $pp->AA_comp('V'),"\n", "Composition of B : ", $pp->AA_comp('B'),"\n", "Composition of Z : ", $pp->AA_comp('Z'),"\n", "Composition of X : ", $pp->AA_comp('X'),"\n"; }
| new | Description | Code |
| num_neg | Description | Code |
| num_pos | Description | Code |
| amino_acid_number | Description | Code |
| total_atoms | Description | Code |
| molecular_weight | Description | Code |
| theoretical_pI | Description | Code |
| num_carbon | Description | Code |
| num_hydrogen | Description | Code |
| num_nitro | Description | Code |
| num_oxygen | Description | Code |
| num_sulphur | Description | Code |
| half_life | Description | Code |
| instability_index | Description | Code |
| stability | Description | Code |
| aliphatic_index | Description | Code |
| gravy | Description | Code |
| AA_comp | Description | Code |
| new | code | next | Top |
Title : new |
| num_neg | code | prev | next | Top |
Title : num_neg |
| num_pos | code | prev | next | Top |
Title : num_pos |
| amino_acid_number | code | prev | next | Top |
Title : amino_acid_number |
| total_atoms | code | prev | next | Top |
Title : total_atoms |
| molecular_weight | code | prev | next | Top |
Title : molecular_weight |
| theoretical_pI | code | prev | next | Top |
Title : theoretical_pI |
| num_carbon | code | prev | next | Top |
Title : num_carbon |
| num_hydrogen | code | prev | next | Top |
Title : num_hydrogen |
| num_nitro | code | prev | next | Top |
Title : num_nitro |
| num_oxygen | code | prev | next | Top |
Title : num_oxygen |
| num_sulphur | code | prev | next | Top |
Title : num_sulphur |
| half_life | code | prev | next | Top |
Title : half_life |
| instability_index | code | prev | next | Top |
Title : instability_index |
| stability | code | prev | next | Top |
Title : stability |
| aliphatic_index | code | prev | next | Top |
Title : aliphatic_index |
| gravy | code | prev | next | Top |
Title : gravy |
| AA_comp | code | prev | next | Top |
Title : AA_comp |
| new | description | prev | next | Top |
my ($class,@args) = @_; @args=('-url'=>'http://web.expasy.org/cgi-bin/protparam/protparam','-form'=>'sequence',@args); my $self=$class->SUPER::new(@args); my ($url,$seq,$form)=$self->_rearrange([qw(URL SEQ FORM)],@args); my $browser = LWP::UserAgent->new; my $response; #send request to PROTPARAM @ Expasy}
$response = $browser->post($url, [ $form => $seq ], 'User-Agent' => 'Mozilla/4.76 [en] (Win2000; U)', ); #Check if successful
$self->throw("$url error: ".$response->status_line) unless $response->is_success; $self->throw("Bad content type at $url ".$response->content_type) unless $response->content_type eq 'text/html'; my $protParamOutput=$response->decoded_content; $self->{'output'}=$protParamOutput; return bless $self,$class;
| num_neg | description | prev | next | Top |
my $self=shift; ($self->{'negAA'})=$self->{'output'}=~/<B>Total number of negatively charged residues.*?<\/B>\s*(\d*)/; return $self->{'negAA'};}
| num_pos | description | prev | next | Top |
my $self=shift; ($self->{'posAA'})=$self->{'output'}=~/<B>Total number of positively charged residues.*?<\/B>\s*(\d*)/; return $self->{'posAA'};}
| amino_acid_number | description | prev | next | Top |
my $self=shift; ($self->{'numAA'})=$self->{'output'}=~/<B>Number of amino acids:<\/B> (\d+)/; return $self->{'numAA'};}
| total_atoms | description | prev | next | Top |
my $self=shift; $self->{'total_atoms'}=$self->{'output'}=~/<B>Total number of atoms:<\/B>\s*(\d*)/; return $self->{'total_atoms'};}
| molecular_weight | description | prev | next | Top |
my $self=shift; ($self->{'MolWt'})=$self->{'output'}=~/<B>Molecular weight:<\/B> (\d*\.{0,1}\d*)/; return $self->{'MolWt'};}
| theoretical_pI | description | prev | next | Top |
my $self=shift; ($self->{'TpI'})=$self->{'output'}=~/<B>Theoretical pI:<\/B> (-{0,1}\d*\.{0,1}\d*)/; return $self->{'TpI'};}
| num_carbon | description | prev | next | Top |
my $self=shift; ($self->{'car'}) = $self->{'output'}=~/Carbon\s+C\s+(\d+)/; return $self->{'car'};}
| num_hydrogen | description | prev | next | Top |
my $self=shift; ($self->{'hyd'}) = $self->{'output'}=~/Hydrogen\s+H\s+(\d+)/; return $self->{'hyd'}}
| num_nitro | description | prev | next | Top |
my $self=shift; ($self->{'nitro'}) = $self->{'output'}=~/Nitrogen\s+N\s+(\d+)/; return $self->{'nitro'};}
| num_oxygen | description | prev | next | Top |
my $self=shift; ($self->{'oxy'}) = $self->{'output'}=~/Oxygen\s+O\s+(\d+)/; return $self->{'oxy'};}
| num_sulphur | description | prev | next | Top |
my $self=shift; ($self->{'sul'}) = $self->{'output'}=~/Sulfur\s+S\s+(\d+)/; return $self->{'sul'};}
| half_life | description | prev | next | Top |
my $self=shift; ($self->{'half_life'}) = $self->{'output'}=~/The estimated half-life is.*?(-{0,1}\d*\.{0,1}\d*)\s*hours \(mammalian reticulocytes, in vitro\)/; return $self->{'half_life'};}
| instability_index | description | prev | next | Top |
my $self=shift; ($self->{'InstabilityIndex'})=$self->{'output'}=~/The instability index \(II\) is computed to be (-{0,1}\d*\.{0,1}\d*)/; return $self->{'InstabilityIndex'};}
| stability | description | prev | next | Top |
my $self=shift; ($self->{'Stability'})=$self->{'output'}=~/This classifies the protein as\s(\w+)\./; return $self->{'Stability'};}
| aliphatic_index | description | prev | next | Top |
my $self=shift; ($self->{'AliphaticIndex'})=$self->{'output'}=~/<B>Aliphatic index:<\/B>\s*(-{0,1}\d*\.{0,1}\d*)/; return $self->{'AliphaticIndex'};}
| gravy | description | prev | next | Top |
my $self=shift; ($self->{'GRAVY'})=$self->{'output'}=~/<B>Grand average of hydropathicity \(GRAVY\):<\/B>\s*(-{0,1}\d*\.{0,1}\d*)/; return $self->{'GRAVY'};}
| AA_comp | description | prev | next | Top |
my $self=shift; my $aa=shift; $aa=uc($aa); my $AA={qw(A Ala R Arg N Asn D Asp C Cys Q Gln E Glu G Gly H His I Ile L Leu K Lys M Met F Phe P Pro S Ser T Thr W Trp Y Tyr V Val B Asx Z Glx X Xaa)}; ($self->{$aa})= $self->{'output'}=~/$AA->{$aa} \($aa\)\s+\d+\s+(\d+\.\d+)%/; return $self->{$aa}; } 1;}
| AUTHOR | Top |