TabularMSA.
shape
¶Number of sequences (rows) and positions (columns).
State: Experimental as of 0.4.1.
Notes
This property is not writeable.
Examples
>>> from skbio import DNA, TabularMSA
Create a TabularMSA
object with 2 sequences and 3 positions:
>>> msa = TabularMSA([DNA('ACG'), DNA('AC-')])
>>> msa.shape
Shape(sequence=2, position=3)
>>> msa.shape == (2, 3)
True
Dimensions can be accessed by index or by name:
>>> msa.shape[0]
2
>>> msa.shape.sequence
2
>>> msa.shape[1]
3
>>> msa.shape.position
3