allpy
view lib/project.py @ 1:bbf3a797cc67
Several unnecessary imports removed
author | Boris Burkov <BurkovBA@gmail.com> |
---|---|
date | Mon, 31 May 2010 16:16:19 +0400 |
parents | 757f2a1f8732 |
children | 4ed6440f4f70 217d83a617c3 |
line source
1 #!/usr/bin/python
3 """
4 "I will not use abbrev."
5 "I will always finish what I st"
6 - Bart Simpson
8 """
15 """
16 Mandatory data:
17 * sequences -- list of Sequence objects. Sequences don't contain gaps
18 - see sequence.py module
19 * alignment -- dict
20 {<Sequence object>:[<Monomer object>,None,<Monomer object>]}
21 keys are the Sequence objects, values are the lists, which
22 contain monomers of those sequences or None for gaps in the
23 corresponding sequence of
24 alignment
26 """
28 """overloaded constructor
30 Project() -> new empty Project
31 Project(sequences, alignment) -> new Project with sequences and
32 alignment initialized from arguments
33 Project(fasta_file) -> new Project, read alignment and sequences
34 from fasta file
36 """
46 @staticmethod
48 """
49 >>> import project
50 >>> sequences,alignment=project.Project.get_from_fasta(open("test.fasta"))
51 """