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
Ebi: ability to extend a submission #1489
Ebi: ability to extend a submission #1489
Conversation
…nto ebi-improvements-add
# The sample.xml file needs to be generated if and only if there are | ||
# samples in the current submission that do NOT have an | ||
# ebi_sample_accession | ||
new_samples = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be the prep template and not the sample template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the ebi_sample_accessions are stored in the sample template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K, thanks!
The failures here are expected - will fix the interface in an oncoming PR |
@@ -362,8 +372,10 @@ def generate_sample_xml(self): | |||
'xmlns:xsi': self.xmlns_xsi, | |||
"xsi:noNamespaceSchemaLocation": self.xsi_noNSL % "sample"}) | |||
|
|||
for sample_name, sample_info in sorted(viewitems(self.samples)): | |||
sample_info = dict(sample_info) | |||
samples = samples if samples is not None else viewkeys(self.samples) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a rather subjective comment, but this line doesn't need to be a one-liner, it should jus be an if statement:
if samples is not None:
samples = viewkeys(self.samples)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're correct, although the correct if is:
if not samples:
samples = viewkeys(self.samples)
👍 |
comments addressed |
I don't see any outstanding issues |
Ebi: ability to extend a submission
This PR modifies the EBI code to be able to extend an existent EBI submission with new samples, experiments and/or runs.