How bigest-icube/clustalw works
ClustalW is a command-line and graphical application for multiple sequence alignment. Its principal workflow reads sequence data, performs pairwise comparisons and guide-tree construction, progressively aligns sequences or profiles, and writes an alignment. Sequence weighting, adaptive substitution matrices, and position-specific gap penalties support alignment; the repository also includes tree analysis, motif handling, and secondary-structure prediction. The excerpts establish several calls, but do not expose the full application entry points or all subsystem wiring, so uncertain relationships are omitted or marked unverified.
Main entry points: malign.c Progressive alignment · trees.c Guide-tree construction · xmenu.c Graphical interface · matrices.h Substitution matrices
Components 22
Input and alignment
- Sequence reader
src/readseq.c - Alignment data model
src/clustalw.h - Pairwise alignment
src/pairalign.c - Progressive alignment
src/malign.c - Profile alignment
src/prfalign.c - Motif support
src/motifs.c
Scoring and trees
- Sequence weighting
src/seqweight.c - Adaptive gap penalties
src/calcgapcoeff.c - Substitution matrices
src/matrices.h - Matrix reader
src/readmat.c - Guide-tree construction
src/trees.c - Tree reader
src/readtree.c - BioNJ trees
src/bionj.c
Interfaces and output
- Command interface
src/interface.c - Text menus
src/amenu.c - Graphical interface
src/xmenu.c - Alignment display
src/xdisplay.c - Alignment writer
src/writeseq.c
Prediction tools
- DSC prediction
src/dsc.c - Jnet prediction
src/jnet.c - Jnet networks
src/net1.c
Other components
- User
Connections 22
- User → Command interface: runs alignment
- User → Text menus: uses menus
- User → Graphical interface: uses GUI
- Command interface → Sequence reader: reads sequences
- Text menus → Progressive alignment: starts alignment
src/amenu.c - Sequence reader → Alignment data model: populates data
src/readseq.c - Progressive alignment → Guide-tree construction: builds guide tree
src/malign.c - Progressive alignment → Pairwise alignment: uses comparisons
- Progressive alignment → Profile alignment: aligns profiles
- Progressive alignment → Sequence weighting: uses weights
- Progressive alignment → Adaptive gap penalties: uses gap scores
- Progressive alignment → Motif support: uses motifs
src/malign.c - Pairwise alignment → Substitution matrices: scores residues
- Matrix reader → Substitution matrices: loads matrices
src/readmat.c - Guide-tree construction → Substitution matrices: loads user matrix
src/trees.c - Guide-tree construction → Tree reader: uses input tree
- Guide-tree construction → BioNJ trees: offers BioNJ
- Progressive alignment → Alignment writer: writes alignment
- Graphical interface → Alignment display: shows alignment
- Graphical interface → Alignment writer: saves alignment
src/xmenu.c - DSC prediction → Alignment data model: uses sequence data
src/dsc.c - Jnet prediction → Jnet networks: uses networks
src/jnet.c