Parse manifest.contributors to fill in the RO-Crate#4147
Open
Parse manifest.contributors to fill in the RO-Crate#4147
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b5c5d6c to
d869153
Compare
There was a problem hiding this comment.
Pull request overview
This PR extends the RO-Crate generation logic to populate the crate contributor/person entities using the full manifest.contributors structure (name, affiliation, ORCID, GitHub, role), while keeping manifest.author parsing for backwards compatibility.
Changes:
- Prefer
manifest.contributorsovermanifest.authorwhen adding people/roles to the RO-Crate workflow entity. - Add parsing + normalization for
manifest.contributors(field trimming, URL normalization, email backfilling from git). - Expand RO-Crate tests to cover contributor parsing, role mapping, and fallback behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
nf_core/pipelines/rocrate.py |
Adds contributor parsing/normalization and uses contribution roles to populate RO-Crate person entities and workflow properties. |
tests/pipelines/test_rocrate.py |
Adds helper utilities + new tests for contributor parsing, normalization, and role/identifier mapping. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
36e1a3d to
57d4106
Compare
…an exception Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
4116541 to
73c10d4
Compare
73c10d4 to
4903ebb
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Here I want to include all information from the
manifest.contributorsfield into the RO-Crate contributor list:That's a new function named
parse_manifest_contributors. I've kept the updated original code that parsesmanifest.authorfor backwards compatibility inparse_manifest_authorsas it also serves as a fallback.add_main_authorsis now first a dispatcher method for the two aforementioned methods, before adding the returned contributors to the RO-CratePR checklist
CHANGELOG.mdis updateddocsis updated