freqsap.variation ================= .. py:module:: freqsap.variation .. autoapi-nested-parse:: Module for representing genetic variations. Classes ------- .. autoapisummary:: freqsap.variation.Variation Module Contents --------------- .. py:class:: Variation Represents a genetic variation. .. attribute:: ref The reference SNP identifier (e.g., 'rs123456'). :type: str .. attribute:: position The position of the variation in the protein sequence. :type: int .. py:attribute:: ref :type: str .. py:attribute:: position :type: int .. py:method:: valid() -> bool Validate the variation. Checks if the reference ID starts with 'rs' and position is positive. :returns: True if valid, False otherwise. :rtype: bool .. py:method:: __str__() -> str Return the string representation of the variation. :returns: The reference SNP identifier. :rtype: str