metagenome-host-removal
Skill4 starsChanged 12 days agoMITView on GitHub
Remove host-derived reads from metagenomic samples by aligning to a host reference genome and extracting unmapped pairs.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- genome-variant-filteringSkill
- metagenome-assemblySkill
- metagenome-binningSkill
- metagenome-functional-profilingSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- ngs-read-preprocessingSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-cell-type-annotationSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- search-sraSkill
- stat-analyze-distributionSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
Files
SKILL.md
Skill: metagenome-host-removal
Use When
- The user has shotgun metagenomic reads contaminated with host DNA.
- The user wants to remove human, mouse, or other host reads before taxonomic or assembly analysis.
- The user needs to quantify the host contamination rate in a metagenomic sample.
Inputs
- Required:
- FASTQ file(s) — single-end or paired-end reads (
.fastq,.fq,.fastq.gz,.fq.gz). - Host reference genome index — pre-built Bowtie2 or BWA-MEM2 index.
- FASTQ file(s) — single-end or paired-end reads (
- Optional:
--aligner— Aligner to use (bowtie2orbwa-mem2, default:bowtie2).--threads N— Number of threads (default: 4).--outdir DIR— Output directory (default:host_removal_results).--sensitivity— Bowtie2 sensitivity preset (--very-sensitive,--sensitive; default:--very-sensitive).
Workflow
- Align reads to the host reference genome using Bowtie2 or BWA-MEM2.
- Extract unmapped reads (
samtools view -f 4for SE;-f 12for PE unmapped pairs). - Sort unmapped reads by name (
samtools sort -n). - Convert back to FASTQ (
samtools fastq). - Report: total reads, host reads removed, non-host reads retained, host contamination rate.
Output Contract
- Host-depleted FASTQ(s) — One or two FASTQ files with host reads removed (
<outdir>/<sample>_hostdepleted_R1.fastq.gz,_R2.fastq.gzfor PE). - Host contamination summary — Total reads, host reads, non-host reads, host contamination percentage.
Limits
- Bowtie2 or BWA-MEM2 must be installed and available on
$PATH. samtoolsmust be installed and available on$PATH.- Host genome index must be pre-built (use
bowtie2-buildorbwa-mem2 index). - Human reference: GRCh38 (hg38) is recommended for human host removal.
- For clinical samples, host removal rate should be >95%; lower rates suggest index mismatch or sample issues.
- This skill does not build the host index; the user must provide a pre-built index path.
- Common failure cases:
- Host genome index path incorrect or index files incomplete, causing aligner to abort.
- Using the wrong host reference genome (e.g., mouse index for a human-derived sample).
- Paired-end read extraction flags incorrect, producing orphan reads without mates.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

