You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Stockholm/Clustal/PHYLIP output is significantly slower** than FASTA for large alignments due to BioPython's writer implementations. For the Pfam GT2 family (157K sequences):
58
+
59
+
- FASTA output: 11 seconds total
60
+
- Stockholm output: ~5+ minutes just for format conversion
61
+
62
+
**Recommendation:** Always use FASTA output unless you specifically need the metadata/markup of other formats.
63
+
64
+
## [1.0.4] - 2026-04-05
65
+
66
+
### Added
67
+
-**High-level Python API**: New `clean_alignment()` function for easy programmatic use
Processing time scales linearly with alignment size (R² = 0.998). From tiny families (42 sequences) to million-sequence datasets with negligible overhead.
# Auto-detects Stockholm input, outputs FASTA (fast - recommended!)
132
+
gapclean -i PF00535.sto -o cleaned.fa -t 70
133
+
134
+
# Stockholm output (slower - only if you need the metadata)
135
+
gapclean -i pfam_seed.sto -o cleaned.sto --output-format stockholm -t 75
136
+
137
+
# Explicit format specification
138
+
gapclean -i pfam_seed.sto -o cleaned.txt -t 75 --output-format fasta
139
+
```
140
+
141
+
### Format Conversion
142
+
```bash
143
+
# Convert Clustal to FASTA while cleaning (recommended - fast)
144
+
gapclean -i alignment.aln -o output.fa -t 50
145
+
146
+
# Convert FASTA to Stockholm (slower for large alignments)
147
+
gapclean -i input.fa -o output.sto --output-format stockholm -t 75
101
148
```
102
149
150
+
**Performance Note:** Stockholm/Clustal/PHYLIP output is much slower than FASTA for large alignments (100K+ sequences) due to BioPython's format writers. GapClean defaults to FASTA output for optimal performance. Use `--output-format` only if you specifically need non-FASTA formats.
0 commit comments