一键导入
hisat2-alignment
Splice-aware RNA-seq alignment with HISAT2 — fast, memory-efficient, and the default in many bulk RNA-seq pipelines alongside STAR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Splice-aware RNA-seq alignment with HISAT2 — fast, memory-efficient, and the default in many bulk RNA-seq pipelines alongside STAR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pass work between ORS skills with a Material Passport — a structured JSON envelope that captures inputs, outputs, decisions, and provenance so a downstream skill can resume without re-deriving context. Use when one skill produces output that another skill must consume, especially across category boundaries (e.g. analysis → writing, sequencing → statistics).
Discover and maintain `## Cross-references` between ORS skills. Given a new or edited skill, suggest related skills (same category, shared tags, complementary workflows). Verify all xref slugs resolve to existing SKILL.md files. Use when adding a new skill, when sibling skills move, or when an audit reveals dangling xrefs.
7-mode AI failure-mode checklist applied before publishing any ORS artifact (skill, manuscript section, dataset card, agent output). Catches: fabricated citations, silent failures, scope creep, missing provenance, unsupervised writes, version drift, hallucinated APIs. Use as the final pass before any 'publish', 'release', 'merge', or 'finalize' action.
Version, changelog, and marketplace workflow for ORS skills. Semver discipline, breaking-change protocol, marketplace.json update, README refresh, and the v0.X.Y → v1.0.0 graduation criteria. Use when bumping a skill version, publishing a release, or upgrading the ORS package version.
Author a new ORS skill from scratch using the v0.4.0 schema. Produces a valid SKILL.md (frontmatter + metadata + sections) following spec/skill-format.md, guided by spec/author-guide.md, validated by scripts/validate-skills.py. Use when a user says 'add a new skill', 'create a skill for X', or 'I want to contribute a skill'.
Process many FASTA/FASTQ/GenBank files in batch — merge, split, convert, summarize, organize — using Biopython 1.83+.
| name | hisat2-alignment |
| description | Splice-aware RNA-seq alignment with HISAT2 — fast, memory-efficient, and the default in many bulk RNA-seq pipelines alongside STAR. |
| license | MIT |
STAR (better novel junction discovery).bwa-mem or bwa-mem2.minimap2 with -ax splice.hisat2 ≥ 2.2samtools ≥ 1.19hisat2-build or hisat2-build-s with known splice sites).hisat2 --dta for downstream transcriptome assembly (StringTie / Cufflinks) or --no-spliced-alignment for general use.samtools.hisat2_extract_splice_sites.py genes.gtf > splice_sites.txt
hisat2_extract_exons.py genes.gtf > exons.txt
hisat2-build -p 16 --ss splice_sites.txt --exon exons.txt reference/genome.fa genome_hs2
hisat2-build -p 16 reference/genome.fa genome_hs2
hisat2 -p 16 --dta -x genome_hs2 \
-1 reads_R1.fq.gz -2 reads_R2.fq.gz \
--rg-id sample1 --rg SM:sample1 --rg PL:ILLUMINA --rg LB:lib1 \
-S sample1.sam
samtools sort -@ 8 -o sample1.bam sample1.sam
samtools index sample1.bam
rm sample1.sam
--dta (downstream-transcriptome-assembly) is required if you'll run StringTie; it reports alignments tailored to transcript assembly.
hisat2 -p 16 --dta -x genome_hs2 -U reads.fq.gz --rg-id s1 --rg SM:s1 |
samtools sort -@ 8 -o s1.bam -
--un-gz to drop)hisat2 -p 16 --dta --un-gz unmapped.fq.gz -x genome_hs2 -1 R1.fq -2 R2.fq |
samtools sort -@ 8 -o s.bam -
--un-gz writes reads that didn't align (often rRNA or contaminant) for downstream QC.
HISAT2 doesn't natively set XS tags; the convention is to use featureCounts or StringTie to infer strand from spliced alignments. For library prep-specific strand:
# Ligation protocol (Illumina TruSeq stranded)
# HISAT2 reports XS:A:+ / XS:A:- via the spliced alignment orientation
# featureCounts -s 2 (reverse stranded) will pick this up
hisat2 -p 16 --dta -x genome_hs2 -U iso_seq.fq.gz --no-temp-splicesite |
samtools sort -@ 8 -o iso.bam -
nf-core/rnaseq defaults to STAR. To use HISAT2, pass --aligner hisat2 on the CLI.
--dta for transcriptome assembly. StringTie/Cufflinks require the special scoring.--rna-strandness (legacy flag removed in 2.2). In HISAT2 2.2+, use downstream tools (featureCounts -s) to handle strand.--rg-id. featureCounts and StringTie need read groups for multi-sample merges.samtools flagstat s.bam — high mapping rate expected (≥80% for human bulk RNA-seq).samtools view -c -f 2 s.bam — properly-paired count.samtools view s.bam | grep -c 'N:M:' — spliced alignment count (look for N in CIGAR).samtools view s.bam | awk '$6 ~ /N/' | wc -l — spliced reads.| Need | Tool |
|---|---|
| Best novel junction discovery | STAR |
| Lower memory footprint | HISAT2 (this skill) |
| Long-read cDNA | minimap2 -ax splice:hq |
| Pseudo-alignment (transcripts only) | salmon, kallisto |
| Standard bulk RNA-seq | nf-core/rnaseq (default STAR, --aligner hisat2 optional) |
10.1038/s41587-019-0201-4ors-bioinformatics-sequence-star-alignment, ors-bioinformatics-sequence-bwa-alignment.bio-hisat2-alignment (bioSkills-main/read-alignment/hisat2-alignment)."Other skills in this category: