|
| 1 | +easyblock = 'Tarball' |
| 2 | + |
| 3 | +name = 'RepeatModeler' |
| 4 | +version = '2.0.7' |
| 5 | + |
| 6 | +homepage = 'https://www.repeatmasker.org/' |
| 7 | +description = """RepeatModeler is a de novo transposable element (TE) family identification and modeling package. """ |
| 8 | + |
| 9 | +toolchain = {'name': 'foss', 'version': '2024a'} |
| 10 | + |
| 11 | +github_account = 'Dfam-consortium' |
| 12 | +source_urls = [GITHUB_SOURCE] |
| 13 | +sources = ['%(version)s.tar.gz'] |
| 14 | +checksums = ['2873697a885e7115bf5e940cf880f47de17efb7a200ec2d3a1627d5a689f7a8f'] |
| 15 | + |
| 16 | +dependencies = [ |
| 17 | + ('Perl', '5.38.2'), |
| 18 | + ('TRF', '4.09.1'), |
| 19 | + ('RMBlast', '2.14.1'), |
| 20 | + ('RepeatMasker', '4.2.1'), |
| 21 | + ('RepeatScout', '1.0.7'), |
| 22 | + ('RECON', '1.08'), |
| 23 | + ('Kent_tools', '479'), |
| 24 | + ('CD-HIT', '4.8.1'), |
| 25 | + # Optional (required for LTR pipeline): |
| 26 | + ('MAFFT', '7.526', '-with-extensions'), |
| 27 | + ('GenomeTools', '1.6.5'), # for LTRHarvest |
| 28 | + ('LTR_retriever', '2.9.0'), # see issue https://github.com/Dfam-consortium/RepeatModeler/issues/257 |
| 29 | + ('TWL-NINJA', '1.00-cluster_only'), |
| 30 | +] |
| 31 | + |
| 32 | +_tmpl = "\"/'%s' =>/,/'value' => '/s|'value' =>.*|'value' => '%s'|\"" |
| 33 | + |
| 34 | +postinstallcmds = [ |
| 35 | + ' '.join([ |
| 36 | + 'sed -i', |
| 37 | + '-e', _tmpl % ('CDHIT_DIR', '$EBROOTCDMINHIT/bin'), |
| 38 | + '-e', _tmpl % ('GENOMETOOLS_DIR', '$EBROOTGENOMETOOLS/bin'), |
| 39 | + '-e', _tmpl % ('LTR_RETRIEVER_DIR', '$EBROOTLTR_RETRIEVER'), |
| 40 | + '-e', _tmpl % ('MAFFT_DIR', '$EBROOTMAFFT/bin'), |
| 41 | + '-e', _tmpl % ('NINJA_DIR', '$EBROOTTWLMINNINJA/bin'), |
| 42 | + '-e', _tmpl % ('RECON_DIR', '$EBROOTRECON/bin'), |
| 43 | + '-e', _tmpl % ('REPEATMASKER_DIR', '$EBROOTREPEATMASKER'), |
| 44 | + '-e', _tmpl % ('RMBLAST_DIR', '$EBROOTRMBLAST/bin'), |
| 45 | + '-e', _tmpl % ('RSCOUT_DIR', '$EBROOTREPEATSCOUT'), |
| 46 | + '-e', _tmpl % ('TRF_DIR', '$EBROOTTRF/bin'), |
| 47 | + '-e', _tmpl % ('UCSCTOOLS_DIR', '$EBROOTKENT_TOOLS/bin'), |
| 48 | + '%(installdir)s/RepModelConfig.pm', |
| 49 | + ]), |
| 50 | +] |
| 51 | + |
| 52 | +_bins = ['BuildDatabase', 'LTRPipeline', 'Refiner', 'RepeatClassifier', 'RepeatModeler', 'TRFMask', |
| 53 | + 'util/CntSubst', 'util/Linup'] |
| 54 | + |
| 55 | +fix_perl_shebang_for = _bins + ['util/*.pl'] |
| 56 | + |
| 57 | +modextrapaths = { |
| 58 | + 'PATH': '', |
| 59 | + 'PERL5LIB': '', |
| 60 | +} |
| 61 | + |
| 62 | +sanity_check_paths = { |
| 63 | + 'files': _bins + ['Job.pm', 'RepeatUtil.pm', 'RepModelConfig.pm'], |
| 64 | + 'dirs': ['Libraries', 'Matrices', 'util'], |
| 65 | +} |
| 66 | + |
| 67 | +sanity_check_commands = ["RepeatModeler -help | grep 'RepeatModeler - Model repetitive DNA'"] |
| 68 | + |
| 69 | +moduleclass = 'bio' |
0 commit comments