seek4science / seek

For finding, sharing and exchanging Data, Models, Simulations and Processes in Science.
http://www.seek4science.org
BSD 3-Clause "New" or "Revised" License
74 stars 52 forks source link

Linking existing registered sample in datafile-extracted sample #1912

Open NielsGeudens opened 1 month ago

NielsGeudens commented 1 month ago

I am trying to link a registered sample (protein) as an (optional) attribute (called protein_id) in a sample (genetic part) that I extract from a datafile. Behavior1 If I leave the registered sample info empty in the datafile, a sample can be extracted from it. The protein_id attribute will read "not specified". I can edit the sample, and provide a link to the registered sample manually. This is the expected behavior.

Behavior2 If I provide a correct link to the registered sample (see screenshot below), a sample can be extracted from the data file. The protein_id attribute will be empty, and will NOT read "not specified" or the [ ] entry. There is no link with the registered sample. image Moreover, editing the sample does not work and gives a '500 error', so I also cannot provide the link to the registered sample manually.

*Behavior3 If I provide an incorrect link to the registered sample (see screenshot below), a sample can still be extracted from it. The protein_id attribute will be empty, and will NOT read "not specified". There is no link with the registered sample. image Moreover, editing the sample does not work and gives a '500 error', so I also cannot provide the link to the registered sample manually.

kdp-cloud commented 1 month ago

@NielsGeudens For project Sample Types the syntax is different. Here's an example that would work: image

The first row (sample 1) is how you would do it in an ISA JSON compliant sample type and the second row is how you would link the same samples in a (non-ISA-JSON compliant) project sample type.

kdp-cloud commented 6 days ago

The documentation should reflect this information.