Skip to content

Commit

Permalink
fixup! Migrate tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed May 15, 2024
1 parent 9e8a4be commit 4b08f11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/tutorial/sequence/align_heuristic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The *k-mers* of a sequence are all subsequences with length *k*
import biotite.sequence.align as align

# We want to list all 3-mers
kmer_alph = align.KmerAlphabet(base_alpahbet=query.alphabet, k=3)
kmer_alph = align.KmerAlphabet(base_alphabet=query.alphabet, k=3)
k_mers = kmer_alph.decode_multiple(kmer_alph.create_kmers(query))
print(kmers)

Expand Down
4 changes: 2 additions & 2 deletions doc/tutorial/sequence/align_optimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,6 @@ using :func:`get_alignment()`, where the score is not provided.
print(fasta_file)
fasta_file.write(temp_file.name)

fasta_file = FastaFile.read(temp_file)
alignment = sequence.get_alignment(fasta_file)
fasta_file = fasta.FastaFile.read(temp_file.name)
alignment = fasta.get_alignment(fasta_file)
alignment.score = align.score(alignment, matrix=matrix)

0 comments on commit 4b08f11

Please sign in to comment.