How steffiroseck/rna-seqanalysispipeline works
Project Type and Purpose
• This is a shell-and-R “bioinformatics pipeline” for end-to-end RNA-Seq analysis (sheep samples).
• It ingests raw FASTQ files, runs quality control, trimming, alignment, read counting, then performs sequential R-based downstream analyses (differential expression, co-expression, enrichment, StringDB).
File Structure
• Top level:
• README.md – overview and tool prerequisites
• extract.IDs.from.GTF.sh – helper script (gene ID extraction)
• rna-seq-pipeline/ – core workflow scripts
• Inside rna-seq-pipeline/:
• 1.RNASeqPipeline.sh – orchestrates FastQC → Trimmomatic → Hisat2 → featureCounts
• 2.*.Rmd & .R files – various downstream analyses (DESeq2, WGCNA, enrichment, StringDB)
• wgcna.locID.annotation.R – supporting annotation for WGCNA step.
README for Insights
• The execution order is explicitly listed:
1. Shell pipeline (V1.0.RNASeqPipeline.sh)
2. Rscript V1.0_Deseq2.R (differential expression)
3. Rscript V1.0_GO_KEGG_enrichment_analysis.R
4. Rscript V1.0_wgcna.R
5. Rscript V1.0_Stringdb.R
• External tools: FastQC, Trimmomatic, Hisat2, featureCounts.
a. Main Components
• Input Data Store: FASTQ files (raw reads)
• QC Module: FastQC
• Trimming Module: Trimmomatic
• Alignment Module: Hisat2
• Counting Module: featureCounts → produces gene‐count matrix
• Downstream Analysis Modules (R):
– Differential Expression (DESeq2)
– Enrichment Analysis (GO/KEGG via clusterProfiler or custom R script)
– WGCNA (weighted co‐expression networks + annotation)
– StringDB Analysis
• Helper Scripts: extract.IDs.from.GTF.sh, wgcna.locID.annotation.R
• Outputs: QC reports, trimmed FASTQ, BAM/SAM, count tables, HTML/PDF reports, plots.
b. Relationships & Data Flow
c. Architectural Patterns & Principles
• Linear, modular pipeline (each tool/script is a stage)
• Separation of concerns: shell for data prep, R for statistical analysis
• Reproducibility via versioned scripts and conda/install instructions
• Extensibility: new R modules or QC tools can slot in.
d. Technologies & Frameworks
• Shell scripting (bash)
• Bioconda / apt installs for external tools
• R / R Markdown / Rscript
• Bioconductor packages: DESeq2, WGCNA, clusterProfiler (GO/KEGG), STRINGdb
• Auxiliary: FastQC, Trimmomatic, Hisat2, featureCounts.