[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75K83CWZCMA1CW311FQT7G7":3,"skill-same:01M75K83CWZCMA1CW311FQT7G7":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75K83CWZCMA1CW311FQT7G7","bowtie2-alignment",null,"Align short reads to a reference with Bowtie2 — the standard aligner for ChIP-seq, ATAC-seq, and other short-fragment applications where sensitivity for short indels matters less than speed.","pradyumnasagar\u002Fopen-research-skills","pradyumnasagar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10559871?v=4","01M75K78MYCCVKRTYGT8KKC380","Pradyumna Jayaram","01M75K78NTNE41F2PE1XBVFHAS",8,"MIT","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbioinformatics-sequence\u002Fbowtie2-alignment\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\n\nname: bowtie2-alignment\ndescription: \"Align short reads to a reference with Bowtie2 — the standard aligner for ChIP-seq, ATAC-seq, and other short-fragment applications where sensitivity for short indels matters less than speed.\"\nlicense: MIT\n---\n\u003C!-- metadata:\n  category: bioinformatics-sequence\n  oversight: low\n  version: 1.0.0\n  author: Pradyumna Jayaram\n  tags: [bioinformatics-sequence, research]\n  difficulty: intermediate\n-->\n\n# Bowtie2 Alignment for ChIP-seq \u002F ATAC-seq\n\n## Hard rules\n\n1. **No fabricated citations.** Every cited work must resolve to a verifiable\n2. **No claim without provenance.** Every quantitative or factual claim\n3. **No silent failure.** Every script invocation, API call, or tool use must declare its exit status and what to do on non-zero. A skill that silently swallows errors is a violation.\n\n## When to use\n\n- ChIP-seq \u002F CUT&RUN \u002F CUT&Tag alignment.\n- ATAC-seq alignment (with `--local` for Tn5 soft-clipping).\n- Whole-genome bisulfite-seq (with `--no-mixed --no-discordant`).\n- Any read length 50-150 bp where speed matters.\n\n## When NOT to use\n\n- Long reads → use `minimap2`.\n- Variant calling on whole-genome data → use `bwa-mem` or `bwa-mem2`.\n- RNA-seq splice alignment → use `STAR` or `HISAT2`.\n\n## Prerequisites\n\n- `bowtie2` ≥ 2.5\n- `samtools` ≥ 1.19\n- Reference FASTA + Bowtie2 index (`bowtie2-build`)\n\n## Code patterns\n\n### Index the reference\n\n```bash\nbowtie2-build --threads 8 reference\u002Fgenome.fa genome_bt2\n# Creates genome_bt2.{1,2,3,4,rev.1,rev.2}\n```\n\nFor very large genomes, use the `--large-index` flag.\n\n### Paired-end alignment (ChIP-seq default)\n\n```bash\nbowtie2 -p 16 --no-mixed --no-discordant \\\n    -x genome_bt2 \\\n    -1 reads_R1.fq.gz -2 reads_R2.fq.gz \\\n    --rg-id sample1 --rg SM:sample1 --rg PL:ILLUMINA \\\n    --rg LB:lib1 |\n  samtools sort -@ 8 -m 4G -o sample1.bam -\nsamtools index sample1.bam\n```\n\n`--no-mixed --no-discordant` ensures that only properly paired reads are reported; useful for fragment length analysis.\n\n### Single-end alignment (CUT&RUN, ATAC-seq)\n\n```bash\nbowtie2 -p 16 --local -x genome_bt2 -U reads.fq.gz |\n  samtools sort -@ 8 -o s1.bam -\nsamtools index s1.bam\n```\n\n`--local` enables soft-clipping at read ends, which is essential for Tn5 transposase-cut reads in ATAC-seq.\n\n### `--very-sensitive` for low-input or divergent samples\n\n```bash\nbowtie2 --very-sensitive-local -p 16 -x bt2 -1 R1.fq -2 R2.fq | \\\n  samtools sort -@ 8 -o s.bam -\n```\n\nSensitivity levels: `--fast`, `--sensitive` (default), `--very-sensitive`. Time increases roughly 2x between levels.\n\n### Allow unpaired reads from a paired run\n\nDrop `--no-mixed --no-discordant` if you want to keep the unpaired mates:\n\n```bash\nbowtie2 -p 16 -x bt2 -1 R1.fq -2 R2.fq | samtools sort -@ 8 -o s.bam -\n```\n\n### ATAC-seq specific: soft-clip Tn5, keep mitochondrial reads but flag them later\n\n```bash\nbowtie2 -p 16 --local --no-mixed --no-discordant -X 2000 \\\n    -x bt2 -1 R1.fq.gz -2 R2.fq.gz |\n  samtools sort -@ 8 -o s.bam -\n```\n\nThen mark duplicates and remove chrM with:\n\n```bash\nsamtools view -h s.bam | grep -v chrM | samtools view -b -o s.no_chrM.bam\nsamtools index s.no_chrM.bam\n```\n\n### Read group in the header (for downstream tools)\n\n```bash\nbowtie2 -p 16 --rg-id s1 --rg SM:s1 --rg PL:ILLUMINA --rg LB:lib1 \\\n    -x bt2 -1 R1.fq -2 R2.fq | samtools sort -@ 8 -o s.bam -\n```\n\n### Insert size distribution (for ChIP-seq fragment QC)\n\n```bash\nsamtools view -f 2 s.bam | awk '{print $9}' | sort -n | uniq -c > insert_sizes.txt\n```\n\n### nf-core integration\n\n`nf-core\u002Fchipseq` and `nf-core\u002Fatacseq` default to Bowtie2. No CLI changes needed.\n\n## Common pitfalls\n\n- **Using `--end-to-end` for ATAC-seq.** Tn5 transposase inserts at precise offsets and the read may start with the transposon sequence, so `--local` is required.\n- **No read group.** Downstream tools (MACS2, deepTools) often require `@RG` headers.\n- **Allowing `--no-mixed --no-discordant` for very low input.** If most of your reads are unpaired, this discards them. Drop these flags.\n- **Indexing the wrong reference.** Bowtie2 indexes are large (`.bt2` files). Keep them in a `reference\u002F` directory.\n- **Confusing Bowtie1 and Bowtie2.** Bowtie1 is ungapped; for ChIP\u002FATAC, you almost always want Bowtie2.\n\n## Validation\n\n- `samtools flagstat s.bam` — should show high mapping rate (≥80% for ChIP-seq, ≥95% for ATAC-seq excluding chrM).\n- `samtools view -c -f 2 s.bam` — properly-paired count.\n- Insert size histogram: ChIP-seq TF should peak at ~150-300 bp; nucleosome-depleted ChIP-seq at ~50-100 bp; ATAC-seq at sub-nucleosomal + nucleosomal modes.\n- `samtools view -F 4 s.bam | wc -l` — mapped reads.\n\n## Open alternatives\n\n| Need | Tool |\n|------|------|\n| RNA-seq splice-aware | `STAR`, `HISAT2` |\n| WGS variant calling | `bwa-mem`, `bwa-mem2` |\n| Long reads | `minimap2` |\n| ChIP-seq peak caller | `MACS2`, `MACS3` |\n| ATAC-seq peak caller | `MACS2`, `Genrich` |\n\n## References\n\n- Bowtie2 paper: Langmead & Salzberg 2012, *Nature Methods* — `10.1038\u002Fnmeth.1923`\n- Bowtie2 manual: \u003Chttp:\u002F\u002Fbowtie-bio.sourceforge.net\u002Fbowtie2\u002Fmanual.shtml>\n- Companion: `ors-bioinformatics-sequence-bwa-alignment`, `ors-bioinformatics-sequence-bwa-mem2-alignment`.\n\n## Changelog\n\n- 1.0.0 (2026-06-10): Initial adaptation by Pradyumna Jayaram from `bio-bowtie2-alignment` (bioSkills-main\u002Fread-alignment\u002Fbowtie2-alignment).\"\n\n## Cross-references\n\nOther skills in this category:\n\n- batch-processing\n- bwa-alignment\n- bwa-mem2-alignment\n- codon-usage\n- compressed-sequence-files\n- fastq-quality-scores\n- filter-sequences\n- format-conversion\n- hisat2-alignment\n- motif-search\n- paired-end-fastq\n- pysam-genomics\n- read-write-sequences\n- reverse-complement\n- sam-bam-basics\n- samtools-bam-processing\n- seq-objects\n- sequence-properties\n- sequence-slicing\n- sequence-statistics\n- star-alignment\n- transcription-translation\n","\u003C!-- metadata:\n  category: bioinformatics-sequence\n  oversight: low\n  version: 1.0.0\n  author: Pradyumna Jayaram\n  tags: [bioinformatics-sequence, research]\n  difficulty: intermediate\n-->\n\n# Bowtie2 Alignment for ChIP-seq \u002F ATAC-seq\n\n## Hard rules\n\n1. **No fabricated citations.** Every cited work must resolve to a verifiable\n2. **No claim without provenance.** Every quantitative or factual claim\n3. **No silent failure.** Every script invocation, API call, or tool use must declare its exit status and what to do on non-zero. A skill that silently swallows errors is a violation.\n\n## When to use\n\n- ChIP-seq \u002F CUT&RUN \u002F CUT&Tag alignment.\n- ATAC-seq alignment (with `--local` for Tn5 soft-clipping).\n- Whole-genome bisulfite-seq (with `--no-mixed --no-discordant`).\n- Any read length 50-150 bp where speed matters.\n\n## When NOT to use\n\n- Long reads → use `minimap2`.\n- Variant calling on whole-genome data → use `bwa-mem` or `bwa-mem2`.\n- RNA-seq splice alignment → use `STAR` or `HISAT2`.\n\n## Prerequisites\n\n- `bowtie2` ≥ 2.5\n- `samtools` ≥ 1.19\n- Reference FASTA + Bowtie2 index (`bowtie2-build`)\n\n## Code patterns\n\n### Index the reference\n\n```bash\nbowtie2-build --threads 8 reference\u002Fgenome.fa genome_bt2\n# Creates genome_bt2.{1,2,3,4,rev.1,rev.2}\n```\n\nFor very large genomes, use the `--large-index` flag.\n\n### Paired-end alignment (ChIP-seq default)\n\n```bash\nbowtie2 -p 16 --no-mixed --no-discordant \\\n    -x genome_bt2 \\\n    -1 reads_R1.fq.gz -2 reads_R2.fq.gz \\\n    --rg-id sample1 --rg SM:sample1 --rg PL:ILLUMINA \\\n    --rg LB:lib1 |\n  samtools sort -@ 8 -m 4G -o sample1.bam -\nsamtools index sample1.bam\n```\n\n`--no-mixed --no-discordant` ensures that only properly paired reads are reported; useful for fragment length analysis.\n\n### Single-end alignment (CUT&RUN, ATAC-seq)\n\n```bash\nbowtie2 -p 16 --local -x genome_bt2 -U reads.fq.gz |\n  samtools sort -@ 8 -o s1.bam -\nsamtools index s1.bam\n```\n\n`--local` enables soft-clipping at read ends, which is essential for Tn5 transposase-cut reads in ATAC-seq.\n\n### `--very-sensitive` for low-input or divergent samples\n\n```bash\nbowtie2 --very-sensitive-local -p 16 -x bt2 -1 R1.fq -2 R2.fq | \\\n  samtools sort -@ 8 -o s.bam -\n```\n\nSensitivity levels: `--fast`, `--sensitive` (default), `--very-sensitive`. Time increases roughly 2x between levels.\n\n### Allow unpaired reads from a paired run\n\nDrop `--no-mixed --no-discordant` if you want to keep the unpaired mates:\n\n```bash\nbowtie2 -p 16 -x bt2 -1 R1.fq -2 R2.fq | samtools sort -@ 8 -o s.bam -\n```\n\n### ATAC-seq specific: soft-clip Tn5, keep mitochondrial reads but flag them later\n\n```bash\nbowtie2 -p 16 --local --no-mixed --no-discordant -X 2000 \\\n    -x bt2 -1 R1.fq.gz -2 R2.fq.gz |\n  samtools sort -@ 8 -o s.bam -\n```\n\nThen mark duplicates and remove chrM with:\n\n```bash\nsamtools view -h s.bam | grep -v chrM | samtools view -b -o s.no_chrM.bam\nsamtools index s.no_chrM.bam\n```\n\n### Read group in the header (for downstream tools)\n\n```bash\nbowtie2 -p 16 --rg-id s1 --rg SM:s1 --rg PL:ILLUMINA --rg LB:lib1 \\\n    -x bt2 -1 R1.fq -2 R2.fq | samtools sort -@ 8 -o s.bam -\n```\n\n### Insert size distribution (for ChIP-seq fragment QC)\n\n```bash\nsamtools view -f 2 s.bam | awk '{print $9}' | sort -n | uniq -c > insert_sizes.txt\n```\n\n### nf-core integration\n\n`nf-core\u002Fchipseq` and `nf-core\u002Fatacseq` default to Bowtie2. No CLI changes needed.\n\n## Common pitfalls\n\n- **Using `--end-to-end` for ATAC-seq.** Tn5 transposase inserts at precise offsets and the read may start with the transposon sequence, so `--local` is required.\n- **No read group.** Downstream tools (MACS2, deepTools) often require `@RG` headers.\n- **Allowing `--no-mixed --no-discordant` for very low input.** If most of your reads are unpaired, this discards them. Drop these flags.\n- **Indexing the wrong reference.** Bowtie2 indexes are large (`.bt2` files). Keep them in a `reference\u002F` directory.\n- **Confusing Bowtie1 and Bowtie2.** Bowtie1 is ungapped; for ChIP\u002FATAC, you almost always want Bowtie2.\n\n## Validation\n\n- `samtools flagstat s.bam` — should show high mapping rate (≥80% for ChIP-seq, ≥95% for ATAC-seq excluding chrM).\n- `samtools view -c -f 2 s.bam` — properly-paired count.\n- Insert size histogram: ChIP-seq TF should peak at ~150-300 bp; nucleosome-depleted ChIP-seq at ~50-100 bp; ATAC-seq at sub-nucleosomal + nucleosomal modes.\n- `samtools view -F 4 s.bam | wc -l` — mapped reads.\n\n## Open alternatives\n\n| Need | Tool |\n|------|------|\n| RNA-seq splice-aware | `STAR`, `HISAT2` |\n| WGS variant calling | `bwa-mem`, `bwa-mem2` |\n| Long reads | `minimap2` |\n| ChIP-seq peak caller | `MACS2`, `MACS3` |\n| ATAC-seq peak caller | `MACS2`, `Genrich` |\n\n## References\n\n- Bowtie2 paper: Langmead & Salzberg 2012, *Nature Methods* — `10.1038\u002Fnmeth.1923`\n- Bowtie2 manual: \u003Chttp:\u002F\u002Fbowtie-bio.sourceforge.net\u002Fbowtie2\u002Fmanual.shtml>\n- Companion: `ors-bioinformatics-sequence-bwa-alignment`, `ors-bioinformatics-sequence-bwa-mem2-alignment`.\n\n## Changelog\n\n- 1.0.0 (2026-06-10): Initial adaptation by Pradyumna Jayaram from `bio-bowtie2-alignment` (bioSkills-main\u002Fread-alignment\u002Fbowtie2-alignment).\"\n\n## Cross-references\n\nOther skills in this category:\n\n- batch-processing\n- bwa-alignment\n- bwa-mem2-alignment\n- codon-usage\n- compressed-sequence-files\n- fastq-quality-scores\n- filter-sequences\n- format-conversion\n- hisat2-alignment\n- motif-search\n- paired-end-fastq\n- pysam-genomics\n- read-write-sequences\n- reverse-complement\n- sam-bam-basics\n- samtools-bam-processing\n- seq-objects\n- sequence-properties\n- sequence-slicing\n- sequence-statistics\n- star-alignment\n- transcription-translation\n",{"name":5,"license":15,"description":7},"main","9c0b41e2036cc5588c699f06e658ea6dc3b9685d","skills\u002Fbioinformatics-sequence\u002Fbowtie2-alignment",2,"https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar","PhD Scholar,\r\nManipal School Of Life Sciences, Manipal\r\n #OpenSourceDeveloper #LifeSciences #ComputationalBiology","2026-10-30 01:30:52",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add pradyumnasagar\u002Fopen-research-skills --skill bowtie2-alignment",{"tool":38,"command":39},"bunx","bunx skills add pradyumnasagar\u002Fopen-research-skills --skill bowtie2-alignment",{"tool":41,"command":42},"pnpm","pnpm dlx skills add pradyumnasagar\u002Fopen-research-skills --skill bowtie2-alignment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbioinformatics-sequence\u002Fbowtie2-alignment\u002FSKILL.md",true,[],[47,54,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M75KTS5K9QNX8FQBTJW2GQSH","good-skill","A well-formed test fixture for the validation script.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75KTR7FAT0MMMED2EGC9WZZ","BadSkill","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75KTN949EDF77GJDS8H6VR8","my-new-skill","One sentence (max 200 chars) — what the skill does and when to use it.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75KTHTFS121SSF1Q5X2FXDA","thesis-structure","Use when planning or checking the architecture of a PhD \u002F MPhil thesis in the life sciences or bioinformatics — monograph vs article-based, chapter sequence, IMRaD-based chapters, abstract-to-conclusion flow, and the examiner expectations that the structure must meet.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-structure\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75KTE3WKW46FXFHQ579H8YP","thesis-methods-reproducibility","Use when writing or checking the Methods, figures, data, and code of a bioinformatics \u002F microbiology \u002F life-science PhD thesis — the FAIR data, versioned code, report-generation, figure-and-table discipline, and the reproducibility expectations that examiners probe at viva.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-methods-reproducibility\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75KTA033ZQCJY3DC8P5VQET","thesis-defense-viva","Use when preparing for the viva voce \u002F oral thesis defense — building the examiner's question set, rehearsing the presentation, and the pre-defense polish (slides, summary, the 'what if I'm stuck' responses) for a life-science or bioinformatics PhD.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-defense-viva\u002FSKILL.md",[],[]]