InSilicoSpectro-Databanks

 view release on metacpan or  search on metacpan

lib/InSilicoSpectro/Databanks/DBEntry.pm  view on Meta::CPAN

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
=head3 $dbe->sequence([val])
 
Get/Set AC, ID, ...
 
=head3 $dbe->seqType(["AA"|"DNA"])
 
Get or set the sequence type
 
=head3 $dbe->annotatedModRes(string|[[pos1, mod1], [pos2, mod2]]);
 
get or set annotated PTM from a string (e.g. (1|ACET_nterm)(2|ACET_nterm)(185|PHOS)) or an array. All previously set TPM are removed
 
=head3 $dbe->add_annotatedModRes(pos, modkey)
 
add an annotated PTM
 
=head3 $dbe->clear_annotatedModRes()
 
remove all annotated modres
 
=head3 $dbe->variants(string|[[pos1, seq1a, seq1b], [pos2, seq2a, seq2b]]);

t/DBEntry.t  view on Meta::CPAN

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
my $dir=dirname $0;
 
chdir $dir;
 
 
my $dbe=InSilicoSpectro::Databanks::DBEntry->new;
ok($dbe, "InSilicoSpectro::Databanks::DBEntry object instanciated");
 
my $str=<<'EOT';
>P68250_CHAIN0 \ID=1433B_BOVIN \ACOR=P68250 \DE=14-3-3 protein beta/alpha (Protein kinase C inhibitor protein 1) (KCIP-1) \NCBITAXID=9913  \MODRES=(1|ACET_nterm)(2|ACET_nterm)(185|PHOS)   \VARIANT= \LENGTH=245
TMDKSELVQK AKLAEQAERY DDMAAAMKAV TEQGHELSNE ERNLLSVAYK NVVGARRSSW
RVISSIEQKT ERNEKKQQMG KEYREKIEAE LQDICNDVLQ LLDKYLIPNA TQPESKVFYL
KMKGDYFRYL SEVASGDNKQ TTVSNSQQAY QEAFEISKKE MQPTHPIRLG LALNFSVFYY
EILNSPEKAC SLAKTAFDEA IAELDTLNEE SYKDSTLIMQ LLRDNLTLWT SENQGDEGDA
GEGEN
EOT
 
$dbe->AC('POUET');
 
$dbe->readFasta($str);

t/insilicodef-test.xml  view on Meta::CPAN

1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
    <oneInternFragType name="immo">
      <residues>HFILYPV</residues>
      <delta monoisotopic="-26.9871" average="-26.9871"/>
    </oneInternFragType>
  </internalFragType>
 
 </fragTypeDefSet>
</fragTypeDescriptions>
 
<modRes>
  <oneModRes type="ptm" name="ACET_nterm">
    <description>Acetylation_nterm</description>
    <site>
      <residue>^NKHFW</residue>
      <nterm/>
    </site>
    <residues aa="^NKHFW" nterm="yes"/>
    <delta monoisotopic="42.0106" average="42.0373"/>
    <sprotFT><![CDATA[(N-acetylalanine|N-acetylaspartate|N-acetylcysteine|N-acetylglutamate|N-acetylglycine|N-acetylmethionine|N-acetylproline|N-acetylserine|N-acetylthreonine|N-acetyltyrosine|N-acetylvaline).*]]></sprotFT>
  </oneModRes>
  <oneModRes type="ptm" name="ACET_core">
    <description>Acetylation_core</description>
    <site>
      <residue>KR</residue>
    </site>
    <residues aa="KR"/>
    <delta monoisotopic="42.0106" average="42.0373"/>
    <sprotFT><![CDATA[(N2-acetylarginine|N6-acetyllysine).*]]></sprotFT>
  </oneModRes>
  <oneModRes type="ptm" name="PHOS">
    <description>Phosphorylation</description>



( run in 0.625 second using v1.01-cache-2.11-cpan-87723dcf8b7 )