-
Notifications
You must be signed in to change notification settings - Fork 8
Improved CTD to galaxy conversion #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jpfeuffer
merged 123 commits into
WorkflowConversion:master
from
bernt-matthias:topic/cdata
Feb 10, 2021
Merged
Changes from all commits
Commits
Show all changes
123 commits
Select commit
Hold shift + click to select a range
896c380
test data: initial commit
bernt-matthias c549147
add unit tests
Tomnl 2a4ae8d
switch CTDopts branch
bernt-matthias 81f5465
fixed CTDopts branch name
bernt-matthias 1ebc562
improved indentation of float.ctd
bernt-matthias 79e516d
update test results
bernt-matthias 8d58f90
added test files for bool, in/out files
bernt-matthias c8ec983
- added filetypes to test call
bernt-matthias a2efdb1
added filetypes.txt
bernt-matthias c3947af
advanced repeats were not advanced
bernt-matthias 1376b84
add missing tests
bernt-matthias 616074d
make help and command CDATA
bernt-matthias b94253f
render all bools are rendered as booleans
bernt-matthias d4e1965
improved handling of selects & always render optional
bernt-matthias 84cd70f
fix specification of select default value
bernt-matthias c966a9d
fix indentation of advanced parameters in command block
bernt-matthias e33b637
use argument attribute, remove size attribute
bernt-matthias 828f6ba
int and float wo default need empty value attribute
bernt-matthias 0dfe02e
simplify code for advanced node generation
bernt-matthias 216bea1
Itemlist (wo restrictions) as comma separated list
bernt-matthias c7d3905
remove duplicate format entries in inputs
bernt-matthias 0c23fd0
remove sanitizer from input files
bernt-matthias e40979a
infile input needs no help info that a comma separated list is needed
bernt-matthias 0f08f32
bool input for optional outputs
bernt-matthias 269e8d5
further simplify cli generation
bernt-matthias 54032d1
link input files to identifier.ext
bernt-matthias bcbc524
added code to autogenerate a simple test for unit tests
bernt-matthias a573a70
test w expect_num_outputs and some bug fixes in cli generation
bernt-matthias e926ad7
add bool as in ctd 1.7
bernt-matthias 1b63455
allow for list outputs
bernt-matthias d40c31b
multiple outputs:
bernt-matthias 3d6ccf3
make default data type txt
bernt-matthias 134d66a
cont.
bernt-matthias 8b68ea2
fixed category in test ctd files
bernt-matthias d772ea2
add argument attribute
bernt-matthias ab94c12
- add option to integrate automatically generated tests
bernt-matthias 8e419b2
- improve parsing of hardcoded values file
bernt-matthias 0d0ee61
cont
bernt-matthias 5aaa7d0
switch to exit_code (instead of aggressive)
bernt-matthias 732d0a4
switched to yml hased hardcoder
bernt-matthias 1123e37
switch to json hardcoder
bernt-matthias a193c91
add special case for booleans
bernt-matthias af2dcef
big update
bernt-matthias e92ea6d
remove . from element identifiers
bernt-matthias aab3495
fixed output handling
bernt-matthias 3c2902c
updates: no if for optional strings
bernt-matthias 6981bed
improvements test macros, type conversion, command line
bernt-matthias 9779959
single quotes for itemlist strings
bernt-matthias 84bef83
fixes for listitems
bernt-matthias bbef513
fixed ofile command line handling
bernt-matthias 33fc035
outfile handling improvements
bernt-matthias 4c3f53a
add missing attributes to output boolean
bernt-matthias b768604
update test data
bernt-matthias 2e676ee
add script to create Galaxy tool xml files for tests
bernt-matthias da3a9ae
revert to double quotes .. for now
bernt-matthias 0b49233
hardcoding CTD restrictions, format selector
bernt-matthias 04ffc0f
fix optional restricted itemlists
bernt-matthias 652f6ea
remove value attrribute from selects
bernt-matthias eb27e68
use a available server but unavailable URL in tests
bernt-matthias b04e191
add test for param, label and help generation
bernt-matthias 4a4149c
simplify and improve label/help generation
bernt-matthias 8539619
add Galaxy section analoguous to CTD nodes
bernt-matthias 0882c5b
sections: description -> title
bernt-matthias 30f7062
sections: title and help
bernt-matthias 83c09cb
prototype for CTD based input
bernt-matthias 260768a
also parse params + test only generation
bernt-matthias 11d0103
update test
bernt-matthias 5ee83cc
python3 and pep8
bernt-matthias 3e704ef
f
bernt-matthias 036061e
make formats sorted
bernt-matthias 519ce2f
fix
bernt-matthias 7398716
update test data for filetype sorting
bernt-matthias 218efde
no lint but test
bernt-matthias 94ac13b
testing improvements and fixes
bernt-matthias 8211b52
also rename select in the tests
bernt-matthias 45ed5de
add debug msgwq
bernt-matthias 3aff090
try to use planemo with deactivated conda env
bernt-matthias 5a1085b
try to switch to pip
bernt-matthias 8646134
fix test data
bernt-matthias 0cb3d32
fill_ctd: galaxyfy json reading
bernt-matthias 369888b
remove codecov from travis test
bernt-matthias 47cb609
remove unnecessary prints from test script
bernt-matthias 68415c1
test generation fixes and more
bernt-matthias a9062f3
simplify code for cli mapping generation
bernt-matthias e500936
add nodes to tests
bernt-matthias eac138e
fixes fixes fixes
bernt-matthias 9ec21d6
fix for outputs in sections
bernt-matthias 573390e
adds ftype to all test outputs
bernt-matthias 74b6e24
use CTDopts from env
bernt-matthias b4739e2
remove optional from bool params
bernt-matthias 3fa1a9b
add optional output for generated ctd file
bernt-matthias 02ebdb8
fix
bernt-matthias de43e45
improved handling of hardcoded parameters
bernt-matthias a27c28c
hardcoded parameters:
bernt-matthias 0b44371
fix bug in fill_ctd
bernt-matthias 6936529
add parameter to specify tool profile
bernt-matthias 0c23edd
only overwrite type parameter if not set
bernt-matthias ba29677
fix creation of hardcoder json for multi level keys
bernt-matthias 086688e
output prefix parameters etc.
bernt-matthias 0b0e26a
remove input type parameters, optional output select
bernt-matthias 8147bd7
fix output filters
bernt-matthias 9123853
improvements to formats handling in tests
bernt-matthias c3c48ab
don't produce empty sections in Galaxy xml
bernt-matthias 4f1af20
make optional outputs optional
bernt-matthias 8112569
make optional outputs optional
bernt-matthias 3f09e9d
Merge branch 'topic/cdata' of https://github.com/bernt-matthias/CTDCo…
bernt-matthias 037b5a7
use correct variable
bernt-matthias 406e91e
use full parameter name for hardcoder
bernt-matthias aa58872
add tool category to help text
bernt-matthias 920c172
Merge branch 'topic/cdata' of https://github.com/bernt-matthias/CTDCo…
bernt-matthias 958f574
Revert "add tool category to help text"
bernt-matthias 192fe42
allow to specify wrapper version with bump file
bernt-matthias 4912610
allow for inputs with the same identifier
bernt-matthias fa54b48
use latest CTDOpts for testing
bernt-matthias 0446544
fix test case
bernt-matthias 588b50f
update test data
bernt-matthias b7a40b7
few testing fixes
bernt-matthias b044b08
change format only for non defaults
bernt-matthias 35e5c54
exclude some unsupported/nonsense test cases
bernt-matthias 67d36e0
import os
bernt-matthias 2ed0959
update docs
bernt-matthias 966007f
flake8 fixes
bernt-matthias 9247ce5
use continuous integers instead of dataset id
bernt-matthias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,55 @@ | ||
| language: python | ||
| python: | ||
| - "3.6" | ||
|
|
||
| install: | ||
| - sudo apt-get update | ||
| # - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then | ||
| # wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; | ||
| # else | ||
| # wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
| # fi | ||
| # - bash miniconda.sh -b -p $HOME/miniconda | ||
| # - export PATH="$HOME/miniconda/bin:$PATH" | ||
| # - hash -r | ||
| # - conda config --set always_yes yes --set changeps1 no --set auto_activate_base False | ||
| # - conda update -q conda | ||
| # - conda init | ||
| # - source activate | ||
| # - conda info -a | ||
| # | ||
| # # - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION | ||
| # # - source activate test-environment | ||
| # - conda config --add channels conda-forge | ||
| # - conda config --add channels bioconda | ||
| # - conda config --add channels anaconda | ||
| # - conda config --add channels workflowconversion | ||
| # | ||
| # - conda install python=$TRAVIS_PYTHON_VERSION | ||
| # # TODO could be replaced by conda package once it is merged and released | ||
| # - git clone -b topic/no-1-2x https://github.com/bernt-matthias/CTDopts $HOME/CTDopts | ||
| # - cd $HOME/CTDopts | ||
| # - python setup.py install | ||
| # - conda install -c conda-forge lxml | ||
| # - conda install -c conda-forge ruamel.yaml | ||
| # - conda install libxml2 | ||
| # - cd $TRAVIS_BUILD_DIR | ||
| # - python setup.py install | ||
| # - conda install coverage green codecov | ||
|
|
||
| # - virtualenv .venv | ||
| # - . .venv/bin/activate | ||
| - pip install git+https://github.com/WorkflowConversion/CTDopts | ||
| - pip install lxml ruamel.yaml planemo | ||
| - cd $TRAVIS_BUILD_DIR | ||
| - python setup.py install | ||
| script: | ||
| - python setup.py test | ||
| - planemo l tests/test-data/ | ||
|
|
||
| # planemo test content of tests/test-data (this is OK, because the previous | ||
| # tests ensure equality of the xmls that are generated and those in the package) | ||
| - export PATH=$(pwd)/tests/test-data:$PATH && planemo t tests/test-data/ | ||
|
|
||
| # after_script: | ||
| # - python -m codecov | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -42,4 +42,4 @@ def __str__(self): | |
| return self.msg | ||
|
|
||
| def __unicode__(self): | ||
| return self.msg | ||
| return self.msg | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needed?