Is nucleotide#
Validating whether a residue is a recognized DNA or RNA nucleotide.
The function molsysmt.element.group.nucleotide.is_nucleotide() checks residue names against standard nucleic acid nucleotide definitions.
Added in version 1.0.0.
API documentation
Follow this link for a detailed description of the input arguments, raised errors, and returned objects of this function: molsysmt.element.group.nucleotide.is_nucleotide().
Basic usage#
Let’s test nucleotide names:
import molsysmt as msm
print('Is DA a nucleotide?:', msm.element.group.nucleotide.is_nucleotide('DA'))
print('Is U a nucleotide?:', msm.element.group.nucleotide.is_nucleotide('U'))
print('Is ALA a nucleotide?:', msm.element.group.nucleotide.is_nucleotide('ALA'))
Is DA a nucleotide?: True
Is U a nucleotide?: True
Is ALA a nucleotide?: False
See also
Related Tools & References
Is group type: Check group types with
molsysmt.element.group.is_group_type().