Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
concepts-processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meldb
concepts-processing
Commits
900c4949
Commit
900c4949
authored
4 months ago
by
mjbonifa
Browse files
Options
Downloads
Patches
Plain Diff
fix. removed contributing.md from mkdocs
parent
fd071371
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
acmc/phen.py
+14
-16
14 additions, 16 deletions
acmc/phen.py
acmc/trud.py
+1
-1
1 addition, 1 deletion
acmc/trud.py
docs/mkdocs.yml
+0
-28
0 additions, 28 deletions
docs/mkdocs.yml
mkdocs.yml
+0
-2
0 additions, 2 deletions
mkdocs.yml
with
15 additions
and
47 deletions
acmc/phen.py
+
14
−
16
View file @
900c4949
...
...
@@ -54,7 +54,7 @@ CONFIG_SCHEMA = {
"
version
"
:
{
"
type
"
:
"
string
"
,
"
required
"
:
True
,
"
regex
"
:
r
"
^v\d+\.\d+\.\d+$
"
# Enforces 'vN.N.N' format
"
regex
"
:
r
"
^v\d+\.\d+\.\d+$
"
,
# Enforces 'vN.N.N' format
},
"
omop
"
:
{
"
type
"
:
"
dict
"
,
...
...
@@ -65,9 +65,9 @@ CONFIG_SCHEMA = {
"
vocabulary_reference
"
:
{
"
type
"
:
"
string
"
,
"
required
"
:
True
,
"
regex
"
:
r
"
^https?://.*
"
# Ensures it's a URL
"
regex
"
:
r
"
^https?://.*
"
,
# Ensures it's a URL
},
},
}
},
"
concept_sets
"
:
{
"
type
"
:
"
list
"
,
...
...
@@ -82,12 +82,12 @@ CONFIG_SCHEMA = {
"
schema
"
:
{
"
path
"
:
{
"
type
"
:
"
string
"
,
"
required
"
:
True
},
"
columns
"
:
{
"
type
"
:
"
dict
"
,
"
required
"
:
True
},
"
category
"
:
{
"
type
"
:
"
string
"
},
# Optional but must be string if present
"
category
"
:
{
"
type
"
:
"
string
"
},
# Optional but must be string if present
"
actions
"
:
{
"
type
"
:
"
dict
"
,
"
schema
"
:
{
"
divide_col
"
:
{
"
type
"
:
"
string
"
}
},
"
schema
"
:
{
"
divide_col
"
:
{
"
type
"
:
"
string
"
}},
},
},
},
...
...
@@ -99,6 +99,7 @@ CONFIG_SCHEMA = {
}
}
class
PhenValidationException
(
Exception
):
"""
Custom exception class raised when validation errors in phenotype configuration file
"""
...
...
@@ -320,9 +321,7 @@ def validate(phen_dir):
logger
.
debug
(
"
YAML structure is valid.
"
)
else
:
logger
.
error
(
f
"
YAML structure validation failed:
{
validator
.
errors
}
"
)
raise
Exception
(
f
"
YAML structure validation failed:
{
validator
.
errors
}
"
)
raise
Exception
(
f
"
YAML structure validation failed:
{
validator
.
errors
}
"
)
except
yaml
.
YAMLError
as
e
:
logger
.
error
(
f
"
YAML syntax error:
{
e
}
"
)
raise
e
...
...
@@ -387,7 +386,6 @@ def validate(phen_dir):
if
action
not
in
COL_ACTIONS
:
validation_errors
.
append
(
f
"
Action
{
action
}
is not supported
"
)
if
len
(
validation_errors
)
>
0
:
logger
.
error
(
validation_errors
)
raise
PhenValidationException
(
...
...
This diff is collapsed.
Click to expand it.
acmc/trud.py
+
1
−
1
View file @
900c4949
This diff is collapsed.
Click to expand it.
docs/mkdocs.yml
deleted
100644 → 0
+
0
−
28
View file @
fd071371
site_name
:
ACMC Documentation
theme
:
name
:
material
features
:
-
navigation.tabs
-
navigation.expand
-
content.code.copy
nav
:
-
Home
:
index.md
-
Installation
:
installation.md
-
Usage
:
usage.md
-
Contributing
:
contributing.md
-
API Reference
:
api.md
-
Tutorials
:
-
Example 1 - Basic local phenotype
:
./tutorials/example1.md
-
Example 2 - More complex local phenotype
:
./tutorials/example2.md
-
Example 3 - Using a remote git repository
:
./tutorials/example3.md
-
Contributing
:
contributing.md
-
Change Log
:
changelog.md
-
Troubleshooting
:
troubleshooting.md
repo_url
:
https://git.soton.ac.uk/meldb/concepts-processing/
plugins
:
-
search
-
mkdocstrings
:
handlers
:
python
:
options
:
show_source
:
false
This diff is collapsed.
Click to expand it.
mkdocs.yml
+
0
−
2
View file @
900c4949
...
...
@@ -9,13 +9,11 @@ nav:
-
Home
:
index.md
-
Installation
:
installation.md
-
Usage
:
usage.md
-
Contributing
:
contributing.md
-
API Reference
:
api.md
-
Tutorials
:
-
Example 1 - Basic local phenotype
:
./tutorials/example1.md
-
Example 2 - More complex local phenotype
:
./tutorials/example2.md
-
Example 3 - Using a remote git repository
:
./tutorials/example3.md
-
Contributing
:
contributing.md
-
Change Log
:
changelog.md
-
Troubleshooting
:
troubleshooting.md
repo_url
:
https://git.soton.ac.uk/meldb/concepts-processing/
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