# krishnan-rama/transflow architecture

> Architecture diagram of the GitHub repository krishnan-rama/transflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/krishnan-rama/transflow
- Repository: https://github.com/krishnan-rama/transflow

## Overview

nf-transFlow is documented as a Nextflow transcriptome-analysis pipeline for RNA-seq FASTQ data on Slurm HPC. Its principal workflow covers quality assessment, preprocessing, de novo assembly, and functional annotation, with step results written to output. The supplied tree does not include the Nextflow workflow, configuration, or deployment scripts, so those stages are represented at the existing modules/ directory level and the documented sequence is cited to the README. The visible Kraken-read extraction script is present, but its role in that workflow is not established by the excerpts.

Main entry points: [`modules`](https://github.com/krishnan-rama/transflow/tree/main/modules) (FASTQ Reads)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Transcriptome Workflow"]
  node_fastq["FASTQ Reads"]
  node_quality["Quality Assessment"]
  node_preprocess["Read Preprocessing"]
  node_assembly["De Novo Assembly"]
  node_annotation["Functional Annotation"]
  node_results["Step Results"]
  node_extract["Kraken Read Extractor"]
end

subgraph group_runtime["HPC Execution"]
  node_nextflow["Nextflow"]
  node_slurm["Slurm HPC"]
end

node_user(("RNA-seq User"))

node_user -->|"provides reads"| node_fastq
node_fastq -->|"assessed by"| node_quality
node_quality -->|"precedes"| node_preprocess
node_preprocess -->|"precedes"| node_assembly
node_assembly -->|"precedes"| node_annotation
node_annotation -->|"writes results"| node_results
node_user -->|"runs pipeline"| node_nextflow
node_nextflow -->|"runs on"| node_slurm

click node_fastq "https://github.com/krishnan-rama/transflow/tree/main/modules"
click node_quality "https://github.com/krishnan-rama/transflow/tree/main/modules"
click node_preprocess "https://github.com/krishnan-rama/transflow/tree/main/modules"
click node_assembly "https://github.com/krishnan-rama/transflow/tree/main/modules"
click node_annotation "https://github.com/krishnan-rama/transflow/tree/main/modules"
click node_results "https://github.com/krishnan-rama/transflow/tree/main/modules"
click node_extract "https://github.com/krishnan-rama/transflow/blob/main/modules/extract_kraken_reads.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fastq,node_quality,node_preprocess,node_assembly,node_annotation,node_results,node_extract,node_user toneBlue
class node_nextflow,node_slurm toneAmber
```

## Components

### Transcriptome Workflow

- [FASTQ Reads](https://github.com/krishnan-rama/transflow/tree/main/modules): `modules`
- [Quality Assessment](https://github.com/krishnan-rama/transflow/tree/main/modules): `modules`
- [Read Preprocessing](https://github.com/krishnan-rama/transflow/tree/main/modules): `modules`
- [De Novo Assembly](https://github.com/krishnan-rama/transflow/tree/main/modules): `modules`
- [Functional Annotation](https://github.com/krishnan-rama/transflow/tree/main/modules): `modules`
- [Step Results](https://github.com/krishnan-rama/transflow/tree/main/modules): `modules`
- [Kraken Read Extractor](https://github.com/krishnan-rama/transflow/blob/main/modules/extract_kraken_reads.py): `modules/extract_kraken_reads.py`

### HPC Execution

- **Nextflow**
- **Slurm HPC**

### Other components

- **RNA-seq User**

## Connections

- RNA-seq User → FASTQ Reads: provides reads
- FASTQ Reads → Quality Assessment: assessed by
- Quality Assessment → Read Preprocessing: precedes
- Read Preprocessing → De Novo Assembly: precedes
- De Novo Assembly → Functional Annotation: precedes
- Functional Annotation → Step Results: writes results
- RNA-seq User → Nextflow: runs pipeline
- Nextflow → Slurm HPC: runs on
