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

Updates the file_retrieval notebook and example dataset to use a Visi… #113

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Notebook that shows how to find existing files with the search API and retrieve these files from the assets API. This is useful if the data was not symlinked prior to launching the workspace.
Works with: any HuBMAP processed dataset
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"template_format": "jinja",
"examples": [
{
"title": "Retrieve a full dataset",
"description": "Use the assets API to retrieve a full seqFISH dataset.",
"datasets": ["c6a254b2dc2ed46b002500ade163a7cc"]
"title": "Retrieve files from a HuBMAP processed dataset",
"description": "Use the assets API to retrieve files from a Visium (no probes) [Salmon + Scanpy] dataset.",
"datasets": ["8fd6bb5cd1a69fc699342eb118565734"]
}
],
"is_hidden": false,
"last_modified_unix_timestamp": 1723749414
"last_modified_unix_timestamp": 1733256667
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Before we can use this, we need to know what files a dataset has. We can see this on the [HuBMAP Data Portal website](https://portal.hubmapconsortium.org), but we can also retrieve this directly through the search API, as shown below."
"Before we can use this, we need to know what files a dataset has. We can see a listing of processing output files on the [HuBMAP Data Portal website](https://portal.hubmapconsortium.org) or retrieve this directly through the search API, as shown below."
]
},
{
Expand Down Expand Up @@ -180,5 +180,23 @@
"# for file in uuid_to_files[uuids[0]]: \n",
"# retrieve_files_remote(uuids[0], file, outdir='data')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Metadata for published processed datasets is also available in json format and can be retrieved as shown."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Run to download metadata.json files from linked datasets.\n",
"# for dataset in uuids: \n",
"# retrieve_files_remote(dataset, 'metadata.json', outdir='data')"
]
}
]
Loading