Hello all, I have a school assignment in Biology but I seem to be unable to begin... What I was given is something like the following : This is my input file:
>2BL2A H1-H2 MMDYLITQV GMVFAVLAMATATIFSGIGSAKGVGMTGEAAAALTT M--F #(aminoacids that interact) L--V H1-H6 MMDYLITQV SVVQGLNFLGASLPIAFTGLFSGIAQGKVAAAGIQILAKK M--V L--V I--V M--V
The output file i want to be sth like that
>2BL2A H1 MMDYLITQV H2 GMVFAVLAMATATIFSGIGSAKGVGMTGEAAAALTT D=1 I=1 L=1 M=2 Q=1 T=1 Y=1 V=1 The total aa num =9 A=9 E=1 F=2 G=6 I=2 K=1 L=2 M=3 S=2 T=5 V=3 The total aa + num =36 MF 1-->4 ## 1 is the number of how many times the aminoacids interact + and 4 is the number of how many times there is a possibility LV 1-->5 ## these two aminoacids(MF) to interact. M=2 from H1 and F= +2 from H2 2x2=4 ## L=1 from H1, V=3 from H2 1x3=3 ## L=2 form H2, V=1 from H1 2x1=2 the sum is 5 H1 MMDYLITQV H6 SVVQGLNFLGASLPIAFTGLFSGIAQGKVAAAGIQILAKK D=1 I=1 L=1 M=2 Q=1 T=1 Y=1 V=1 The total aa num =9 A=7 F=3 G=6 I=4 K=3 L=5 N=1 P=1 Q=3 S=3 T=1 V=3 The tot +al aa num =40 MV 2-->6 ##M=2 from H1 V=3 from H6 2x3=6 LV 1-->8 ## L=1 from H1 V=3 from H6 1x3=3 L=5 from H6 V=1 from H1 +5x1=5 3+5=8 possible interactions IV 1-->7
Any help please?

In reply to confused with interactions... by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.