Check if the files gathered are archived or not
Closed this issue · 3 comments
Yu-jinKim commented
With archiving now present, we should add a step to check if the files gathered by dias batch are archived or not as it throws an error when running the dx run
command.
InvalidInput: The input "stage-G9Q0jzQ4vyJ3x37X4KBKXZ5v.vcf" is required, code 422. Request Time=1659523161.27, Request ID=1659522769878-317019
So adding a check with a more helpful error message will help the user be sure of what the issue is.
Yu-jinKim commented
How to do it (probably):
>>> import dxpy
>>> file=dxpy.DXFile(dxid="file-GBxP5Z8433GfKq081gj59q82", project="project-Fkb6Gkj433GVVvj73J7x8KbV")
>>> file.describe()
{'id': 'file-GBxP5Z8433GfKq081gj59q82', 'project': 'project-Fkb6Gkj433GVVvj73J7x8KbV', 'class': 'file', 'sponsored': False, 'name': '220628_genepanels.tsv', 'types': [], 'state': 'closed', 'hidden': False, 'links': [], 'folder': '/dynamic_files/gene_panels', 'tags': [], 'created': 1656419025000, 'modified': 1656419029427, 'createdBy': {'user': 'user-ykim'}, 'media': 'text/plain', 'archivalState': 'live', 'size': 1485089, 'cloudAccount': 'cloudaccount-dnanexus'}
>>> file.describe()["archivalState"]
'live'
Aisha-D commented
Voting for this to be implemented plsssss
@Addy81 @chrispyatt
jethror1 commented
closing as this is implemented in new version