Nextflow Pipelines Generate Automatically

Sub-skill of nextflow-pipelines: Generate automatically (+2).

vamseeachanta Updated

File contents

Generate automatically (+2)

Generate automatically

python scripts/generate_samplesheet.py /path/to/data <pipeline> -o samplesheet.csv

The script:

  • Discovers FASTQ/BAM/CRAM files
  • Pairs R1/R2 reads
  • Infers sample metadata
  • Validates before writing

For sarek: Script prompts for tumor/normal status if not auto-detected.

Validate existing samplesheet

python scripts/generate_samplesheet.py --validate samplesheet.csv <pipeline>

Samplesheet formats

rnaseq:

sample,fastq_1,fastq_2,strandedness
SAMPLE1,/abs/path/R1.fq.gz,/abs/path/R2.fq.gz,auto

sarek:

patient,sample,lane,fastq_1,fastq_2,status
patient1,tumor,L001,/abs/path/tumor_R1.fq.gz,/abs/path/tumor_R2.fq.gz,1

*See sub-skills for full details.*

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/science/bio-research/nextflow-pipelines/generate-automatically commit 50feec3825

Frequently asked questions

npx skillmds@latest add vamseeachanta/nextflow-pipelines-generate-automatically