lilab-bcb/cirrocumulus

MongoDB question

dl016d opened this issue · 3 comments

How to add data into MongoDB? Can I load data directly into MongoDB or have to use the API to load the data? any detailed instructions? thanks.

You can programmatically add a dataset by posting to the /api/dataset endpoint:
curl http://localhost:5000/api/dataset -X POST -F 'name=my_name' -F 'url=data/my_dataset_path' -F 'description=my_desc' -F 'species=Mus musculus'

See https://cirrocumulus.readthedocs.io/en/latest/installation.html#server-mode.

Thanks for the reply. Is there a way to load data not using API but using mongoimport from MongoDB? Thanks.