Skip to content

Commit

Permalink
Comment codonalign
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlemoine committed Oct 11, 2018
1 parent b43fd95 commit eabecb5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions align/align.go
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,17 @@ func (a *align) Translate(phase int) (transAl *align, err error) {
return transAl, err
}

// Aligns given nt sequences (ntseqs) using a corresponding aa alignment (a).
//
// If a is not amino acid, then returns an error.
// If ntseqs is not nucleotides then returns an error.
//
// Warning: It does not check that the amino acid sequence is a good
// translation of the nucleotide sequence, but just adds gaps to the
// nucleotide sequence where needed.
//
// Once gaps are added, if the nucleotide alignment length does not match
// the protein alignment length * 3, returns an error.
func (a *align) CodonAlign(ntseqs SeqBag) (rtAl *align, err error) {
var buffer bytes.Buffer

Expand Down

0 comments on commit eabecb5

Please sign in to comment.