This directory contains a module system for DeepMASC that allows you to run the tools without activating the conda environment or modifying your system PATH permanently.
The easiest way to set this up is to run the setup script:
cd <DeepMASC>/module
./setup.shReplace <DeepMASC> with your actual DeepMASC installation path.
The setup script will:
- Auto-detect your conda installation
- Auto-detect your module system directory
- Configure the wrapper scripts and module files
- Guide you through personal or system-wide installation
deepmasc.tcl- Tcl modulefile for Environment Modulessetup.sh- Interactive setup script (recommended)uninstall.sh- Automatic uninstall scriptINSTALL.md- Detailed installation instructionsbin/deepmasc- Wrapper script for main.py (AutoSelect3D)bin/deepmasc-contour- Wrapper script for contour.py (AutoContour)bin/deepmasc-relion-select- Wrapper for RELION AutoSelect3Dbin/deepmasc-relion-contour- Wrapper for RELION AutoContourbin/deepmasc-relion-eval-mask- Wrapper for RELION Eval Refinement Mask
After installation, you'll have access to:
Standalone Commands:
deepmasc- Run AutoSelect3D to select the best 3D mapdeepmasc-contour- Run AutoContour to generate masks
RELION Integration Commands:
deepmasc-relion-select- AutoSelect3D for RELION GUI (replacesgtf_relion4_run_select_class3d.py)deepmasc-relion-contour- AutoContour for RELION GUI (replacesgtf_relion4_run_autocontour.py)deepmasc-relion-eval-mask- Eval Refinement Mask for RELION GUI (replacesgtf_relion4_run_eval_refinement_mask.py)
./setup.shThe setup script will auto-detect your system configuration and guide you through the installation process.
See INSTALL.md for detailed manual installation instructions if you prefer to configure everything yourself.
# Load the module
module load deepmasc
# AutoSelect3D - Select best map from multiple classes
deepmasc -f examples/Class3D/job016/run_it025_class*.mrc -g 0 -o output
# AutoContour - Generate masks
deepmasc-contour -i examples/Class3D/job016/run_it025_class001.mrc -o mask_output -g 0
# Unload when done
module unload deepmascAfter loading the module, you can use the wrapper commands in RELION's External job:
External Executable: deepmasc-relion-select
Then in RELION GUI:
- Input tab: Set "Input particles" to your
Class3D/jobXXX/run_it025_data.star - Params tab: Add
gpusparameter (e.g.,0or0,1) - Running tab: Set "Number of threads" to
1
External Executable: deepmasc-relion-contour
Then in RELION GUI:
- Input tab: Set "Reference map" to your map file
- Params tab: Add
gpusparameter (e.g.,0) - Running tab: Set "Number of threads" to
1
External Executable: deepmasc-relion-eval-mask
See the main README.md for detailed RELION integration instructions.
- DeepMASC conda environment must be created (
conda env create -f environment.yml) - Environment Modules software must be installed (see INSTALL.md for installation instructions)
If you encounter issues, see the INSTALL.md file for troubleshooting tips, or:
- Verify conda environment exists:
conda env list | grep DeepMASC - Check Python path is correct in the wrapper scripts
- Ensure wrapper scripts are executable:
ls -l bin/ - For modules: Check MODULEPATH includes this directory:
echo $MODULEPATH
You can add more wrapper scripts for other Python scripts in the DeepMASC project:
- Create a new script in
bin/directory - Copy the structure from existing wrapper scripts
- Update the Python script path
- Make it executable:
chmod +x bin/your-new-command
Run the automatic uninstall script:
cd <DeepMASC>/module
./uninstall.shThe script will:
- Auto-detect your installation type (personal or system-wide)
- Remove module files and shell configuration entries
- Provide clear instructions for any manual steps needed
For detailed manual removal instructions, see INSTALL.md.
For more information about DeepMASC itself, see the main README.md in the project root.