From 341814112ea0213f5860b665207b74573ce543ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Agostinho=20de=20Sousa?= Date: Fri, 17 Oct 2025 08:55:22 +0200 Subject: [PATCH] Add Rosetta v3.15 for x86 and ARM --- Rosetta/README.md | 19 +++---------------- Rosetta/build | 22 +++++++++++----------- Rosetta/files/config.yaml | 33 ++++++++++++++++++++++++++++++--- Rosetta/modulefile | 31 ++++++++++--------------------- 4 files changed, 54 insertions(+), 51 deletions(-) diff --git a/Rosetta/README.md b/Rosetta/README.md index 307ad55..879ef98 100644 --- a/Rosetta/README.md +++ b/Rosetta/README.md @@ -1,18 +1,5 @@ -### Rosetta installation remarks: +# Rosetta -As of July 2024, phenix 1.21 exists, and also Rosetta 3.14. These do not work together , as phenix/1.21.1 misses a file called command_line.py , which is existent in phenix 1.20 and is required for Rosetta. Also the compilation of phenix+Rosetta fails on RH7, so def needs to be done on RH8 nodes (Ra) and Rosetta 3.14 fails during compilation. --> check for new phenix releases if the compatabilty with Rosetta latest release was tested etc . - -As a result, phenix/1.20 plus Rosetta 3.13 is used. (July 2024) - -The installation of Rosetta +phenix requires a fully functional new phenix installation. A phenix command is run after the installation of Rosetta that builds the interface between the two: - - Install phenix ( see phenix ) - - Install Rosetta as usual (see Pmodules MX Rosetta build script) - - copy the site.settings file into the correct folder as described in "NOTE: On linux, if you are using GCC 5.1 or later (Ubuntu 16.04 or later), there is an ABI change that requires an additional flag to allow linking between our CentOS 6 binary build and Rosetta. To apply this flag, copy this site.settings file to ${PHENIX_ROSETTA_PATH}/main/source/tools/build/site.settings before running this final step" "(https://phenix-online.org/documentation/reference/rosetta_install.html) - - then run the command - - rosetta.build_phenix_interface nproc=10 - - - run rosetta.run_tests to test it. - - IMPORTANT, both phenix and rosetta need to have the same file permisssions /owner as described in the phenix readme. In both cases the recommendation is to do it as -adm account on /afs/psi.ch/group/HPCE/user/xxx and then run the installation from there (RH8 needed, RA therefore ) +The Rosetta software suite includes algorithms for computational modeling and analysis of protein structures. It has enabled notable scientific advances in computational biology, including de novo protein design, enzyme design, ligand docking, and structure prediction of biological macromolecules and macromolecular complexes. +https://github.com/RosettaCommons/rosetta diff --git a/Rosetta/build b/Rosetta/build index b724eea..b689a8d 100755 --- a/Rosetta/build +++ b/Rosetta/build @@ -1,21 +1,21 @@ #!/usr/bin/env modbuild -pbuild::prep(){ - : -} - -pbuild::configure(){ +pbuild::configure() { : } pbuild::compile() { - : + cd "$SRC_DIR/main/source" || exit 1 + ./scons.py -j10 mode=release bin } pbuild::install() { - mkdir "$PREFIX" - cd "$PREFIX" - tar -xf "${PMODULES_DISTFILESDIR}/Rosetta-${V}.tgz" --strip-components=1 + # Copy the contents of the source code into + cp -r "$SRC_DIR/main/"* "$PREFIX/" + + # Ensure target directory exists + mkdir -p "$PREFIX/bin" + + # Copy compiled binaries to the installation directory + install -m 755 "$SRC_DIR/main/source/bin/"* "$PREFIX/bin/" } - - diff --git a/Rosetta/files/config.yaml b/Rosetta/files/config.yaml index 29c46a9..7b06138 100644 --- a/Rosetta/files/config.yaml +++ b/Rosetta/files/config.yaml @@ -1,3 +1,5 @@ +--- +# yamllint disable rule:line-length format: 1 Rosetta: defaults: @@ -5,7 +7,32 @@ Rosetta: overlay: base relstage: unstable urls: - - url: https://www.rosettacommons.org/downloads/academic/3.13/rosetta_bin_linux_3.13_bundle.tgz - name: Rosetta-${V}.tgz + - url: https://downloads.rosettacommons.org/downloads/academic/${V_PKG}/rosetta_source_${V_PKG}_bundle.tar.bz2 + + shasums: + rosetta_source_3.15_bundle.tar.bz2: ac4665fb0173ac1e1ed060d4a894964d14a32aba49e3ee2f3f50e83c26ba0fb1 + versions: - 3.13: + 3.15: + variants: + - overlay: base + systems: [.*.merlin7.psi.ch] + target_cpus: [x86_64] + relstage: unstable + build_requires: + - gcc/12.3.0 + - Python/3.9.21 + runtime_deps: + - gcc/12.3.0 + - Python/3.9.21 + - overlay: base + target_cpus: [aarch64] + systems: [gpu0.*.merlin7.psi.ch] + relstage: unstable + build_requires: + - gcc/12.3.0 + - Python/3.9.21 + runtime_deps: + - gcc/12.3.0 + - Python/3.9.21 + diff --git a/Rosetta/modulefile b/Rosetta/modulefile index f886883..b49a23a 100644 --- a/Rosetta/modulefile +++ b/Rosetta/modulefile @@ -1,25 +1,14 @@ #%Module1.0 -module-whatis "Rosetta™ is a molecular modeling software package for understanding protein structures, protein design, protein docking, protein-DNA and protein-protein interactions." -module-url "https://www.rosettacommons.org/home" -module-license "Academic License" -module-maintainer "greta.assmann@psi.ch>" +module-whatis "The Rosetta software suite includes algorithms for computational modeling and analysis of protein structures" +module-url "https://github.com/RosettaCommons/rosetta" +module-license "Rosetta Software Non-Commercial License Agreement (https://github.com/RosettaCommons/rosetta?tab=License-1-ov-file)" +module-maintainer "João Pedro Agostinho de Sousa " -module-help " -The Rosetta software suite includes algorithms for computational modeling and analysis of protein structures. It has enabled notable scientific advances in computational biology, including de novo protein design, enzyme design, ligand docking, and structure prediction of biological macromolecules and macromolecular complexes -. - -Rosetta development began in the laboratory of Dr. David Baker at the University of Washington as a structure prediction tool but since then has been adapted to solve common computational macromolecular problems. - -Development of Rosetta has moved beyond the University of Washington into the members of RosettaCommons, which include government laboratories, institutes, research centers, and partner corporations. - -The Rosetta community has many goals for the software, such as: - - Understanding macromolecular interactions - Designing custom molecules - Developing efficient ways to search conformation and sequence space - Finding a broadly useful energy functions for various biomolecular representations +module-help " +The Rosetta software suite includes algorithms for computational modeling and +analysis of protein structures. It has enabled notable scientific advances in +computational biology, including de novo protein design, enzyme design, ligand +docking, and structure prediction of biological macromolecules and +macromolecular complexes. " - -prepend-path PHENIX_ROSETTA_PATH $PREFIX - -- 2.49.1