Skip to content
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

add simple manifest upload example #113

Merged
merged 5 commits into from Dec 11, 2016
Merged

add simple manifest upload example #113

merged 5 commits into from Dec 11, 2016

Conversation

jsh2134
Copy link
Contributor

@jsh2134 jsh2134 commented Nov 16, 2016

No description provided.

import solvebio

# create a depository, version and dataset
depository = solvebio.Depository.create(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There actually is a simpler way:

dataset = solvebio.Dataset.get_or_create_by_full_name('SampleImport/1.0.0/SampleImport')


imp = solvebio.DatasetImport.create(
dataset_id=dataset.id,
data_record=new_record,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use data_records=[new_record]?

@jsh2134
Copy link
Contributor Author

jsh2134 commented Dec 8, 2016

script updated. pls merge

@jsh2134 jsh2134 requested a review from davecap December 9, 2016 14:40
@jsh2134 jsh2134 merged commit 9715265 into master Dec 11, 2016
@jsh2134 jsh2134 deleted the f-more-examples branch December 12, 2016 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants