Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

fastq-analysis-pipelinefastq 分析管道

Agent Skill

fastq-analysis-pipeline 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

404

周安装

17

GitHub Stars

964

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fastq-analysis-pipeline(fastq 分析管道)
来源仓库:https://github.com/starlitnightly/omicverse
仓库路径:skills/fastq-analysis-pipeline
安装命令:
npx skills add https://github.com/starlitnightly/omicverse --skill fastq-analysis-pipeline
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/starlitnightly/omicverse --skill fastq-analysis-pipeline

简介

fastq-analysis-pipeline 提供 FASTQ 数据从原始文件到计数矩阵的完整生物信息学分析流程。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中处理 SRA 测序数据与 RNA-seq 定量分析。
  • 集成 fastp、STAR、featureCounts 等工具,支持并行下载与自动索引构建优化性能。
  • 使用前需确认输入文件格式正确,并预留足够磁盘空间用于中间文件与比对结果存储。
  • 建议根据样本数量选择 kb-python 单细胞流程或传统 align-count 路径,避免资源浪费。

SKILL.md

Overview

OmicVerse provides a complete FASTQ-to-count-matrix pipeline via the ov.alignment module. This skill covers:

  • SRA data acquisition: prefetch and fqdump (fasterq-dump wrapper)
  • Quality control: fastp for adapter trimming and QC reports
  • RNA-seq alignment: STAR aligner with auto-index building
  • Gene quantification: featureCount (subread featureCounts wrapper)
  • Single-cell path: ref and count via kb-python (kallisto/bustools)
  • Parallel SRA download: parallel_fastq_dump

All functions share a common CLI infrastructure (_cli_utils.py) that handles tool resolution, auto-installation via conda/mamba, parallel execution, and streaming output.

Instructions

  1. Environment setup

- Bioinformatics tools are resolved automatically from PATH or the active conda environment. - If auto_install=True (default), missing tools are installed via mamba/conda on demand. - Supported tools: prefetch, vdb-validate, fasterq-dump, fastp, STAR, samtools, featureCounts, pigz, gzip. - For the single-cell path, ensure kb-python is installed: pip install kb-python.

  1. SRA data download (ov.alignment.prefetch + ov.alignment.fqdump) import omicverse as ov # Step 1: Prefetch SRA files (optional but recommended) pre = ov.alignment.prefetch(['SRR1234567', 'SRR1234568'], output_dir='prefetch', jobs=4) # Step 2: Convert to FASTQ fq = ov.alignment.fqdump(['SRR1234567', 'SRR1234568'], output_dir='fastq', sra_dir='prefetch', gzip=True, threads=8, jobs=4)

- Use prefetch first for reliable downloads with integrity validation (vdb-validate). - Then convert to FASTQ with fqdump. It auto-detects single-end vs paired-end. - fqdump can also work directly from SRR accessions without prefetch. - Both support retry with exponential backoff for network errors.

  1. FASTQ quality control (ov.alignment.fastp) samples = [('S1', 'fastq/SRR1234567/SRR1234567_1.fastq.gz', 'fastq/SRR1234567/SRR1234567_2.fastq.gz'), ('S2', 'fastq/SRR1234568/SRR1234568_1.fastq.gz', 'fastq/SRR1234568/SRR1234568_2.fastq.gz'),] clean = ov.alignment.fastp(samples, output_dir='fastp', threads=8, jobs=2)

- Runs fastp for adapter trimming, quality filtering, and QC reporting. - Supports single-end and paired-end reads. - Produces per-sample JSON and HTML QC reports. - Sample format: tuple of (sample_name, fq1_path, fq2_path_or_None).

  1. STAR alignment (ov.alignment.STAR) # Prepare samples from fastp output star_samples = [('S1', 'fastp/S1/S1_clean_1.fastq.gz', 'fastp/S1/S1_clean_2.fastq.gz'), ('S2', 'fastp/S2/S2_clean_1.fastq.gz', 'fastp/S2/S2_clean_2.fastq.gz'),] bams = ov.alignment.STAR(star_samples, genome_dir='star_index', output_dir='star_out', gtf='genes.gtf', genome_fasta_files=['genome.fa'], threads=8, memory='50G',)

- Aligns FASTQ reads using the STAR aligner. - Auto-index building: set auto_index=True (default) with genome_fasta_files and gtf to build index automatically if missing. - Produces coordinate-sorted BAM files. - Handles gzip-compressed FASTQs automatically (uses pigz/gzip/zcat). - Use strict=False (default) for graceful error handling per sample.

  1. Gene quantification (ov.alignment.featureCount) bam_items = [('S1', 'star_out/S1/Aligned.sortedByCoord.out.bam'), ('S2', 'star_out/S2/Aligned.sortedByCoord.out.bam'),] counts = ov.alignment.featureCount(bam_items, gtf='genes.gtf', output_dir='counts', gene_mapping=True, merge_matrix=True, threads=8,) # counts is a pandas DataFrame (gene_id x samples)

- Counts aligned reads per gene using featureCounts (subread). - Auto-detects paired-end from BAM headers (via pysam or samtools). - auto_fix=True (default) retries with corrected paired-end flag on error. - gene_mapping=True maps gene_id to gene_name from the GTF. - merge_matrix=True produces a combined count matrix across all samples.

  1. Single-cell path (ov.alignment.ref + ov.alignment.count) # Build reference index ref_result = ov.alignment.ref(index_path='kb_ref/index.idx', t2g_path='kb_ref/t2g.txt', fasta_paths=['genome.fa'], gtf_paths=['genes.gtf'], threads=8,) # Quantify 10x v3 data count_result = ov.alignment.count(index_path='kb_ref/index.idx', t2g_path='kb_ref/t2g.txt', technology='10XV3', fastq_paths=['sample_R1.fastq.gz', 'sample_R2.fastq.gz'], output_path='kb_out', h5ad=True, filter_barcodes=True, threads=8,)

- Uses kb-python (kallisto + bustools) for single-cell RNA-seq quantification. - ref() builds a kallisto index and transcript-to-gene mapping. - count() quantifies single-cell data with barcode/UMI handling. - Supports technologies: 10XV2, 10XV3, BULK, and custom. - Output formats: h5ad, loom, cellranger MTX.

  1. Wiring fastp output into STAR input star_samples = [(r['sample'], r['clean1'], r['clean2'] if r['clean2'] else None) for r in (clean if isinstance(clean, list) else [clean])]

- fastp output is a list of dicts with keys: sample, clean1, clean2, json, html. - Convert to STAR sample tuples:

  1. Wiring STAR output into featureCount input bam_items = [(r['sample'], r['bam']) for r in (bams if isinstance(bams, list) else [bams]) if 'bam' in r]

- STAR output is a list of dicts with keys: sample, bam (or error). - Convert to featureCount items:

  1. Skipping completed steps

- All functions check for existing outputs and skip if overwrite=False (default). - Set overwrite=True to force re-execution.

  1. Troubleshooting

- If a tool is not found, check auto_install=True and that conda/mamba is accessible. - For STAR index errors, ensure genome_fasta_files points to uncompressed or gzip FASTA files. - For featureCounts paired-end detection errors, auto_fix=True handles most cases automatically. - GTF files can be gzip-compressed; they are auto-decompressed as needed.

Critical API Reference

Sample Format Convention

All alignment functions use a consistent sample tuple format:

  • FASTQ samples: (sample_name, fq1_path, fq2_path_or_None)
  • BAM items: (sample_name, bam_path) or (sample_name, bam_path, is_paired_bool)
  • Single samples can be passed as a single tuple; multiple as a list of tuples.
  • When a single tuple is passed, the return value is a single dict; for a list, a list of dicts.

Auto-installation

# All functions support these parameters:
auto_install=True   # Auto-install missing tools via conda/mamba
overwrite=False     # Skip if outputs already exist
threads=8           # Per-tool thread count
jobs=None           # Concurrent job count (auto-detected from CPU count)

Examples

  • Bulk RNA-seq from SRA: prefetch -> fqdump -> fastp -> STAR -> featureCount -> pandas DataFrame
  • Single-cell 10x v3: ref -> count with technology='10XV3' -> h5ad AnnData
  • Local FASTQ files: Skip download steps, start directly with fastp -> STAR -> featureCount

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.83%
按下载量换算55

Claude

29.25%
按下载量换算41

Cursor

19.73%
按下载量换算28

Gemini CLI

9.93%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills