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

EVA-3699 EVA json to ENA Json Converter #236

Merged

Conversation

nitin-ebi
Copy link
Contributor

No description provided.

@nitin-ebi nitin-ebi self-assigned this Jan 23, 2025
Copy link
Contributor

@apriltuesday apriltuesday left a comment

Choose a reason for hiding this comment

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

Looks good, left a couple comments/questions but feel free to ignore if you've discussed them already.

ena_projects_json_obj = [
self._create_ena_project_json_obj(self.eva_json_data['project'], self.submission_id)]
else:
# TODO: if existing project - should the projects field in json be empty or should not exist at all
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a dev endpoint from ENA we can use to test it out?

Copy link
Member

Choose a reason for hiding this comment

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

There is a test endpoint we can use but in this case I think the project should be absent.


return self.output_ena_json_file

def create_ena_submission(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why there are 2 of this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected

return {}

def get_samples_refs(samples):
# TODO: sample id ??
Copy link
Contributor

Choose a reason for hiding this comment

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

Also not sure about this as it's not in the CLI template, maybe should use sampleInVCF?

Copy link
Member

Choose a reason for hiding this comment

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

In the current analysis object in XML, we're using accession and label, I'm actually not sure that the label is required. We should double check first that it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

json example contains accession and alias.Nothing explicitly mentioned in the documents sent by dipayan.. will need to check further

Copy link
Member

@tcezard tcezard left a comment

Choose a reason for hiding this comment

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

We should run a couple of tests against the test server to ensure compatibility

@nitin-ebi nitin-ebi merged commit 948f187 into EBIvariation:master Feb 4, 2025
4 checks passed
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.

3 participants