Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{chem}[foss/2022a] chemprop v1.5.2, RDKit v2022.09.4 w/ Python 3.10.4 #17261

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions easybuild/easyconfigs/c/chemprop/chemprop-1.5.2-foss-2022a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
easyblock = 'PythonBundle'

name = 'chemprop'
version = '1.5.2'

homepage = 'https://github.com/chemprop/chemprop'
description = 'Message Passing Neural Networks for Molecule Property Prediction'

toolchain = {'name': 'foss', 'version': '2022a'}

dependencies = {
('Python', '3.10.4'),
('SciPy-bundle', '2022.05'),
('scikit-learn', '1.1.2'),
('tensorboardX', '2.5.1'),
('xarray', '2022.6.0'),
('Hyperopt', '0.2.7'),
('Flask', '2.2.2'),
('PyTorch', '1.12.0'),
('matplotlib', '3.5.2'),
('RDKit', '2022.09.4')
}

use_pip = True
sanity_pip_check = True

exts_list = [
('packaging', '20.4', {
'checksums': ['4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8'],
}),
('pandas_flavor', '0.2.0', {
'checksums': ['7871655816de22dc766e916697ccc67449e1863c090ef5fd40d4d0fbd056e489'],
}),
('mypy_extensions', '1.0.0', {
'checksums': ['75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782'],
}),
('typing_inspect', '0.8.0', {
'checksums': ['8b1ff0c400943b6145df8119c41c244ca8207f1f10c9c057aeed1560e4806e3d'],
}),
('typed-argument-parser', '1.7.2', {
'modulename': 'tap',
'checksums': ['4e44bc79010391cd9dec4b110e1474fedc8919138e93ca91222ea6b3b360daee'],
}),
(name, version, {
'source_urls': ['https://github.com/chemprop/chemprop/archive/refs/tags/'],
'sources': ['v%(version)s.tar.gz'],
'checksums': ['7ce6f71688291ffbe45728a605be9fda354f4cc30410bbe64511cd1a55b9bfb8'],
}),
]

moduleclass = 'chem'
77 changes: 77 additions & 0 deletions easybuild/easyconfigs/r/RDKit/RDKit-2022.09.4-foss-2022a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
easyblock = 'CMakeMake'

name = 'RDKit'
version = '2022.09.4'

homepage = 'https://www.rdkit.org'
description = "RDKit is a collection of cheminformatics and machine-learning software written in C++ and Python."

toolchain = {'name': 'foss', 'version': '2022a'}
# avoid failing tests on skylake CPUs. comment out this line when building on CPUs that don't support AVX2
# see also: https://github.com/rdkit/rdkit/issues/1674
toolchainopts = {'optarch': 'mavx2', 'cstd': 'c++11'}

source_urls = ['https://github.com/rdkit/rdkit/archive/']
sources = ['Release_%s.tar.gz' % version.replace('.', '_')]
patches = [
'RDKit-2021.03.4_skip-broken-test.patch',
]
checksums = [
{'Release_2022_09_4.tar.gz': 'edd30682cc3031cf3f2b1a400f453629db332a1018f355cd3f7ff76b2f7f5398'},
{'RDKit-2021.03.4_skip-broken-test.patch': '45869e01461b66e42c9305f5e8a65f696417e4777c2da60ef81d1e26e57d1b2e'},
]

# Dependencies varies from version to version
# https://rdkit.readthedocs.io/en/latest/Install.html#installing-prerequisites-from-source
builddependencies = [
('CMake', '3.24.3'),
('Eigen', '3.4.0'),
('pkgconf', '1.8.0'),
]
dependencies = [
('Python', '3.10.4'),
('SciPy-bundle', '2022.05'),
('SQLite', '3.38.3'),
('matplotlib', '3.5.2'),
('Pillow', '9.1.1'),
('Boost.Python', '1.79.0'),
('cairo', '1.17.4'),
]

separate_build_dir = True

configopts = "-DPy_ENABLE_SHARED=1 -DRDK_INSTALL_STATIC_LIBS=OFF -DRDK_INSTALL_INTREE=OFF "
configopts += "-DRDK_BUILD_INCHI_SUPPORT=ON "
configopts += "-DBoost_INCLUDE_DIR=$EBROOTBOOST/include -DBoost_LIBRARY_DIR_RELEASE=$EBROOTBOOST/lib "

# merge source directory into build directory in order to run the tests
buildopts = '&& cp -RT %(builddir)s/%(namelower)s-*/ ./ && '
buildopts += 'export RDBASE=$PWD && export PYTHONPATH=$PWD:$PYTHONPATH && '

# Specify path for libraries so that they are found during the tests when the module is built with --rpath flag.
buildopts += 'export LD_LIBRARY_PATH=%(builddir)s/easybuild_obj/lib:${LD_LIBRARY_PATH} && '

# 'ctest' allows to pass additional arguments opposed to 'make test'
buildopts += 'ctest --output-on-failure'

local_libs = ['Alignment', 'Catalogs', 'ChemicalFeatures', 'ChemReactions', 'ChemTransforms', 'coordgen', 'DataStructs',
'Depictor', 'Descriptors', 'DistGeometry', 'DistGeomHelpers', 'EigenSolvers', 'FileParsers',
'FilterCatalog', 'Fingerprints', 'FMCS', 'ForceFieldHelpers', 'ForceField', 'FragCatalog', 'GraphMol',
'hc', 'InfoTheory', 'maeparser', 'MMPA', 'MolAlign', 'MolCatalog', 'MolChemicalFeatures', 'MolDraw2D',
'MolHash', 'MolInterchange', 'MolStandardize', 'MolTransforms', 'Optimizer', 'PartialCharges', 'RDBoost',
'RDGeneral', 'RDGeometryLib', 'RDStreams', 'ReducedGraphs', 'RGroupDecomposition', 'RingDecomposerLib',
'ScaffoldNetwork', 'ShapeHelpers', 'SimDivPickers', 'SLNParse', 'SmilesParse', 'Subgraphs',
'SubstructLibrary', 'SubstructMatch', 'Trajectory']

sanity_check_paths = {
'files': ['lib/libRDKit%s.%s' % (x, SHLIB_EXT) for x in local_libs],
'dirs': ['include/rdkit', 'lib/python%(pyshortver)s/site-packages/rdkit'],
}

sanity_check_commands = [
"python -c 'import rdkit.rdBase'",
]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'chem'