Skip to content
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

Refactored Snakemake workflow and generate example output #41

Closed
wants to merge 12 commits into from

Conversation

alexhambley
Copy link
Collaborator

This PR primarily addresses: #37, #34, #33, #28, #17

The snakemake workflow consists of 3 main rules:

  • source_ro_crates sources the RO crates and checks their output
  • merge_filescreates the merged .ttl file
  • create_ro_crate creates the ro-crate-metadata.json file

The example .ttl file consists of all versions of all publicly accessible RO crates on WorkflowHub.

Updated the dockerfile to use a two stage process. Snakemake image is used as the runtime environment.
Supports / Partially addresses #17
Updated snakemake workflow to work with Dockerfile. Also fixes module not found error by exposing pythonpath. Partially addresses #17
Partially addresses #28 and #17
User can now provide range (e.g. --workflow-ids 1-40) or omit this to download all workflows
- Temporary fix for ValueError with multiple context URLs (#34) by returning empty context for URLs that don't match allowed_urls_pattern.
FromAsCasing - FROM and AS should be in the same case.
- Added get_max_id_from_files method.
- If --workflow-ids argument is not provided, created_files.json should contain all workflows downloaded. get_max_id_from_files() finds the maximum ID in the sourced workflows.
- Part of wider effort to address #17
Removes list_expected_files() method.
- Added progress bar and removed line-by-line logging for easier evaluation of download and processing progress.
- Addresses #33
- Added preliminary module create_ro_crate to create an RO crate for a given file.
- Addresses #37
- Added a rule in Snakemake workflow to create an RO crate.
- Addresses #37
@alexhambley alexhambley marked this pull request as draft August 5, 2024 14:54
@alexhambley alexhambley closed this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant