Skip to content

Commit

Permalink
Fix error in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Jul 17, 2021
1 parent c3b0cca commit a8e5b48
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/geneticcode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,8 @@ Base3 = TCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAG
### Translation
###

#"""
# translate(codon::Union{DNACodon, RNACodon}, code::GeneticCode)
#
#Translates a 3-mer using the genetic code. The code defaults to `standard_genetic_code`.
#"""
#translate(codon::Union{DNACodon, RNACodon}, code = standard_genetic_code) = code[codon]

"""
translate(seq, code=standard_genetic_code, allow_ambiguous_codons=true, convert_start_codon=false)
translate(seq, code=standard_genetic_code, allow_ambiguous_codons=true, alternative_start=false)
Translate an `LongRNASeq` or a `LongDNASeq` to an `LongAASeq`.
Expand Down Expand Up @@ -420,7 +413,7 @@ function try_translate_ambiguous_codon(code::GeneticCode,
b = reinterpret(RNA, 0x1 << ((codon >> 2) & 0x3))
c = reinterpret(RNA, 0x1 << (codon & 0x3))
@inbounds if (iscompatible(x, a) & iscompatible(y, b) & iscompatible(z, c))
if found == nothing
if found === nothing
found = aa
elseif aa != found
return nothing
Expand Down

0 comments on commit a8e5b48

Please sign in to comment.