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

Ebi: ability to extend a submission #1489

Merged

Conversation

josenavas
Copy link
Contributor

This PR modifies the EBI code to be able to extend an existent EBI submission with new samples, experiments and/or runs.

# 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 = {
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K, thanks!

@josenavas
Copy link
Contributor Author

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)
Copy link
Member

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)

Copy link
Contributor Author

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)

@ElDeveloper
Copy link
Member

👍

@josenavas josenavas mentioned this pull request Oct 7, 2015
@josenavas
Copy link
Contributor Author

comments addressed

@mortonjt
Copy link
Contributor

mortonjt commented Oct 7, 2015

I don't see any outstanding issues

ElDeveloper added a commit that referenced this pull request Oct 8, 2015
Ebi: ability to extend a submission
@ElDeveloper ElDeveloper merged commit ab37a2f into qiita-spots:ebi-improvements Oct 8, 2015
@antgonza antgonza mentioned this pull request Oct 8, 2015
14 tasks
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

Successfully merging this pull request may close these issues.

None yet

4 participants