bio-filter-sequences
Installation
SKILL.md
Version Compatibility
Reference examples tested with: BioPython 1.83+, samtools 1.19+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Filter Sequences
"Filter sequences by length, quality, or content" → Apply boolean criteria to a stream of sequence records and write survivors to output.
- Python: generator expression with
SeqIO.parse()+SeqIO.write()(BioPython) - CLI:
seqkit seq -m 200(SeqKit) orawkon FASTA
Filter and select sequences based on various criteria using Biopython.