freqsap.variation

Module for representing genetic variations.

Classes

Variation

Represents a genetic variation.

Module Contents

class freqsap.variation.Variation[source]

Represents a genetic variation.

ref[source]

The reference SNP identifier (e.g., ‘rs123456’).

Type:

str

position[source]

The position of the variation in the protein sequence.

Type:

int

ref: str[source]
position: int[source]
valid() bool[source]

Validate the variation.

Checks if the reference ID starts with ‘rs’ and position is positive.

Returns:

True if valid, False otherwise.

Return type:

bool

__str__() str[source]

Return the string representation of the variation.

Returns:

The reference SNP identifier.

Return type:

str