A hybrid command-line tool with file dialogs for analyzing mass spectrometry data from Proteome Discoverer (Thermo Fisher) or PEAKS (Bioinformatics Solutions).
It is possible to build a standalone executable of ResiCritic by using the provided build.bat/build.sh scripts or by running the following commands:
# Optional - create a virtual environment
python -m venv .venv
./.venv/Scripts/activate
# Note: "activate" script may appear in .venv/bin, and the appropriate script may have a different file extension depending on your operating system
# Install requirements
pip install -r requirements.txt
# (Optional) Create a standalone executable
pyinstaller --onefile --console --name resicritic __main__.pyThe build scripts additionally install uv as a faster alternative to pip.
An executable version of ResiCritic for 64-bit Windows is available in the Releases section of the project, or built by following the steps above. Alternatively, the script can be run in python after installing the necessary requirements (shown above):
python __main__.py
ResiCritic operates inside a command line, but uses a file dialog for any file loading/saving. Here is a summary of operations:
- ResiCritic prints welcome message with version number, then asks the user for an Excel file to analyze
- User selects Excel document to load, then selects which sheet the data is located using arrow keys (enter to submit)
- If the user has analyzed this document before, a
.pklfile has been saved logging the progress, and the user may return to any step in the process. - Depending on the software and method, the Excel file may contain multiple protein analyses. If only one is found, a confirmation message appears.
- By default, the program looks for "Acetyl" modifications. The user may enter any modification as a string (e.g. Methyl, Oxidation, etc.) as it appears in the Excel
- The program then proceeds through each column with "PSMs" or "#Scans", and requests a FASTA file for each, provided by the user. If a FASTA has already been loaded, the user may select it from the list of loaded FASTAs rather than re-using the file dialog. In some cases, a column will contain data for multiple peptides. In such cases, multiple FASTAs may be selected.
- Once all columns have been prepared, the program presents the user with confirmation of the FASTA selections. The user may at this time edit a single column's chosen FASTAs, completely replace a FASTA file for another, or restart the FASTA selection completely.
- Once the user is satisfied and continues to analysis, the script computes the coverages and modification ratios for the given columns and FASTAs.
- The user is prompted to save the coverages as a
.txtfile (or as a.zipfile containing all coverages) - The user is prompted to save the modification ratio files as a
.tsv(tab-separated values) file (or as a.zipfile containing all coverages) - The program completes! Note the saved files, as well as the
.pklfile which acts as a progress tracker and a sort of verbose log.
This work is part of a project which received support from Environmental Molecular Sciences Laboratory project 61285, a Univ. of Missouri College of Agriculture Joy of Discovery award, DOE grant DE-SC0023142 to JJT, and Hatch Multi-State Project No. 1013013 from the National Institute of Food and Agriculture. Initially cryo-electron microscopy screening was supported by the Kansas University Medical Center Cryo-electron microscopy Facility and the Glacios equipment purchase via S10OD036339-01.