How gauravj49/gjutilities works
Main Components
• Data Sources: Begin by denoting the input data (raw fastq files and any data files needed for the analysis) that feed into the system.
• Preprocessing Component: Show the “merge_illumina_samples.py” script which takes raw (unmerged) Illumina fastq files as input and produces merged fastq files.
• Analysis Components:
– “R_pairwise_correlation_heatmap.R” (if used) that likely generates heatmaps based on correlation analysis.
– “draw_combined_volcano_plots.py” which takes two input data files (for example, results from differential expression analysis) and produces a volcano plot.
• Template / Utility Script: “gjain_python_script_template.py” can be depicted as a base framework that outlines the argument parsing and structure for additional utility scripts.
• External Dependencies: Identify and include command line tools (bedtools, samtools, etc.) that these scripts are designed to wrap or interface with. They can be visualized as external modules or services linked to the respective script components.
• Output Components: Note the output directories or generated files (merged fastq files, diagnosis plots, output volcano plot files) as final endpoints of the processing flow.
Architectural Patterns and Design Principles
• Even though this is not an object-oriented service architecture, emphasize that the project follows a modular approach. Each script represents a self-contained module that can be run independently.
• The use of command line parameters (clearly outlined in each script’s usage instructions in the README) means that the design supports flexibility and reusability.
• External dependencies are decoupled – the scripts are wrappers around tools such as bedtools and samtools. This shows a layered design where the scripts create a higher-level abstraction over lower-level command line tools.
Incorporate Relevant Technologies and Frameworks
• Python is the main language for most scripts, and R for visualization (R_pairwise_correlation_heatmap.R).
• Command-line interface design (argument parsing) is a common theme. You might annotate that Python’s argparse module (or similar) is central to designing these utilities.