Skip to content

Flounder

Tools to score a DNA sequence using the Flounder method.

codon_score

codon_score(sequence)

Return the codon-based Flounder Score for the given sequence.

Parameters:

Name Type Description Default

sequence

str

The sequence to score.

required

Returns:

Type Description
int

The score for the sequence.

This scoring system translates the codons in the sequence into AA codes, and then builds a score based on them. Translation of the sequence always starts with the first base, and keeps going as long as there are codons left. Stop codons are scored as 0 and worked past.

codon_scores

codon_scores(sequence)

Return a list of codon-based Flounder Scores for the given sequence.

Parameters:

Name Type Description Default

sequence

str

The sequence to score.

required

Returns:

Type Description
list[tuple[str, int]]

A list of tuples, the codon and its score.

This scoring system translates the codons in the sequence into AA codes, and then builds a score based on them. Translation of the sequence always starts with the first base, and keeps going as long as there are codons left. Stop codons are scored as 0 and worked past.

score

score(sequence)

Return the flounder score for the given sequence.

Parameters:

Name Type Description Default

sequence

str

The sequence to score.

required

Returns:

Type Description
int

The flounder score.

score_to_the_max

score_to_the_max(sequence)

Return the to-the-max Flounder Score for the given sequence.

Parameters:

Name Type Description Default

sequence

str

The sequence to score.

required

Returns:

Type Description
int

The flounder score for the sequence.

The to-the-max flounder score is like the flounder score, but other than scoring the individual base, it scores based on the base and also every IUAPC code that applies.

scores

scores(sequence)

Return a list of individual bases with their scores from the sequence.

Parameters:

Name Type Description Default

sequence

str

The sequence to score.

required

Returns:

Type Description
list[tuple[str, int]]

A list of tuples, the base in the first position, the score in the second.

scores_to_the_max

scores_to_the_max(sequence)

Return a list of individual base to-the-max scores.

Parameters:

Name Type Description Default

sequence

str

The sequence to score.

required

Returns:

Type Description
list[tuple[str, int]]

A list of tuples, the base in the first position, the score in the second.