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

{bio}[foss/2023a] UFCG v1.0.6 #22223

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
45 changes: 45 additions & 0 deletions easybuild/easyconfigs/u/UFCG/UFCG-1.0.6-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
easyblock = 'Binary'

name = 'UFCG'
version = '1.0.6'

homepage = 'https://github.com/steineggerlab/ufcg/'
description = """UFCG pipeline provides methods for a genome-wide taxonomic profiling
and annotation of your own biological sequences of Fungi."""

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

source_urls = ['https://github.com/steineggerlab/ufcg/archive/']
sources = [{'download_filename': 'v%(version)s.tar.gz', 'filename': SOURCE_TAR_GZ}]
patches = ['%(name)s-%(version)s_fix-ping.patch']
checksums = [
{'UFCG-1.0.6.tar.gz': '6641dd636c7f13f3e754163a50e3eda9e1d9b0ebad8eaa42422acaa410210bc7'},
{'UFCG-1.0.6_fix-ping.patch': 'd5419a8fdbf8177f39b0fb4888418cb7261b3a758f7164fdc2252e96d5aea307'},
]

builddependencies = [
('Maven', '3.9.7', '', SYSTEM),
]
dependencies = [
('Java', '11', '', SYSTEM),
('AUGUSTUS', '3.5.0'),
('MMseqs2', '14-7e284'),
('MAFFT', '7.520', '-with-extensions'),
('IQ-TREE', '2.3.5'),
]

extract_sources = True

install_cmds = [
'mvn clean package appassembler:assemble',
'cp -r %(start_dir)s/target/* %(installdir)s',
'%(installdir)s/bin/ufcg download -t minimum',
]

sanity_check_paths = {
'files': ['%(namelower)s-%(version)s.jar', 'bin/%(namelower)s'],
'dirs': ['bin', 'repo', 'classes'],
}
sanity_check_commands = ['%(namelower)s -h']

moduleclass = 'bio'
15 changes: 15 additions & 0 deletions easybuild/easyconfigs/u/UFCG/UFCG-1.0.6_fix-ping.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Fix function internetConnection to prevent run ping and internet connection error.
https://github.com/steineggerlab/ufcg/blob/cf9cfe3c2950c8d17447864da4574014db5a90f7/src/module/DownloadModule.java#L121
--- src/module/DownloadModule.java.orig 2025-01-28 18:06:36.553823000 +0100
+++ src/module/DownloadModule.java 2025-01-28 18:28:36.023487000 +0100
@@ -119,9 +119,7 @@
}

private boolean internetConnection(){
- String[] raw = Shell.exec(String.format("ping -c 1 -W %d ufcg.steineggerlab.workers.dev", GenericConfig.OS.equals("Linux") ? 1 : 1000), true, 0);
- if(raw == null || raw.length < 2) return false;
- return raw[raw.length - 2].contains(GenericConfig.OS.equals("Linux") ? "1 received" : "1 packets received");
+ return true;
}
private void printManual() {
System.out.println(ANSIHandler.wrapper(" UFCG - download", 'G'));