allpy
view lib/project.py @ 73:217d83a617c3
In project.py method "get_from_fasta" renamed "from_fasta"
author | Boris Burkov <BurkovBA@gmail.com> |
---|---|
date | Wed, 22 Sep 2010 18:31:56 +0400 |
parents | bbf3a797cc67 |
children | 6cd288019400 |
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.from_fasta(open("test.fasta"))
51 """