Version: 1.0.0
The PG Exome Depth Tool wraps a python graphical interface to call copy-number variations (CNV) from exome-based sequencing data using Exome Depth. This tool guides you through naming your analysis, selecting the folders containing your reference and test BAM files, and then executes an R script to perform the analysis.
- User-Friendly GUI: Built with Tkinter, the GUI provides simple dialogs to collect user inputs.
- Logging: Execution details (including username and timestamp) are automatically logged for regulatory compliance.
- R Integration: Calls the Exome Depth R script to run the core analysis.
- Interactive Workflow: Guides the user through:
- Naming the analysis.
- Selecting the reference folder (with BAM files having an average copy number of 2).
- Selecting the test folder containing BAM files.
- Results Storage: Analysis results are stored in a dedicated folder within the project.
- Python 3.6+
- R: Must be installed and available on your systemβs PATH.
- Non-standard Python Libraries:
tkinter(usually included with Python)Pillow(for image handling)
- Operating System: Windows is recommended, given the use of
RScript.exe.
-
Clone the Repository:
git clone [https://github.com/yourusername/pg-exomedepth-tool.git](https://github.com/vplagnol/ExomeDepth.git) cd pg-exomedepth-tool -
Set Up a Virtual Environment (Optional but Recommended):
python -m venv env # On Windows: env\Scripts\activate # On macOS/Linux: source env/bin/activate
-
Install Required Python Packages:
pip install Pillow
-
Ensure R is Installed:
- Download and install R from CRAN.
- Make sure
RScript.exeis added to your system's PATH so that the Python script can invoke it.
-
Run the Application:
Execute the main Python script from your terminal or command prompt:
python your_script_name.py
Replace
your_script_name.pywith the actual name of your Python file. -
Follow the On-Screen Prompts:
- Name Your Analysis: Enter a descriptive name when prompted.
- Select Reference Folder: Choose the folder that contains your reference BAM files.
- Select Test Folder: Choose the folder containing the test BAM files for analysis.
-
Analysis Execution:
- Results are stored in the
app_data/cnv_results/folder within a subfolder named after your analysis.
- Results are stored in the
pg-exomedepth-tool/
βββ app_data/
β βββ run_logs/ # Contains log files for each execution
β βββ cnv_results/ # Contains analysis results (CNV outputs)
β βββ pg_logo.png # Logo image displayed in the GUI
β βββ PG_exomedepth.r # R script for performing the analysis
β βββ path_file.txt # Stores user inputs (analysis name, folder paths)
βββ PG_ExomeDepth_application.py # Main Python script for running the tool