Closed amnonkhen closed 4 weeks ago
Investigation:
These schemas work correctly in local environment. For some reason, wp-np2-44 contains very old version of schema. We will test this again once we imported revised checklist as mentioned in #77 .
@dipayan1985 This was due to old version of schema. Now latest version is updated and should work on dev
(wp-np2-44
) environment.
While testing, I am observing a different issue now:
No validation errors expected:
Actual validation ERROR: ERAM.1.0.30
message: 2024_09_02_14_43_59_541__EBI_SUB_SRA_TEST_ALIAS__1 failed validation due to Just one of the following properties must be specified: 'geographic location (depth)', 'depth', 'Depth'
origin:
Actual validation ERROR: ERAM.1.0.29
message: Failed to submit samples to BioSamples
origin:
Actual validation ERROR: ERAM.1.0.29
message: Failed to submit samples to BioSamples
origin:
Actual validation ERROR: ERAM.EXCEPTION
message: An exception occurred: java.lang.RuntimeException: Failed to submit all samples to BioSamples
The sample is:
<?xml version = '1.0' encoding = 'UTF-8'?><SAMPLE_SET>
<SAMPLE alias="" center_name="">
<TITLE>FTP2_ITS</TITLE>
<SAMPLE_NAME>
<TAXON_ID>410658</TAXON_ID>
<SCIENTIFIC_NAME>soil metagenome</SCIENTIFIC_NAME>
</SAMPLE_NAME>
<DESCRIPTION>Fort Tryon Park 2. ITS</DESCRIPTION>
<SAMPLE_ATTRIBUTES>
<SAMPLE_ATTRIBUTE>
<TAG>investigation type</TAG>
<VALUE>metagenome</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>project name</TAG>
<VALUE>nyc_parks_medians</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>sequencing method</TAG>
<VALUE>Illumina</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>collection date</TAG>
<VALUE>2013-05-31</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>environmental package</TAG>
<VALUE>soil</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
<VALUE>40.86622</VALUE>
<UNITS>DD</UNITS>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (longitude)</TAG>
<VALUE>-73.93168</VALUE>
<UNITS>DD</UNITS>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>USA</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (depth)</TAG>
<VALUE>10.00</VALUE>
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>soil environmental package</TAG>
<VALUE>soil</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>environment (biome)</TAG>
<VALUE>ENVO:urban biome</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>environment (feature)</TAG>
<VALUE>soil</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>environment (material)</TAG>
<VALUE>soil</VALUE>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>depth</TAG>
<VALUE>0.1</VALUE>
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (elevation)</TAG>
<VALUE>1</VALUE>
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
<SAMPLE_ATTRIBUTE>
<TAG>ENA-CHECKLIST</TAG>
<VALUE>ERC000022</VALUE>
</SAMPLE_ATTRIBUTE>
</SAMPLE_ATTRIBUTES>
</SAMPLE>
</SAMPLE_SET>
Not sure why the error should just one of the following be provided. -> 'geographic location (depth)', 'depth', 'Depth' Existing behavior accepts multiple.
/cc @theisuru @amnonkhen @gabsie
As discussed with Colman and Peter, sample metadata should have one unique attribute representing the field name or a synonym. Webin tests have been adapted and they are passing, this ticket can be marked as done.
/cc @theisuru @amnonkhen
Opened by @dgupta on 21/8 As part of the preparation to deploy Webin REST in dev which will connect to BioSamples in dev, below issue has been observed:
Sample metadata:
```xmlSample contains:
elevation and geographic location (elevation) are synomyms, see checklist:
Error in BioSamples: