__init__(self,
alphabet=Gapped(IUPACAmbiguousDNA(), '-'))
(Constructor)
| source code
|
Initialize a new Alignment object.
Arguments: o alphabet - The alphabet to use for the sequence objects
that are created. This alphabet must be a gapped type.
e.g. >>> from Bio.Alphabet import IUPAC, Gapped >>>
align = Alignment(Gapped(IUPAC.unambiguous_dna, "-"))
>>> align.add_sequence("Alpha",
"ACTGCTAGCTAG") >>>
align.add_sequence("Beta", "ACT-CTAGCTAG")
>>> align.add_sequence("Gamma",
"ACTGCTAGDTAG") >>> print align
Gapped(IUPACUnambiguousDNA(), '-') alignment with 3 rows and 12 columns
ACTGCTAGCTAG Alpha ACT-CTAGCTAG Beta ACTGCTAGDTAG Gamma
- Overrides:
Align.Generic.Alignment.__init__
- (inherited documentation)
|