All skills
anthropics avatar

/nextflow-development

@7c35640

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.

Use this Skill: https://skilld.dev/gh/anthropics/knowledge-work-plugins/nextflow-development

This session only. Nothing lands on disk.

referencespipelinesatacseq.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

nf-core/atacseq

Version: 2.1.2

Official Documentation: https://nf-co.re/atacseq/2.1.2/ GitHub: https://github.com/nf-core/atacseq

Note: When updating to a new version, check the releases page for breaking changes and update the version in commands below.

Contents

Test command

nextflow run nf-core/atacseq -r 2.1.2 -profile test,docker --outdir test_atacseq

Expected: ~15 min, creates peaks and BigWig tracks.

Samplesheet format

sample,fastq_1,fastq_2,replicate
CONTROL,/path/to/ctrl_rep1_R1.fq.gz,/path/to/ctrl_rep1_R2.fq.gz,1
CONTROL,/path/to/ctrl_rep2_R1.fq.gz,/path/to/ctrl_rep2_R2.fq.gz,2
TREATMENT,/path/to/treat_rep1_R1.fq.gz,/path/to/treat_rep1_R2.fq.gz,1
TREATMENT,/path/to/treat_rep2_R1.fq.gz,/path/to/treat_rep2_R2.fq.gz,2
Column Required Description
sample Yes Condition/group identifier
fastq_1 Yes Absolute path to R1
fastq_2 Yes Absolute path to R2 (paired-end required)
replicate Yes Replicate number (integer)

Design file for differential analysis

sample,condition
CONTROL,control
TREATMENT,treatment

Use with --deseq2_design design.csv.

Parameters

Minimal run

nextflow run nf-core/atacseq -r 2.1.2 -profile docker \
    --input samplesheet.csv --outdir results --genome GRCh38 --read_length 50

Common parameters

Parameter Default Description
--genome - GRCh38, GRCh37, mm10
--read_length 50 Read length for MACS2 optimization
--narrow_peak true Narrow peaks (false for broad)
--mito_name chrM Mitochondrial chromosome name
--keep_mito false Keep mitochondrial reads
--min_reps_consensus 1 Min replicates for consensus peaks

Differential accessibility

--deseq2_design design.csv

Output files

results/
├── bwa/mergedLibrary/
│   ├── *.mLb.mkD.sorted.bam     # Filtered, deduplicated alignments
│   └── bigwig/
│       └── *.bigWig             # Coverage tracks
├── macs2/narrowPeak/
│   ├── *.narrowPeak             # Peak calls
│   └── consensus/
│       └── consensus_peaks.bed  # Merged peaks across replicates
├── deeptools/
│   ├── plotFingerprint/         # Library complexity
│   └── plotProfile/             # TSS enrichment
├── deseq2/                      # If --deseq2_design provided
└── multiqc/

Key outputs:

  • *.mLb.mkD.sorted.bam: Analysis-ready alignments
  • *.narrowPeak: MACS2 peak calls (BED format)
  • consensus_peaks.bed: Consensus peaks across replicates
  • *.bigWig: Genome browser tracks

Quality metrics

Metric Good Acceptable Poor
Mapped reads >80% 60-80% <60%
Mitochondrial <20% 20-40% >40%
Duplicates <30% 30-50% >50%
FRiP >30% 15-30% <15%
TSS enrichment >6 4-6 <4

Fragment size: Should show nucleosomal periodicity (~50bp nucleosome-free, ~200bp mono-nucleosome).

Downstream analysis

library(ChIPseeker)
library(GenomicRanges)
peaks <- import("consensus_peaks.bed")
peakAnno <- annotatePeak(peaks, TxDb = TxDb.Hsapiens.UCSC.hg38.knownGene)

Motif analysis:

findMotifsGenome.pl consensus_peaks.bed hg38 motifs/ -size 200

Troubleshooting

Low FRiP: Check library complexity in plotFingerprint/. May indicate over-transposition.

Few peaks: Lower threshold with --macs_qvalue 0.1 or use --narrow_peak false for broader peaks.

High duplicates: Normal for low-input; pipeline removes by default.

More Information

Source: SKILL.md on GitHub

2 warnings16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides a comprehensive workflow for running nf-core bioinformatics pipelines. It includes some security considerations such as the suggestion to install tools via remote scripts and instructions for using administrative privileges during environment setup. While these represent potential risks, they are part of the standard deployment process for the intended scientific tools and target well-known services. The skill also processes metadata from public databases, which creates a surface for indirect prompt injection that warrants standard review.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    22/22 files flagged

  • ZeroLeaks5mo

    1 finding · Score: 82/100

Signed by skilld at 7c35640. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 8 months ago

README badge

README badge for anthropics/knowledge-work-plugins/nextflow-development