Files OMICS¶
Data controller Practically unchanged from the original code in biomed-client library. Methods renamed from data to files, and some minor changes in the code to adapt it to use a single file-service. Merged with the original separated tools.py file from the same directory into the same file.
- class genomcore.controllers.omics_files.OmicsFilesController(*args, **kwargs)¶
Bases:
FilesControllerData controller to interact with omics-related data section of the API
- PENDING = 'Pending'¶
- PROCESSING = 'Processing'¶
- COMPLETED = 'Completed'¶
- FAILED = 'Failed'¶
- copy_to_omics_bucket(iddata: str, task_id: str) str¶
Copy files to the omics bucket on taskId folder.
- Parameters:
iddata (str) – iddata of a file or folder to copy to the omics bucket.
task_id (str) – task ID to make a URI for the file in the omics bucket.
- get_copy_omics_status(trackingUrl: str) str¶
Get omics status when copying files to the omics bucket. Available status are: - Pending: Waiting for the copy to start - Processing: Copying files to the omics bucket - Completed: Files already copied - Failed: Some problems were found while copying files. This will raise a BiomedClientError with the reason
- Parameters:
trackingUrl (str) – tracking URL to call in order to get the status of the copy to omics bucket.
- __annotations__ = {}¶
- __firstlineno__ = 48¶
- __static_attributes__ = ()¶