How nf-core/ampliseq works
Main Components
a. Input Processing Layer:
• Raw Data Input (FASTQ files)
• Sample Sheet Processing
• Metadata Processing
• Primer Configuration
b. Quality Control Layer:
• FastQC Module
• Cutadapt Trimming Module
• MultiQC Integration
c. Core Processing Layer:
• DADA2 Processing Pipeline
• ASV Inference Engine
• VSEARCH Clustering (Optional)
• Barrnap rRNA Prediction
d. Taxonomic Classification Layer:
• Multiple Classification Options:
• DADA2 Classifier
• SINTAX Classifier
• Kraken2 Classifier
• QIIME2 Classifier
e. Analysis Layer:
• Phylogenetic Placement (EPA-NG)
• Diversity Analysis (QIIME2)
• Statistical Analysis
• Phyloseq Integration
f. Output Layer:
• Results Generation
• Report Creation
• Data Export
• Visualization Generation
[Input Layer]
• ↓
[Quality Control]
• ↓
[Core Processing]
• ↓
[Classification]
• ↓
[Analysis]
• ↓
[Output]
Key Relationships to Highlight
• Parallel processing capabilities where applicable
• Database connections for taxonomic classification
• Integration points between different tools
• Data flow between components
Technical Details
• Nextflow DSL2 workflow structure
• Container integration points
• Resource allocation points
• Data transformation steps
• Tool version compatibility
workflows/
• ampliseq.nf (main workflow)
• ↓
subworkflows/
• cutadapt_workflow
• dada2_preprocessing
• taxonomy_workflows
• qiime2_workflows
Infrastructure Elements
• Container runtime (Docker/Singularity)
• Resource management
• Storage requirements
• Parallel processing capabilities
Additional Elements
• Version information
• Database connections
• Error handling paths
• Checkpoint locations
• Resource scaling points
Remember to include the pipeline's ability to handle different input types (Illumina paired-end, single-end, PacBio, IonTorrent) and its flexibility in working with various amplicon types (16S, ITS, CO1, 18S).
This design will help users understand the pipeline's architecture while providing developers with the necessary technical details for maintenance and enhancement.