You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data submitted to NDA through the standard data submission endpoint (NOT BSMN-S3) are distributed across 5 buckets: gpop, NDAR_Central_1, NDAR_Central_2, NDAR_Central_3, and NDAR_Central_4. Making requests of the submission API (https://nda.nih.gov/api/submission/docs/swagger-ui.html) will return these locations for any files related to a submission.
The following python functions manipulate the URL returned by the submission service and return a dictionary with the bucket and key for objects in NDAR_Central_* and nda-bsmn locations, which can be passed as arguments to boto functions for working with the S3 API.
These functions are included in an update to the NDASubmissionFiles class, and the file argument each accepts is from the list returned from /api/submission/submission_id/files. That response is used as an initialization argument to NDASubmissionFiles class.
@obenshaindw I'm just getting around to replying and closing this, but wanted to confirm that you're missing a replace call in the nda_bsmn_location function. The function definition should be:
@kdaily you are correct, original_key should be using a replace function, although looking at it again it would be more readable, since we are mutating the original_key to get the nda_bsmn_key, to write it as:
Data submitted to NDA through the standard data submission endpoint (NOT BSMN-S3) are distributed across 5 buckets: gpop, NDAR_Central_1, NDAR_Central_2, NDAR_Central_3, and NDAR_Central_4. Making requests of the submission API (https://nda.nih.gov/api/submission/docs/swagger-ui.html) will return these locations for any files related to a submission.
The following python functions manipulate the URL returned by the submission service and return a dictionary with the bucket and key for objects in NDAR_Central_* and nda-bsmn locations, which can be passed as arguments to boto functions for working with the S3 API.
These functions are included in an update to the NDASubmissionFiles class, and the file argument each accepts is from the list returned from /api/submission/submission_id/files. That response is used as an initialization argument to NDASubmissionFiles class.
The text was updated successfully, but these errors were encountered: