-
Notifications
You must be signed in to change notification settings - Fork 7
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
EVA-3699 EVA json to ENA Json Converter #236
Conversation
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.
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 |
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.
Is there a dev endpoint from ENA we can use to test it out?
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.
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): |
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.
Not sure why there are 2 of this method?
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.
corrected
return {} | ||
|
||
def get_samples_refs(samples): | ||
# TODO: sample id ?? |
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.
Also not sure about this as it's not in the CLI template, maybe should use sampleInVCF
?
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.
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.
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.
json example contains accession
and alias
.Nothing explicitly mentioned in the documents sent by dipayan.. will need to check further
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.
We should run a couple of tests against the test server to ensure compatibility
No description provided.