-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aef412
commit 72048df
Showing
2 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
"source": [ | ||
"# Download and Upload with OSF\n", | ||
"\n", | ||
"This tutorial shows how to download and upload cryo-EM datasets using the `osf` module from `ioSPI`, that interact with the [Open Science Foundation (OSF)](https://osf.io/) framework.\n", | ||
"This tutorial shows how to download and upload cryo-EM datasets using the `datasets` module from `ioSPI`, that interact with the [Open Science Foundation (OSF)](https://osf.io/) framework.\n", | ||
"\n", | ||
"OSF is an initiative that aims to increase the openness, reproducibility and integrity of scientific research. Among other functionalities, it is possible to upload scientific data which can be accessed by an Application Programming Interface (API). \n", | ||
"\n", | ||
"``ioSPI`` offers functionalities that allow uploading and accessing cryo-EM data using:\n", | ||
"- either, in order to get started: using the class `Project` that leverages the package `osfclient`\n", | ||
"- or, if the user requires finer control: using the class `OSFProject` which follows `OSF APIv2`. \n", | ||
"- or, if the user requires finer control: using the class `OSFUpload` which follows `OSF APIv2`. \n", | ||
"\n", | ||
"This tutorial introduces both options." | ||
] | ||
|
@@ -38,17 +38,17 @@ | |
"\n", | ||
"The email address and the token will be needed to connect to different OSF projects.\n", | ||
"\n", | ||
"We import the `osf` module from `ioSPI`:" | ||
"We import the `datasets` module from `ioSPI`:" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"execution_count": 2, | ||
"id": "e74dd634", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from ioSPI.ioSPI import osf" | ||
"from ioSPI.ioSPI import datasets" | ||
] | ||
}, | ||
{ | ||
|
@@ -87,7 +87,7 @@ | |
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"execution_count": 3, | ||
"id": "febfdedd", | ||
"metadata": {}, | ||
"outputs": [ | ||
|
@@ -100,7 +100,7 @@ | |
} | ||
], | ||
"source": [ | ||
"cryoem_simulated_project = osf.Project(\n", | ||
"cryoem_simulated_project = datasets.Project(\n", | ||
" username=\"[email protected]\", \n", | ||
" token=\"HBGGBOJcLYQfadEKIOyXJiLTum3ydXK4nGP3KmbkYUeBuYkZma9LPBSYennQn92gjP2NHn\",\n", | ||
" project_id=\"7g42j\")" | ||
|
@@ -120,7 +120,7 @@ | |
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"execution_count": 4, | ||
"id": "f4f5b054", | ||
"metadata": {}, | ||
"outputs": [ | ||
|
@@ -2299,7 +2299,7 @@ | |
"text": [ | ||
"\r", | ||
" 0%| | 0.00/4.22k [00:00<?, ?bytes/s]\r", | ||
"100%|██████████| 4.22k/4.22k [00:00<00:00, 8.24Mbytes/s]\n" | ||
"100%|██████████| 4.22k/4.22k [00:00<00:00, 9.90Mbytes/s]\n" | ||
] | ||
} | ||
], | ||
|
@@ -2329,7 +2329,7 @@ | |
"This will create a new project page, as the one we are using here.\n", | ||
"- Save the project ID of the project you just created!\n", | ||
"\n", | ||
"You should then create a new `my_project` object of the class `osf.Project` with the new project ID.\n", | ||
"You should then create a new `my_project` object of the class `datasets.Project` with the new project ID.\n", | ||
"\n", | ||
"For the purpose of this tutorial, however, we will stay with our original project cryoEM simulated and use our object `cryoem_simulated_project`.\n", | ||
"\n", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters