Skip to content

Commit

Permalink
Fix documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibvafa committed Oct 29, 2024
1 parent a9f9c9e commit 719870f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CodonTransformer/CodonPrediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ def predict_dna_sequence(
or if num_sequences is less than 1 or used with deterministic mode.
Note:
This function uses ORGANISM2ID and INDEX2TOKEN dictionaries imported from
CodonTransformer.CodonUtils. ORGANISM2ID maps organism names to their
This function uses ORGANISM2ID, INDEX2TOKEN, and AMINO_ACID_TO_INDEX dictionaries
imported from CodonTransformer.CodonUtils. ORGANISM2ID maps organism names to their
corresponding IDs. INDEX2TOKEN maps model output indices (token IDs) to
respective codons.
respective codons. AMINO_ACID_TO_INDEX maps each amino acid and stop symbol to indices
of codon tokens that translate to it.
Example:
>>> import torch
Expand Down

0 comments on commit 719870f

Please sign in to comment.