get_moltype#

get_moltype(name, new_type: bool = False)#

returns the moltype with the matching name attribute

Parameters:
name

the name of the moltype

new_type

if True, returns new type Moltype (cogent3.core.new_moltype.MolType). The default will be changed to True in 2024.12. Support for the old style will be removed as of 2025.6.