-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from mihai-sysbio/feat/yaml-validation
feat: add yaml validation
- Loading branch information
Showing
10 changed files
with
101,532 additions
and
84,575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: YAML validation | ||
|
||
on: | ||
push: | ||
branches: [ devel ] | ||
pull_request: | ||
branches: [ master, devel ] | ||
|
||
jobs: | ||
yaml-validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: YAML Lint | ||
uses: ibiqlik/[email protected] | ||
with: | ||
## File(s) or Directory, separate by space if multiple files or folder are specified | ||
file_or_dir: ModelFiles/ | ||
## Custom configuration (as YAML source) | ||
config_data: "{extends: default, rules: {line-length: disable}}" | ||
## Format for parsing output [parsable,standard,colored,auto] | ||
# format: # optional, default is colored | ||
## Return non-zero exit code on warnings as well as errors | ||
# strict: # optional, default is false | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Import with cobrapy | ||
run: | | ||
pip install -r requirements/ci-requirements.txt | ||
python -c "import cobra ; cobra.io.load_yaml_model('ModelFiles/yml/yeastGEM.yml')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%% Curations on version 8.4.2 | ||
% This is a list of various smaller curations to be performed on version | ||
% 8.4.2 of yeast-GEM. Indicated is what Issue is solved. | ||
|
||
% Load model | ||
cd .. | ||
model = loadYeastModel; | ||
|
||
% Solves #252 | ||
model = changeGeneAssociation(model,'r_4590','YOL130W'); | ||
|
||
% Solves #254 | ||
model.metNames = regexprep(model.metNames,'^nicotinamide ribose','nicotinamide riboside'); | ||
% All annotations, formula and charge were correct. | ||
|
||
saveYeastModel(model); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
MATLAB 9.7.0.1190202 (R2019b) | ||
MATLAB 9.9.0.1524771 (R2020b) Update 2 | ||
libSBML 5.17.0 | ||
RAVEN_toolbox 2.4.1 | ||
COBRA_toolbox commit 6c49aaf | ||
RAVEN_toolbox commit 5061381 | ||
COBRA_toolbox commit 800dcfe | ||
SBML_level 3 | ||
SBML_version 1 | ||
fbc_version 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.