Skip to content

Commit

Permalink
#436 Mates prePR
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed Nov 27, 2024
1 parent b2a4159 commit cb55a24
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 0 deletions.
40 changes: 40 additions & 0 deletions 463_MATES/anndata-2023b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
easyblock = 'PythonBundle'

name = 'anndata'
version = '0.11.1'

homepage = 'https://github.com/scverse/anndata'
description = """anndata is a Python package for handling annotated data matrices in memory and on disk,
positioned between pandas and xarray"""

toolchain = {'name': 'foss', 'version': '2023b'}

builddependencies = [
('hatchling', '1.18.0'),
]

dependencies = [
('Python', '3.11.5'),
('Python-bundle-PyPI', '2023.10'),
('SciPy-bundle', '2023.11'),
('h5py', '3.11.0'),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('array_api_compat', '1.9.1', {
'checksums': ['17bab828c93c79a5bb8b867145b71fcb889686607c5672b060aef437e0359ea8'],
}),
('natsort', '8.4.0', {
'checksums': ['45312c4a0e5507593da193dedd04abb1469253b601ecaf63445ad80f0a1ea581'],
}),
(name, version, {
'checksums': ['36bff9a85276fc5f1b9fd01f15aff9aa49408129985f42e0fca4e2c5b7fa909f'],
}),
]

sanity_check_commands = ["natsort --help"]

moduleclass = 'bio'
53 changes: 53 additions & 0 deletions 463_MATES/bedTools-2023b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Author: Maxime Schmitt, University of Luxembourg
# Author: Adam Huffman, The Francis Crick Institute
#
# Based on the work of: Pablo Escobar Lopez
# Swiss Institute of Bioinformatics (SIB)
# Biozentrum - University of Basel

easyblock = 'MakeCp'

name = 'BEDTools'
version = '2.31.1'

homepage = 'https://bedtools.readthedocs.io/'
description = """BEDTools: a powerful toolset for genome arithmetic.
The BEDTools utilities allow one to address common genomics tasks such as finding feature overlaps and
computing coverage.
The utilities are largely based on four widely-used file formats: BED, GFF/GTF, VCF, and SAM/BAM."""

toolchain = {'name': 'GCC', 'version': '13.2.0'}

source_urls = ['https://github.com/arq5x/bedtools2/archive/refs/tags/']
sources = ['v%(version)s.tar.gz']
checksums = ['79a1ba318d309f4e74bfa74258b73ef578dccb1045e270998d7fe9da9f43a50e']

builddependencies = [
('Python', '3.11.5'),
]
dependencies = [
('XZ', '5.4.4'),
('zlib', '1.2.13'),
('bzip2', '1.0.8'),
('BamTools', '2.5.2'),
]

buildopts = 'CXX="$CXX"'

files_to_copy = [
'bin',
'docs',
'data',
'genomes',
'scripts',
'test',
]

sanity_check_paths = {
'files': ['bin/%s' % x for x in ['bedtools', 'pairToBed', 'mergeBed', 'bedToBam', 'fastaFromBed']],
'dirs': files_to_copy,
}

sanity_check_commands = ['%(namelower)s --help']

moduleclass = 'bio'
63 changes: 63 additions & 0 deletions 463_MATES/mates.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
easyblock = 'PythonBundle'

name = 'MATES'
version = '0.1.5-20241121'
local_commit = '3846ad5'

homepage = 'https://github.com/mcgilldinglab/MATES'
description = "A Deep Learning-Based Model for Quantifying Transposable Elements in Single-Cell Sequencing Data."

toolchain = {'name': 'foss', 'version': '2023b'}

# DPES:
# OK "matplotlib==3.7.2",
# OK "numpy==1.25.2",
# OK "pandas==2.0.0",
# OK CREATED "pybedtools==0.10.0",
# OK "pysam==0.22.1",
# OK "scipy==1.11.2",
# OK "torch==2.0.0",
# OK "tqdm==4.66.1",
# ok "pyranges==0.0.129",
# OK CREATED "anndata==0.8.0"

dependencies = [
('Python', '3.11.5'),
('Python-bundle-PyPI', '2023.10'),
('SciPy-bundle', '2023.11'),
('matplotlib', '3.8.2'),
('anndata', '0.11.1'),
('pybedtools', '0.10.0'),
('PyTorch', '2.1.2'),
('Pysam', '0.22.0'),
('tqdm', '4.66.2'),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('sorted_nearest', '0.0.39', {
'checksums': ['16a51d5db87ae226b47ace43c176bb672477a1b7ba8052ea9291a6356c9c69b1'],
}),
('ncls', '0.0.68', {
'checksums': ['81aaa5abb123bb21797ed2f8ef921e20222db14a3ecbc61ccf447532f2b7ba93'],
}),
('pyranges', '0.0.129', {
'checksums': ['bee83b4fad0062be9586668c6b0fc4270d5e761951975e018202993680071fb3'],
}),
(name, version, {
'modulename': 'MATES',
'preinstallopts': """sed -i 's/==.*//g' requirements.txt && sed -i 's/==.*/\",/g' setup.py && """,
'source_urls': ['https://github.com/mcgilldinglab/MATES/archive'],
'sources': [{'download_filename': '3846ad5.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}],
'checksums': ['40fbb87dd72ca4c9e5347f2e984f9c0a0caa817d4eee692476be71e733e76f61'],
}),
]

sanity_check_commands = [
"python -c 'from MATES import bam_processor, data_processor, MATES_model'",
"python -c 'from MATES import TE_quantifier, TE_quantifier_LongRead, TE_quantifier_Intronic'",
]

moduleclass = 'bio'
27 changes: 27 additions & 0 deletions 463_MATES/pybedtools-2023b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
easyblock = 'PythonBundle'

name = 'pybedtools'
version = '0.10.0'

homepage = 'https://daler.github.io/pybedtools'
description = "pybedtools wraps and extends BEDTools and offers feature-level manipulations from within Python."

toolchain = {'name': 'foss', 'version': '2023b'}

dependencies = [
('Python', '3.11.5'),
('SciPy-bundle', '2023.11'),
('BEDTools', '2.31.1'), # CREATED
('Pysam', '0.22.0'),
]

use_pip = True
sanity_pip_check = True

exts_list = [
(name, version, {
'checksums': ['1a6fbaad23b013becc741d7d5922a2df03e391bc44ff92772ffb7dd456711161'],
}),
]

moduleclass = 'bio'

0 comments on commit cb55a24

Please sign in to comment.