Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Léo HENCHES
jass
Commits
45a6cfcd
Commit
45a6cfcd
authored
1 month ago
by
Veronique Legrand
Browse files
Options
Downloads
Patches
Plain Diff
added test for get_inittable_metadata function that seems to cause a problem in production
parent
a04ea1a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/test/test_init_table.py
+8
-1
8 additions, 1 deletion
jass/test/test_init_table.py
with
8 additions
and
1 deletion
jass/test/test_init_table.py
+
8
−
1
View file @
45a6cfcd
...
@@ -6,7 +6,7 @@ import os, shutil, tempfile
...
@@ -6,7 +6,7 @@ import os, shutil, tempfile
from
pandas.testing
import
assert_frame_equal
from
pandas.testing
import
assert_frame_equal
from
pandas
import
read_hdf
from
pandas
import
read_hdf
from
jass.models.inittable
import
create_inittable_file
from
jass.models.inittable
import
create_inittable_file
,
get_inittable_meta
from
.
import
JassTestCase
from
.
import
JassTestCase
...
@@ -68,6 +68,13 @@ class TestInitTable(object):
...
@@ -68,6 +68,13 @@ class TestInitTable(object):
"""
"""
assert_frame_equal
(
self
.
expected_cov
,
self
.
result_cov
,
check_like
=
True
)
assert_frame_equal
(
self
.
expected_cov
,
self
.
result_cov
,
check_like
=
True
)
def
test_get_inittable_meta
(
self
):
m_data
=
get_inittable_meta
(
self
.
get_file_path_fn
(
"
initTable.hdf5
"
))
self
.
assertEqual
(
m_data
[
'
nb_snps
'
],
737
)
self
.
assertEqual
(
m_data
[
'
nb_phenotypes
'
],
4
)
self
.
assertEqual
(
m_data
[
'
assembly
'
],
'
hg99
'
)
self
.
assertEqual
(
m_data
[
'
name
'
],
'
Small subset of Curated GWAS data
'
)
#print(m_data)
class
TestInitTableNoNans
(
TestInitTable
,
JassTestCase
):
class
TestInitTableNoNans
(
TestInitTable
,
JassTestCase
):
computed_cov
=
True
computed_cov
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment