Home | Trees | Indices | Help |
|
---|
|
1 ## Copyright 2002-2010 by PyMMLib Development Group (see AUTHORS file) 2 ## This code is part of the PyMMLib distribution and governed by 3 ## its license. Please see the LICENSE file that should have been 4 ## included as part of this package. 5 6 import Library 79 """Sequence information for a biopolymer chain. 10 """ 13 164318 return self.sequence_list[index]19 22 25 28 3133 """Return the one letter code representation of the sequence as a string. 34 """ 35 seqlist = list() 36 for threeletter in self.sequence_list: 37 mdesc = Library.library_get_monomer_desc(threeletter) 38 if mdesc is not None and mdesc.one_letter_code: 39 seqlist.append(mdesc.one_letter_code) 40 else: 41 seqlist.append("X") 42 return "".join(seqlist)
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 27 14:43:17 2011 | http://epydoc.sourceforge.net |