Skip to content

Commit

Permalink
Remove option for url
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Oct 30, 2020
1 parent 646b133 commit e506ebf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
12 changes: 1 addition & 11 deletions doc/source/admin/galaxy_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3199,17 +3199,7 @@
Sets the path to EDAM ontology file.
The value of this option will be resolved with respect to
<data_dir>.
:Default: ``EDAM_1.23.tsv``
:Type: str


~~~~~~~~~~~~~~~~~~~~~~~~~~
``beta_edam_ontology_url``
~~~~~~~~~~~~~~~~~~~~~~~~~~

:Description:
Sets the url to the EDAM ontology file.
:Default: ``https://edamontology.org/EDAM_1.23.tsv``
:Default: ``EDAM.tsv``
:Type: str


Expand Down
5 changes: 1 addition & 4 deletions lib/galaxy/config/sample/galaxy.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1596,10 +1596,7 @@ galaxy:
# Sets the path to EDAM ontology file.
# The value of this option will be resolved with respect to
# <data_dir>.
#beta_edam_toolbox_ontology_path: EDAM_1.23.tsv

# Sets the url to the EDAM ontology file.
#beta_edam_ontology_url: https://edamontology.org/EDAM_1.23.tsv
#beta_edam_toolbox_ontology_path: EDAM.tsv

# Default format for the export of workflows. Possible values are 'ga'
# or 'format2'.
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/tools/toolbox/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _load_edam(self):
if not os.path.exists(self.app.config.beta_edam_toolbox_ontology_path):
log.debug('EDAM ontology file not present, downloading')

page = urllib.request.urlopen(self.app.config.beta_edam_ontology_url)
page = urllib.request.urlopen('https://edamontology.org/EDAM.tsv')
sniff.stream_to_open_named_file(page, os.open(self.app.config.beta_edam_toolbox_ontology_path, os.O_WRONLY | os.O_CREAT), None, source_encoding=get_charset_from_http_headers(page.headers))

log.debug('Processing EDAM Terms')
Expand Down
9 changes: 1 addition & 8 deletions lib/galaxy/webapps/galaxy/config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2333,19 +2333,12 @@ mapping:
beta_edam_toolbox_ontology_path:
type: str
default: EDAM_1.23.tsv
default: EDAM.tsv
path_resolves_to: data_dir
required: false
desc: |
Sets the path to EDAM ontology file.
beta_edam_ontology_url:
type: str
default: 'https://edamontology.org/EDAM_1.23.tsv'
required: false
desc: |
Sets the url to the EDAM ontology file.
default_workflow_export_format:
type: str
default: ga
Expand Down

0 comments on commit e506ebf

Please sign in to comment.