Skip to content
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

Adding support for existing Biosample #106

Open
cgirardot opened this issue Feb 4, 2025 · 1 comment
Open

Adding support for existing Biosample #106

cgirardot opened this issue Feb 4, 2025 · 1 comment

Comments

@cgirardot
Copy link
Contributor

cgirardot commented Feb 4, 2025

The tool currently does not support submitting data where the sample already exist in BioSample.
This could be achieved by adding an optional biosample column in the samples.tsv and modifying the ENA_template_samples_XYZ.xml

Reading theSRA.sample.xsd, it is unclear to me how to pass the biosample ref; would it be something like

<?xml version="1.0" encoding="UTF-8"?>
<SAMPLE_SET xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ftp://ftp.sra.ebi.ac.uk/meta/xsd/sra_1_6/SRA.sample.xsd">
    <SAMPLE alias="mysample" center_name="Genomics Core Facility">
        <TITLE>my_sample</TITLE>
        <SAMPLE_NAME>
            <TAXON_ID>9606</TAXON_ID>
            <SCIENTIFIC_NAME>Homo sapiens</SCIENTIFIC_NAME>
        </SAMPLE_NAME>
        <DESCRIPTION>blah blah </DESCRIPTION>
	<SAMPLE_LINKS>
  		<SAMPLE_LINK>
                    <XREF_LINK>
                            <DB>biosample</DB>
                            <ID>289</ID>
                            <LABEL>SAMN00000289</LABEL>
                    </XREF_LINK>
		</SAMPLE_LINK>
	</SAMPLE_LINKS>
…
    </SAMPLE>
</SAMPLE_SET>

see xref example here

@bedroesb
Copy link
Collaborator

This is a great proposal, and something we implemented in the MARS project in the repository api components, so we can have a look there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants