Skip to content

nota-america/forgecat-agent-profiles / profiles/anthropics/knowledge-work-plugins/anthropics_knowledge-work-plugins_bio-research/for-claude/.claude/skills/nextflow-development

nextflow-development

Unverified

Run nf-core bioinformatics pipelines (rnaseq, sarek, atacseq) on sequencing data. Use when analyzing RNA-seq, WGS/WES, or ATAC-seq data—either local FASTQs or public datasets from GEO/SRA. Triggers on nf-core, Nextflow, FASTQ analysis, variant calling, gene expression, differential expression, GEO reanalysis, GSE/GSM/SRR accessions, or samplesheet creation.

scripts/config/pipelines/sarek.yaml

View on GitHub
name: sarek
version: "3.7.1"
description: "Variant calling for WGS/WES data (germline and somatic)"

# Documentation and source - NOTE: Update version in URLs when upgrading pipeline
urls:
  documentation: "https://nf-co.re/sarek/{version}/"
  parameters: "https://nf-co.re/sarek/{version}/parameters/"
  output_docs: "https://nf-co.re/sarek/{version}/docs/output/"
  github: "https://github.com/nf-core/sarek"
  releases: "https://github.com/nf-core/sarek/releases"

data_types:
  - WGS
  - WES
  - whole genome sequencing
  - whole exome sequencing
  - tumor-normal
  - germline
  - somatic

detection_hints:
  filename:
    - tumor
    - normal
    - germline
    - wgs
    - wes
    - exome
    - dna
    - variant
  directory:
    - variant
    - wgs
    - wes
    - exome
    - germline
    - somatic

samplesheet:
  input_types:
    - fastq
    - bam
    - cram

  columns:
    - name: patient
      required: true
      type: string
      inference: filename
      description: "Patient/subject identifier for grouping samples"

    - name: sample
      required: true
      type: string
      inference: filename
      description: "Sample identifier (e.g., tumor, normal)"

    - name: lane
      required: false
      type: string
      default: "L001"
      inference: filename
      description: "Sequencing lane"

    - name: fastq_1
      required: true
      type: path
      inference: auto
      condition: "input_type == 'fastq'"
      description: "Absolute path to R1 FASTQ"

    - name: fastq_2
      required: false
      type: path
      inference: auto
      condition: "input_type == 'fastq'"
      description: "Absolute path to R2 FASTQ"

    - name: bam
      required: true
      type: path
      inference: auto
      condition: "input_type in ['bam', 'cram']"
      description: "Absolute path to BAM/CRAM file"

    - name: bai
      required: true
      type: path
      inference: auto
      condition: "input_type in ['bam', 'cram']"
      description: "Absolute path to BAM/CRAM index"

    - name: status
      required: false
      type: integer
      allowed:
        - 0
        - 1
      default: 0
      inference: filename
      description: "0=normal, 1=tumor (critical for somatic calling)"

decision_points:
  - parameter: genome
    prompt: "Which reference genome should be used?"
    options:
      - value: GRCh38
        label: "Human GRCh38/hg38 (recommended)"
        description: "Latest human reference with most annotation support"
      - value: GRCh37
        label: "Human GRCh37/hg19 (legacy)"
        description: "For compatibility with older datasets"
      - value: mm10
        label: "Mouse mm10"
        description: "Mouse reference genome"
    default: GRCh38
    recommendation: "Default to GRCh38 for human data"

  - parameter: tools
    prompt: "What type of variant calling do you need?"
    options:
      - value: "haplotypecaller,snpeff"
        label: "Germline variants (single samples)"
        description: "For finding inherited variants in normal samples"
        condition: "no tumor samples detected"
      - value: "mutect2,strelka,snpeff"
        label: "Somatic variants (tumor-normal pairs)"
        description: "For finding cancer mutations with matched normal"
        condition: "tumor-normal pairs detected"
      - value: "haplotypecaller,deepvariant,snpeff"
        label: "Germline with DeepVariant"
        description: "Higher accuracy germline calling (requires GPU)"
      - value: "mutect2,manta,snpeff"
        label: "Somatic with structural variants"
        description: "Comprehensive tumor analysis including SVs"
    default: "haplotypecaller,snpeff"
    recommendation: "Use somatic tools if tumor/normal pairs detected, otherwise germline"

  - parameter: wes
    prompt: "Is this whole exome sequencing (WES) data?"
    options:
      - value: "false"
        label: "No - Whole Genome Sequencing (WGS)"
        description: "Full genome coverage"
      - value: "true"
        label: "Yes - Whole Exome Sequencing (WES)"
        description: "Requires --intervals BED file"
    default: "false"
    recommendation: "If WES, user must provide intervals BED file"

test_profile:
  command: "nextflow run nf-core/sarek -r 3.7.1 -profile test,docker --outdir test_sarek"
  duration: "20 minutes"
  success_indicators:
    - "test_sarek/multiqc/multiqc_report.html"
  log_pattern: "Pipeline completed successfully"

run_command:
  template: |
    nextflow run nf-core/sarek \
        -r 3.7.1 \
        -profile docker \
        --input {samplesheet} \
        --outdir {outdir} \
        --genome {genome} \
        --tools {tools} \
        -resume

  wes_template: |
    nextflow run nf-core/sarek \
        -r 3.7.1 \
        -profile docker \
        --input {samplesheet} \
        --outdir {outdir} \
        --genome {genome} \
        --tools {tools} \
        --wes \
        --intervals {intervals} \
        -resume

outputs:
  primary:
    - path: "preprocessing/recalibrated/*.recal.bam"
      description: "Analysis-ready BAM files"
    - path: "variant_calling/*/*.vcf.gz"
      description: "Variant call files"
    - path: "annotation/snpeff/*.ann.vcf.gz"
      description: "Annotated variants"

  validation:
    - file: "multiqc/multiqc_report.html"
      check: exists
      description: "QC report must exist"
    - file: "preprocessing/recalibrated"
      check: exists
      description: "Recalibrated BAMs directory"

resources:
  min_memory: "16.GB"
  recommended_memory: "64.GB"
  wgs_memory: "128.GB"
  min_cpus: 4
  recommended_cpus: 16
  disk_space: "500.GB"

troubleshooting:
  - error: "BQSR fails"
    fix: "Check known sites available for genome. Skip with --skip_bqsr for non-standard references"
  - error: "Mutect2 no variants"
    fix: "Verify tumor/normal pairing in samplesheet (check status column: 0=normal, 1=tumor)"
  - error: "Out of memory"
    fix: "--max_memory '128.GB' for WGS data"
  - error: "DeepVariant GPU issues"
    fix: "Ensure NVIDIA Docker runtime configured, or use CPU mode"

tumor_normal_keywords:
  tumor:
    - tumor
    - tumour
    - met
    - metastasis
    - primary
    - cancer
    - malignant
  normal:
    - normal
    - germline
    - blood
    - pbmc
    - control
    - healthy
    - matched
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall