Closed corneliusroemer closed 2 weeks ago
I will attempt to revise the taxonId for https://pathoplexus.org/seq/PP_000RGTE.1 and https://pathoplexus.org/seq/PP_000RGSG.1.
It looks like I can do this quite easily using dry-run and https://ena-docs.readthedocs.io/en/latest/update/metadata/programmatic-sample.html
Updates are successful on dev, but I see no results on the page
curl -u "$username:$password" -F 'SUBMISSION=@sample/submission.xml' -F 'SAMPLE=@sample/sample.xml' https://wwwdev.ebi.ac.uk/ena/submit/drop-box/submit/ > results/output.txt
Using as in the docs the full sample.xml and the modify submission.xml:
<SUBMISSION>
<ACTIONS>
<ACTION>
<MODIFY/>
</ACTION>
</ACTIONS>
</SUBMISSION>
It could be just the dev site being down, I tried now to update the page using the browser and I get an error:
Ok I tried on the main site as well and programmatic submission again resulted in a successful curl request but no changes on the page - however I was able to just edit the page and here the update was successful
Update: I do find an error when I submit updates programmatically on dev:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="receipt.xsl"?>
<RECEIPT receiptDate="2024-11-05T09:54:05.497Z" submissionFile="submission.xml" success="false">
<SAMPLE alias="PP_000RGSG:west-nile:Pathoplexus" status="PUBLIC"/>
<SUBMISSION alias="SUBMISSION-05-11-2024-09:54:05:240"/>
<MESSAGES>
<ERROR>Failed to submit samples to BioSamples</ERROR>
<ERROR>Failed to submit samples to BioSamples</ERROR>
<ERROR>An exception occurred: java.lang.RuntimeException: Failed to submit all samples to BioSamples</ERROR>
<INFO>This submission is a TEST submission and will be discarded within 24 hours</INFO>
</MESSAGES>
<ACTIONS>MODIFY</ACTIONS>
</RECEIPT>
However, I do get a success message on prod:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="receipt.xsl"?>
<RECEIPT receiptDate="2024-11-05T09:57:37.484Z" submissionFile="submission.xml" success="true">
<SAMPLE accession="ERS21098997" alias="PP_000RGSG:west-nile:Pathoplexus" status="PUBLIC">
<EXT_ID accession="SAMEA116100917" type="biosample"/>
</SAMPLE>
<SUBMISSION accession="" alias="SUBMISSION-05-11-2024-09:57:37:236"/>
<MESSAGES/>
<ACTIONS>MODIFY</ACTIONS>
</RECEIPT>
It worked on prod!!!! I updated the authors and taxon of https://www.ncbi.nlm.nih.gov/biosample/SAMEA116100917 and https://www.ncbi.nlm.nih.gov/biosample/SAMEA116120071 -> should now be under west nile in NCBI Virus
One is mostly updated (except for Organism and Scientific Name, at least on the biosample page): https://www.ebi.ac.uk/ena/browser/view/SAMEA116100917 The other one is not yet changed: https://www.ebi.ac.uk/ena/browser/view/SAMEA116120071
Curiously, this one shows ENA first public Year 1000:
Both have now updated the lat, long values on ENA however taxon has remained the same and changes are not visible on NIH.
Yay! All the updates have propagated to ENA and NIH!
We should test how well updating of metadata works via updated biosamples, without doing automation/pipeline development yet