Search Docs by Keyword
Macaulay2
Description
Macaulay2 is a algebraic geometry and commutative algebra software. Its creation and development has been funded by the National Science Foundation since 1992.
Macaulay2 on the cluster
Create a Singularity container
Macaulay2 is available on the cluster via Singularity containers. We recommend working on a compute node. You can get to a compute node by requesting an interactive job. For example
salloc --partition test --time 01:00:00 --cpus-per-task 4 --mem-per-cpu 2G
You can pull (i.e. download) the Macaulay2 container from DockerHub with the command
singularity pull docker://unlhcc/macaulay2:latest
If you get this error
FATAL: While making image from oci registry: error fetching image: failed to get checksum for docker://unlhcc/macaulay2:latest
You will need to create a DockerHub account, then run the following singularity pull command. It will prompt for your DockerHub username and password:
singularity pull --docker-login docker://unlhcc/macaulay2:latest Enter Docker/OCI registry username: Enter Docker / OCI registry password:
Run Macaulay2
Start a shell inside the Singularity container
singularity shell macaulay2_latest.sif
The prompt will change to Singularity>. Then, type M2 to start Macualay2. You should see a prompt with i1:
Singularity> M2 Macaulay2, version 1.24.05 --storing configuration for package FourTiTwo in /n/home01/jharvard/.Macaulay2/init-FourTiTwo.m2 --storing configuration for package Topcom in /n/home01/jharvard/.Macaulay2/init-Topcom.m2 with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, LLLBases, PrimaryDecomposition, ReesAlgebra, TangentCone, Truncations i1 :
For Macaulay2 examples, visit Macaulay2 documentation.
For more details on how to use Singularity on the cluster, see FASRC’s Singularity documentation.
