Jeff

Results 10 comments of Jeff

This was requested today for use in syncing permissions to a third-party system (specifically NGB)

For querying a file ``` file = Object.retrieve("FILE_ID") query = file.query() df = pd.DataFrame(query) ```

To save locally: ``` dataset_template = dataset.template() with open('template.json', 'w') as fp: json.dump(dataset_template, fp) ``` To save on SolveBio in the same folder: ``` import json Object.get_or_create_by_full_path(dataset.full_path + '.template.json', object_type='file',...

Would be great to add the object ID here https://github.com/solvebio/solvebio-python/blob/master/solvebio/resource/apiresource.py#L175

manifest.add_url(url) workaround something like ``` filename = "gnomad.exomes.r2.0.1.sites.vcf.gz" url = "https://storage.googleapis.com/gnomad-public/release-170228/vcf/exomes/gnomad.exomes.r2.0.1.sites.vcf.gz" manifest = solvebio.Manifest() manifest.manifest['files'] = [{'name': filename, 'url': url}] imp = solvebio.DatasetImport.create(dataset_id=d.id,manifest=manifest.manifest, auto_approve=True) ```

This is still the limit FYI. Will get an error like this ``` Traceback (most recent call last): File "/usr/local/bin/solvebio", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/solvebio/cli/main.py", line 309, in main...

seems that dict/json has the same effect ``` In [40]: v Out[40]: | Fields | Data | |----------------------+-----------------------------------------------------------| | account_domain | XXXXXXXX | | account_id | XX | | class_name...

+1 vote for seeing this implemented. In for any followups.