Skip to content

Commit

Permalink
Setup distribution of test data with Meson
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jul 8, 2024
1 parent 864eff4 commit 0942dc1
Show file tree
Hide file tree
Showing 16 changed files with 193 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/easel/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ easel_sources = [
'interface_lapack.c',
]

easel_lib = library(
easel_lib = static_library(
'easel',
easel_sources,
dependencies : [math, threads, mpi],
Expand Down
2 changes: 1 addition & 1 deletion lib/hmmer/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ hmmer_sources = [
'fm_ssv.c'
]

hmmer_lib = library(
hmmer_lib = static_library(
'hmmer',
[hmmer_sources, impl_sources],
dependencies : [math, threads, mpi, easel_dep],
Expand Down
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ destatic = generator(
)

subdir('lib')
# subdir('include')
subdir('pyhmmer')
12 changes: 12 additions & 0 deletions pyhmmer/tests/data/hmms/bin/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sources = [
'PF02826.h3m',
'PKSI-AT.h3m',
'RF00001.h3m',
'RREFam.h3m',
'Thioesterase.h3m',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'hmms' / 'bin'
)
27 changes: 27 additions & 0 deletions pyhmmer/tests/data/hmms/db/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
sources = [
'PF02826.hmm',
'PF02826.hmm.h3f',
'PF02826.hmm.h3i',
'PF02826.hmm.h3m',
'PF02826.hmm.h3p',
'PKSI-AT.hmm',
'PKSI-AT.hmm.h3f',
'PKSI-AT.hmm.h3i',
'PKSI-AT.hmm.h3m',
'PKSI-AT.hmm.h3p',
'RREFam.hmm',
'RREFam.hmm.h3f',
'RREFam.hmm.h3i',
'RREFam.hmm.h3m',
'RREFam.hmm.h3p',
'Thioesterase.hmm',
'Thioesterase.hmm.h3f',
'Thioesterase.hmm.h3i',
'Thioesterase.hmm.h3m',
'Thioesterase.hmm.h3p',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'hmms' / 'db'
)
4 changes: 4 additions & 0 deletions pyhmmer/tests/data/hmms/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
subdir('bin')
subdir('db')
subdir('txt')
subdir('txt2')
16 changes: 16 additions & 0 deletions pyhmmer/tests/data/hmms/txt/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sources = [
'bmyD.hmm',
'KR.hmm',
'laccase.hmm',
'LuxC.hmm',
'PF02826.hmm',
'PKSI-AT.hmm',
'RF00001.hmm',
'RREFam.hmm',
'Thioesterase.hmm',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'hmms' / 'txt'
)
9 changes: 9 additions & 0 deletions pyhmmer/tests/data/hmms/txt2/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sources = [
'RREFam.hmm2',
'Thioesterase.hmm2',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'hmms' / 'txt2'
)
17 changes: 17 additions & 0 deletions pyhmmer/tests/data/jackhmmer/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sources = [
'KR-1_bkup.sto',
'KR-1.sto',
'KR-2.sto',
'KR-3.sto',
'KR-4.sto',
'KR-5.sto',
'KR-6.sto',
'p12748-1.sto',
'p12748-2.sto',
'p12748-3.sto',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'jackhmmer'
)
5 changes: 5 additions & 0 deletions pyhmmer/tests/data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
subdir('hmms')
subdir('jackhmmer')
subdir('msa')
subdir('seqs')
subdir('tables')
11 changes: 11 additions & 0 deletions pyhmmer/tests/data/msa/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sources = [
'laccase.clw',
'LuxC.faa',
'LuxC.hmmalign.sto',
'LuxC.sto',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'msa'
)
15 changes: 15 additions & 0 deletions pyhmmer/tests/data/seqs/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sources = [
'1390.SAMEA104415756.OFHT01000022.fna',
'1390.SAMEA104415756.OFHT01000024.fna',
'938293.PRJEB85.HG003687.faa',
'BGC0001090.gbk',
'bmyD.fna',
'CP040672.1.genes_100.fna',
'LuxC.faa',
'PKSI.faa',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'seqs'
)
16 changes: 16 additions & 0 deletions pyhmmer/tests/data/tables/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sources = [
'A0A089QRB9.domtbl',
'bmyD1.tbl',
'bmyD2.tbl',
'bmyD3.tbl',
'PF02826.domtbl',
'PF02826.tbl',
'RREFam.domtbl',
'RREFam.scan.tbl',
'RREFam.tbl',
]

python.install_sources(
sources,
subdir : 'pyhmmer' / 'tests' / 'data' / 'tables'
)
17 changes: 17 additions & 0 deletions pyhmmer/tests/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
python_sources = [
'__init__.py',
'requirements.txt',
'test_doctest.py',
'test_errors.py',
'test_hmmer.py',
'utils.py',
]

python.install_sources(
python_sources,
subdir : 'pyhmmer' / 'tests',
)

subdir('data')
subdir('test_easel')
subdir('test_plan7')
21 changes: 21 additions & 0 deletions pyhmmer/tests/test_easel/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
python_sources = [
'__init__.py',
'test_alphabet.py',
'test_bitfield.py',
'test_block.py',
'test_gencode.py',
'test_keyhash.py',
'test_matrix.py',
'test_msa.py',
'test_msafile.py',
'test_randomness.py',
'test_sequence.py',
'test_sequencefile.py',
'test_ssi.py',
'test_vector.py',
]

python.install_sources(
python_sources,
subdir : 'pyhmmer' / 'tests' / 'test_easel',
)
21 changes: 21 additions & 0 deletions pyhmmer/tests/test_plan7/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
python_sources = [
'__init__.py',
'test_alignment.py',
'test_background.py',
'test_block.py',
'test_builder.py',
'test_hit.py',
'test_hmm.py',
'test_hmmfile.py',
'test_optimizedprofile.py',
'test_pipeline.py',
'test_profile.py',
'test_tophits.py',
'test_tracealigner.py',
'test_traces.py',
]

python.install_sources(
python_sources,
subdir : 'pyhmmer' / 'tests' / 'test_plan7',
)

0 comments on commit 0942dc1

Please sign in to comment.