Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def InvertedCodeDictionary():

	singleLetterCodes = [aminoAcidCodes[code] for code in allResidues]
	invertedCodeDict = dict(zip(singleLetterCodes, allResidues))

	return invertedCodeDict

src/p/e/PEATDB-2.3/PEATDB/Actions.py   PEATDB(Download)
    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)]