Skip to content

Commit

Permalink
adding easyconfigs: HapCUT2-v1.3.3-GCC-12.3.0.eb and patches: HAPcut-…
Browse files Browse the repository at this point in the history
…v1.3.3-Fix-Makefile.patch
  • Loading branch information
alberta committed Apr 17, 2024
1 parent aed45af commit e10cdfe
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
11 changes: 11 additions & 0 deletions easybuild/easyconfigs/h/HapCUT2/HAPcut-v1.3.3-Fix-Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- HapCUT2/Makefile 2024-04-17 10:17:10.000000000 +0200
+++ HapCUT2.OK/Makefile 2024-04-17 09:41:47.000000000 +0200
@@ -8,7 +8,7 @@
B=build
H=hairs-src
X=hapcut2-src
-HTSLIB=htslib #/usr/common/src/htslib #path/to/htslib/
+HTSLIB=${EBROOTHTSLIB}
T=test
# below is the path to CUnit directory, change if need be
CUNIT=/usr/include/CUnit
78 changes: 78 additions & 0 deletions easybuild/easyconfigs/h/HapCUT2/HapCUT2-v1.3.3-GCC-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
easyblock = 'MakeCp'
name = 'HapCUT2'
version = 'v1.3.3'

homepage = 'https://github.com/vibansal/HapCUT2/'
description = """
HapCUT2 is a maximum-likelihood-based tool for assembling haplotypes from DNA sequence reads,
designed to "just work" with excellent speed and accuracy.
We found that previously described haplotype assembly methods are specialized for specific read technologies or
protocols,
with slow or inaccurate performance on others.
With this in mind, HapCUT2 is designed for speed and accuracy across diverse sequencing technologies,
including but not limited to:
- NGS short reads (Illumina HiSeq)
- single-molecule long reads (PacBio and Oxford Nanopore)
- Linked-Reads (e.g. 10X Genomics, stLFR or TELL-seq)
- proximity-ligation (Hi-C) reads
- high-coverage sequencing (>40x coverage-per-SNP) using above technologies
- combinations of the above technologies (e.g. scaffold long reads with Hi-C reads)
"""

toolchain = {'name': 'GCC', 'version': '12.3.0'}
builddependencies = [
('HTSlib', '1.18'),
]

# source_urls = ['https://github.com/vibansal/HapCUT2/archive/refs/tags/']
# sources = ['%(version)s.tar.gz']

download_instructions = """
The last version tag v1.3.3 does not include last modification that make it work.
So we download source from master branch at the commit where I tested.
"""
sources = [{
'filename': '%(version)s.tar.gz',
'git_config': {
'url': 'https://github.com/vibansal/',
'repo_name': 'HapCUT2',
'commit': '0eb7075',
'recursive': True,
'keep_git_dir': True,
},
}]
patches = [
'HAPcut-v1.3.3-Fix-Makefile.patch',
]
checksums = [
{'v1.3.3.tar.gz': '4ff42519d7f9ed8159d41adc94bff7c600145424f5b501b1ece7930cfdd74e9f'},
{'HAPcut-v1.3.3-Fix-Makefile.patch': 'a02432d254cc050f4c6d105ccda6edc3097e6bdbbbc68c0d50a9548bfdb6273c'},
]

configure_cmd = ""
skipsteps = ['configure']

dependencies = [
('HTSlib', '1.18'),
]

files_to_copy = [
(['build/HAPCUT2', 'build/extractHAIRS'], 'bin'),
]

sanity_check_paths = {
'files': [
'bin/HAPCUT2',
'bin/extractHAIRS',
],
'dirs': [
'bin',
]
}

sanity_check_commands = [
'cd %(installdir)s/bin/ && HAPCUT2',
]

moduleclass = 'bio'

0 comments on commit e10cdfe

Please sign in to comment.