Sequence analysis guide
Parse FASTA and GenBank with Biotite, read GC content, run pairwise and multiple alignments over a substitution matrix, and write a consensus FASTA.
Sequence analysis lets you parse FASTA and GenBank files, run pairwise and multiple alignments, and summarize consensus and conservation. Your substitution matrix, gap penalty, and how you normalize bases beforehand are what most affect the alignments you get.
Where this code runs
You cannot open a shell on the platform yourself. The scripts on this page are plain Biotite Python and shell: ask Ivy in chat to run them in the chat's code workspace, which ships Biotite, or run them on your own machine.
Parse common formats
Pairwise alignment
Multiple sequence alignment summary
Use Biotite to generate consensus and per-position conservation:
Basic quality checks
- Validate file encodings before ingestion; prefer UTF-8.
- For large batches, stream FASTA/GenBank files to avoid loading everything into memory.
- Normalize ambiguous bases and upper/lowercase before running alignments.
Export results
Was this page helpful?