Toolverse
All skills

anndata

by K-Dense-AI

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Security
Views
1

About this skill

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

How to use

  1. Zainstaluj pakiet AnnData za pomocą menedżera pakietów: uv pip install anndata. Jeśli potrzebujesz dodatkowych zależności do rozwoju i testowania, użyj uv pip install anndata[dev,test,doc].

  2. Zaimportuj niezbędne biblioteki w swoim skrypcie Pythona: import anndata as ad, numpy as np oraz pandas as pd. Te moduły pozwolą ci pracować z macierzami danych i metadanymi.

  3. Utwórz obiekt AnnData z macierzą eksperymentalnych pomiarów (X). Minimalnie wystarczy tablica NumPy o wymiarach komórki × geny, na przykład X = np.random.rand(100, 2000) dla 100 komórek i 2000 genów.

  4. Dodaj metadane obserwacji (obs) i zmiennych (var) jako ramki danych Pandas. Metadane obserwacji mogą zawierać typ komórki czy próbkę, a metadane zmiennych mogą zawierać nazwy genów i identyfikatory Ensembl.

  5. Połącz macierz i metadane w jeden obiekt AnnData: adata = ad.AnnData(X=X, obs=obs, var=var). Obiekt ten przechowuje wszystkie dane w jednej strukturze gotowej do analizy.

  6. Odczytaj lub zapisz dane w formacie h5ad za pomocą metod read_h5ad() i write_h5ad(). Możesz teraz integrować swoje dane z narzędziami ekosystemu scverse do dalszej analizy, modelowania probabilistycznego lub zapytań na skalę populacji.

Related skills

backend-security-coder

by sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

Security
1133

reverse-engineering-tools

by gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

Security
3168

academic-researcher

by Shubhamsaboo

Academic research assistant for literature reviews, paper analysis, and scholarly writing.\nUse when: reviewing academic papers, conducting literature reviews, writing research summaries,\nanalyzing methodologies, formatting citations, or when user mentions academic research,

Security
1260

python-expert

by Shubhamsaboo

Senior Python developer expertise for writing clean, efficient, and well-documented code.\nUse when: writing Python code, optimizing Python scripts, reviewing Python code for best practices,\ndebugging Python issues, implementing type hints, or when user mentions Python, PEP 8,

Security
2777

brand-voice

by anthropics

Apply and enforce brand voice, style guide, and messaging pillars across content. Use when reviewing content for brand consistency, documenting a brand voice, adapting tone for different audiences, or checking terminology and style guide compliance.

Security
48158

zendesk

by vm0-ai

Zendesk Support REST API for managing tickets, users, organizations, and support operations. Use this skill to create tickets, manage users, search, and automate customer support workflows.

Security
11100