-
Notifications
You must be signed in to change notification settings - Fork 27
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
file entitites overwritten without warnig #185
Comments
@simleo is this a bug? I'm not familiar enough with the code, but I assumed that file entities would use the full file path as |
@mashehu and I agreed on the WRROC call that this is a bug. As a workaround, you should be able to use the
Also, you might like to look at the
|
Thanks @elichad, specifying
|
|
It's not a bug, and using When
If you want to check exactly what happens, take a look at A usage example can be found in repo2rocrate. Usage of |
Hi,
I am currently working on adding RO-crates to the nf-core CLI tools: nf-core/tools#2680
nf-core pipelines usually have a root
main.nf
file, which should be aComputationalWorkflow
entity, but they also have modules with their own nestedmain.nf
e.g.modules/local/cat_additional_fasta/main.nf
. Trying to add all the different nested files usingcrate.add_file(fn, properties={"programmingLanguage": {"@id": "#nextflow"}})
wherefn
is the file path, e.g.,modules/local/cat_additional_fasta/main.nf
results in only onemain.nf
entry. How do I get the full path as the entry id to avoid overwriting duplicates?Additionally, a warning that an
@id
already exists before overwritting it, would be helpful.The text was updated successfully, but these errors were encountered: