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 script to add references to existing corpus #108

Merged
merged 8 commits into from
Nov 25, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ test-cellxgene/
*.lamindb

# Convenience
run-tests
test.ipynb

# cxg
Expand Down
4 changes: 4 additions & 0 deletions cellxgene_lamin/dev/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from cellxgene_lamin.dev._cxg_rest_api import (
get_collections_from_cxg,
get_datasets_from_cxg,
)
6 changes: 4 additions & 2 deletions cellxgene_lamin/dev/_cxg_rest_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from typing import Any

import requests


def get_datasets_from_cxg():
def get_datasets_from_cxg() -> dict[str, Any]:
api_url_base = "https://api.cellxgene.cziscience.com"
datasets_path = "/curation/v1/datasets"
datasets_url = f"{api_url_base}{datasets_path}"
Expand All @@ -12,7 +14,7 @@ def get_datasets_from_cxg():
return res_content


def get_collections_from_cxg():
def get_collections_from_cxg() -> dict[str, Any]:
api_url_base = "https://api.cellxgene.cziscience.com"
collections_path = "/curation/v1/collections"
collections_url = f"{api_url_base}{collections_path}"
Expand Down
2 changes: 1 addition & 1 deletion docs/cellxgene.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"# !pip install 'lamindb[bionty,jupyter]'\n",
"# !pip install 'lamindb[bionty,ourprojects,jupyter]'\n",
"!lamin load laminlabs/cellxgene"
]
},
Expand Down
1 change: 1 addition & 0 deletions docs/notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The following notebooks are versioned documents of creating the instance.
:hidden:

notebooks/cencus-release-2024-07-01-LTS
notebooks/census-release-2024-07-01-References.ipynb
notebooks/cencus-release-2023-12-15-LTS
notebooks/census-release-2023-12-06
notebooks/census-release-2023-11-13
Expand Down
Loading
Loading