PEATDB/Actions.py
def string2AAseq(self, seq, chain='A'):
        """Convert string to amino acid aaseq as stored in PEAT"""
        from PEATSA.Core import Utilities
        codemap  = Utilities.InvertedCodeDictionary()
        codes = [codemap[el] for el in list(seq)]
        indexes = [Utilities.CreateResidueCode(chain=chain, number=index) for index in range(1, len(seq) + 1)]        
        return zip(indexes, codes)
Convert string to amino acid aaseq as stored in PEAT
Convert string to amino acid aaseq as stored in PEAT
Convert string to amino acid aaseq as stored in PEAT
def string2AAseq(self, seq, chain='A'):
        from PEATSA.Core import Utilities
        codemap  = Utilities.InvertedCodeDictionary()
        codes = [codemap[el] for el in list(seq)]
        indexes = [Utilities.CreateResidueCode(chain=chain, number=index) for index in range(1, len(seq) + 1)]        
        return zip(indexes, codes)
def string2AAseq ( self , seq , chain = 'A' ) : from PEATSA . Core import Utilities codemap = Utilities . InvertedCodeDictionary ( ) codes = [ codemap [ el ] for el in list ( seq ) ] indexes = [ Utilities . CreateResidueCode ( chain = chain , number = index ) for index in range ( 1 , len ( seq ) + 1 ) ] return zip ( indexes , codes )
Convert string to amino acid aaseq as stored in PEAT
Convert string to amino acid aaseq as stored in PEAT
"""Convert string to amino acid aaseq as stored in PEAT"""
self
seq
chain