Compositions from modX Bug

Issue #2 resolved
Anonymous created an issue

Could not create a Composition object from seMHHHHHHseMDEYSPKRHDIAQLKFLCETLYHDCLANLEESNHGWVNDPTSAINLQLNELIEHIATFALNYKIKYNEDNKLIEQIDEYLDDTFseMLFSSYGINseMQDLQKWRKSGNRLFRCFVNATKENPASLSC. A Composition object must be specified by a sequence, parsed sequence, formula or a dict'

I think having a modified residue in the [0] position interferes with it being recognised as a peptide sequence.

Comments (4)

  1. Lev Levitsky repo owner

    Thanks for the bug report, I've reproduced the problem. As a workaround, you can specify the sequence as a keyword argument, it seems to work this way:

    c = Composition(sequence=my_seq, aa_comp=my_aa_comp)
    

    I've found the reason of the problem and will hopefully fix it soon.

  2. Log in to comment