Bio Alignment Filtering
Filter alignments by flags, mapping quality, and regions using samtools view and pysam. Use when extracting specific reads, removing low-quality alignments, or subsetting to target regions.
Install
/plugin marketplace add hackernoon/cuttlefish-agent-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add hackernoon/cuttlefish-agent-skills --skill bio-alignment-filteringgit clone --depth 1 https://github.com/hackernoon/cuttlefish-agent-skills.git /tmp/cuttlefish-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cuttlefish-agent-skills/plugins/data-science/skills/bio-alignment-filtering ~/.claude/skills/bio-alignment-filteringPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
## Version Compatibility Reference examples tested with: pysam 0.22+, samtools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - CLI: `<tool> --version` then `<tool> --help` to confirm flags If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Alignment Filtering **"Filter my BAM file to keep only high-quality reads"** -> Select reads by FLAG bits, mapping quality, and genomic regions using samtools view or pysam. - CLI: `samtools view` with `-F`/`-f`/`-q`/`-L` flags (samtools) - Python: `pysam.AlignmentFile` iteration with attribute filters (pysam) Filter alignments by flags, quality, and regions using samtools and pysam. ## Filter Flags | Option | Description | |--------|-------------| | `-f FLAG` | Include reads with ALL bits set | | `-F FLAG` | Exclude reads with ANY bits set | | `-G FLAG` | Exclude reads with ALL bits set | | `-q MAPQ` | Minimum mapping quality | | `-L BED` | Include reads overlapping regions | ## Common FLAG Values | Flag | Hex | Meaning | |------|-----|---------| | 1 | 0x1 | Paired | | 2 | 0x2 | Proper pair | | 4 | 0x4 | Unmapped | | 8 | 0x8 | Mate unmapped | | 16 | 0x10 | Reverse strand | | 32 | 0x20 | Mate reverse strand | | 64 | 0x40 | First in pair (read1) | | 128 | 0x80 | Second in pair (read2) |
Details
- Skill name
bio-alignment-filtering- Repository
- hackernoon/cuttlefish-agent-skills
- Path
plugins/data-science/skills/bio-alignment-filtering/SKILL.md- License
- MIT
- Repo updated
- 4 November 2026
FAQ
What does the Bio Alignment Filtering skill do?
Filter alignments by flags, mapping quality, and regions using samtools view and pysam. Use when extracting specific reads, removing low-quality alignments, or subsetting to target regions.
How do I install the Bio Alignment Filtering skill?
Claude Code plugin: /plugin marketplace add hackernoon/cuttlefish-agent-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bio Alignment Filtering popular?
It lives in hackernoon/cuttlefish-agent-skills, which has 9 GitHub stars and 3 forks.
Related skills
AI Traffic Tracking
9hackernoon/cuttlefish-agent-skills
Compatibility pointer for AI assistant referrals and generative search visibility; maintained in Open Analytics.
Analytics Tracking
9hackernoon/cuttlefish-agent-skills
Compatibility pointer for GA4 event, key-event and User-ID tracking; maintained in Open Analytics.
Bio Admet Prediction
9hackernoon/cuttlefish-agent-skills
Predicts ADMET properties using ADMETlab 3.0 (119 platform features, including 77 prediction models with modeled-endpoint uncertainty), ADMET-AI, DeepChem MolNet, and chemprop D-MPNN with explicit handling of OECD QSAR principles, applicability domain assessment, calibration, hERG/CYP/AMES endpoints, and PAINS / Lipinski / Ro5 / Veber / BBB druglikeness filters. Use when filtering compounds for drug-likeness, prioritizing leads by predicted safety, or building an in-house ADMET QSAR model.
Bio Alignment Msa Parsing
9hackernoon/cuttlefish-agent-skills
Parse and analyze multiple sequence alignments using Biopython. Extract sequences, identify conserved regions, analyze gaps, work with annotations, and manipulate alignment data for downstream analysis. Use when parsing or manipulating multiple sequence alignments.
Bio Alignment Amplicon Clipping
9hackernoon/cuttlefish-agent-skills
Trim PCR primers from aligned reads in amplicon-panel BAMs using samtools ampliconclip. Use when processing SARS-CoV-2 ARTIC, hereditary cancer panels, ctDNA hot-spot panels, or any amplicon assay where primer-derived bases would falsely confirm reference at primer footprints.
Bio Alignment Multiple
9hackernoon/cuttlefish-agent-skills
Perform multiple sequence alignment using MAFFT, MUSCLE5, ClustalOmega, or T-Coffee. Guides tool and algorithm selection based on dataset size, sequence divergence, and downstream application. Use when aligning three or more homologous sequences for phylogenetics, conservation analysis, or evolutionary studies.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.