Here I created a repository for installing and running the code. I put the instructions step by step: This software allows you to process, visualize, and analyze radiomics datasets without programming knowledge.
Operating System: Windows, macOS, or Linux Python Version: 3.8 or later Required Libraries:
- tkinter
- pandas
- numpy
- scikit-learn
- matplotlib
- seaborn
- Pillow
Step 1: Install Python Download Python from https://www.python.org/downloads/. During installation: Check the box: "Add Python to PATH". Select the Customize installation option and ensure pip is selected. Verify Python installation: Open a terminal or command prompt (you can just write cmd in the search box) Type: python --version If installed correctly, this shows the installed Python version.
- Open a terminal or command prompt.
- Run the following command to install the necessary libraries:
pip install pandas numpy scikit-learn matplotlib seaborn pillow
- Ensure the installation completes without errors.
Copy the provided code into a text editor (e.g., Notepad). Save it as radiomics_analysis.py. Example:
C:\Users\<YourName>\Documents\radiomics_analysis.py
Step 5: Run the Software
- Open a terminal or command prompt.
- Navigate to the folder containing radiomics_analysis.py. For example:
cd C:\Users\<YourName>\Documents
- Run the program:
python radiomics_analysis.py
- The software will launch with a user-friendly graphical interface.
First make it full size
Click Browse to select a radiomics dataset (CSV file). Confirm successful data loading in the popup message.
Variance Threshold: Remove features with low variation across samples (default: 0.01). Correlation Threshold: Remove features that are highly correlated (default: 0.9). Additional Features to Drop: Checkboxes appear if the dataset contains fields like Age, Sex, or BMI.
Select a Metric for Analysis: Feature Importance: Rank features by their contribution to survival prediction. Mutual Information: Identify features most related to survival outcomes. Click Process Data (You need to click only once to the Process Data) you can later change the metric.
Show Results: View a bar chart ranking features by importance or mutual information. Show Scatter Plot: Examine the relationship between the most significant feature and survival time, with a regression line and value. Show Heatmap: Visualize the correlation between top features and survival time.
Click Save Processed Data to export the dataset after feature selection as a CSV file.