Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bin/update-data-library
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def update_data_library(path, topic, tutorial, zenodo_record)
official_extension = f['type']

link = f['links']['self'].sub(%r{/content$}, '')
unofficial_extension = link.split('.')[-2..].join('.')
unofficial_extension = link.split('.')[-1]
ext = @SHARED_DATATYPES.fetch(unofficial_extension, nil) || @SHARED_DATATYPES.fetch(official_extension, nil)

# Example:
Expand Down Expand Up @@ -141,16 +141,16 @@ def data_library_for_tutorial(path)
end

def parse_tutorial_for_zenodo_link(path)
parse_zenodo_id_formats(YAML.load_file(path)['zenodo_link'])
rescue StandardError
nil
parse_zenodo_id_formats(YAML.load_file(path, permitted_classes: [Date])['zenodo_link'])
rescue => exception
warn "error: #{exception}"
end

def parse_metadata(path)
parts = path.to_s.split('/')
topic_id = parts[1]
topic_metadata = YAML.load_file(File.join('metadata', "#{topic_id}.yaml"))
tutorial_metadata = YAML.load_file(path)
topic_metadata = YAML.load_file(File.join('metadata', "#{topic_id}.yaml"), permitted_classes: [Date])
tutorial_metadata = YAML.load_file(path, permitted_classes: [Date])
topic = { 'name' => topic_metadata['title'], 'description' => topic_metadata['summary'] }
tutorial = { 'name' => tutorial_metadata['title'] }
[topic, tutorial]
Expand Down
1 change: 1 addition & 0 deletions shared/datatypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ idat: idat
imzML: imzml
metadata: tabular
mgf: mgf
mp4: mp4
mzml: mzml
mzXML: mzxml
obo: obo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@ destination:
description: Galaxy Training Network Material
synopsis: Galaxy Training Network Material. See https://training.galaxyproject.org
items:
- name: New topic
description: Topic summary
- name: Digital Humanities
description: |
"Contemporary research in the humanities has expanded beyond anything that could be considered traditional. Historians are building interactive
digital maps, literary scholars are using computers to look for patterns across millions of books, and scholars in all disciplines are taking
advantage of the internet to make their work more dynamic and visually engaging. Digital humanities (DH) is the umbrella term that describes much of
this work. It is neither a field, a discipline, nor a methodology. It is not simply the humanities done with computers, nor is it computer science
performed on topics of interest to the humanities. DH is the result of a dynamic dialogue between emerging technology and humanistic inquiry." -- Taken from [Stewart Varner's Special Report](https://americanlibrariesmagazine.org/2016/01/04/special-report-digital-humanities-libraries/)
items:
- name: 'Transcribe your Audio and Video files '
items: []
- name: Transcribing Audio and Video files with Automated Speech Recognition
items:
- name: 'DOI: 10.5281/zenodo.17949386'
description: latest
items:
- url: https://zenodo.org/record/17949386/files/1960_kennedy-nixon_1.mp4
src: url
ext: mp4
info: https://doi.org/10.5281/zenodo.17949386
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ destination:
description: Galaxy Training Network Material
synopsis: Galaxy Training Network Material. See https://training.galaxyproject.org
items:
- name: Statistics and machine learning
description: Statistical Analyses for omics data and machine learning using Galaxy
tools
- name: Digital Humanities
description: |
"Contemporary research in the humanities has expanded beyond anything that could be considered traditional. Historians are building interactive
digital maps, literary scholars are using computers to look for patterns across millions of books, and scholars in all disciplines are taking
advantage of the internet to make their work more dynamic and visually engaging. Digital humanities (DH) is the umbrella term that describes much of
this work. It is neither a field, a discipline, nor a methodology. It is not simply the humanities done with computers, nor is it computer science
performed on topics of interest to the humanities. DH is the result of a dynamic dialogue between emerging technology and humanistic inquiry." -- Taken from [Stewart Varner's Special Report](https://americanlibrariesmagazine.org/2016/01/04/special-report-digital-humanities-libraries/)
items:
- name: Text-Mining Differences in Chinese Newspaper Articles
items:
Expand All @@ -16,9 +20,9 @@ items:
items:
- url: https://zenodo.org/record/14899614/files/Example_Chinese_newspaper_uncensored.txt
src: url
ext:
ext: txt
info: https://doi.org/10.5281/zenodo.14899614
- url: https://zenodo.org/record/14899614/files/Example_Chinese_newspaper_censored.txt
src: url
ext:
ext: txt
info: https://doi.org/10.5281/zenodo.14899614