# pandasaurus_cxg
STATUS: early Beta
A library for retreiving and leveraging the semantic context of ontogy annotation in [CxG standard](https://github.com/chanzuckerberg/single-cell-curation/blob/main/schema/3.0.0/schema.md) [AnnData files](https://anndata.readthedocs.io/en/latest/).
Slide summarising intended functionality

## Installation
Available on [PyPi](https://pypi.org/project/pandasaurus-cxg/0.1.1/)
$ pip3 install pandasaurus_cxg
## Usage
The `AnndataEnricher` and `AnndataAnalyzer` classes can be used both individually and in conjunction with the `AnndataEnrichmentAnalyzer` wrapper class. The `AnndataEnrichmentAnalyzer` class serves as a convenient way to leverage the functionalities of both `AnndataEnricher` and `AnndataAnalyzer`.
### Using AnndataEnricher and AnndataAnalyzer Individually
You can use the `AnndataEnricher` and `AnndataAnalyzer` classes separately to perform specific tasks on your data. For instance, `AnndataEnricher` facilitates data enrichment, while `AnndataAnalyzer` provides various analysis tools for Anndata objects.
```python
from pandasaurus_cxg.anndata_enricher import AnndataEnricher
ade = AnndataEnricher.from_file_path("test/data/modified_human_kidney.h5ad")
ade.simple_enrichment()
ade.minimal_slim_enrichment(["blood_and_immune_upper_slim"])
```
```python
from pandasaurus_cxg.anndata_analyzer import AnndataAnalyzer
ada = AnndataAnalyzer.from_file_path("./immune_example.h5ad", author_cell_type_list = ['subclass.full', 'subclass.l3', 'subclass.l2', 'subclass.l1', 'class', 'author_cell_type'])
ada.co_annotation_report()
```
### Using AnndataEnrichmentAnalyzer Wrapper
The AnndataEnrichmentAnalyzer class wraps the functionality of both AnndataEnricher and AnndataAnalyzer, offering a seamless way to perform enrichment and analysis in one go.
```python
from pandasaurus_cxg.enrichment_analysis import AnndataEnrichmentAnalyzer
from pandasaurus_cxg.graph_generator.graph_generator import GraphGenerator
aea = AnndataEnrichmentAnalyzer("test/data/modified_human_kidney.h5ad")
aea.contextual_slim_enrichment()
aea.co_annotation_report()
gg = GraphGenerator(aea)
gg.generate_rdf_graph()
gg.set_label_adding_priority(["class", "cell_type", "subclass.l1", "subclass.l1", "subclass.full", "subclass.l2", "subclass.l3"])
gg.add_label_to_terms()
gg.enrich_rdf_graph()
gg.save_rdf_graph(file_name="kidney_new", _format="ttl")
```
More examples and detailed explanation can be found in jupyter notebook given in [Snippets](#Snippets)
## Snippets
https://github.com/INCATools/pandasaurus_cxg/blob/roadmap/walkthrough.ipynb
## Roadmap
https://github.com/INCATools/pandasaurus_cxg/blob/roadmap/ROADMAP.md
没有合适的资源?快使用搜索试试~ 我知道了~
pandasaurus_cxg-0.1.2.tar.gz
需积分: 1 0 下载量 2 浏览量
2024-03-09
13:48:53
上传
评论
收藏 18KB GZ 举报
温馨提示
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
资源推荐
资源详情
资源评论





























收起资源包目录
























共 18 条
- 1
资源评论


程序员Chino的日记
- 粉丝: 4237
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 电子商务公司薪资体系.doc
- 电子商务案例分析课程标准.doc
- 完美版课件资料第6章 MCS-51单片机的中断系统.ppt
- 2023年公需科目考试物联网技术与应用考试题库含全部答案.doc
- 软件产品需求说明规范.pdf
- 工程项目管理信息系统功能培训手册样本.doc
- 互联网大赛项目淘书汇申请书.docx
- 基于云技术的医疗卫生信息网络服务体系应用工作汇报).ppt
- -互联网+-会计行业创新发展的新动能【会计实务操作教程】.pptx
- 单片机红外发射与接收.doc
- 职业院校信息化教学大赛赛项方案汇总.doc
- 视频转GIF怎么转?用什么软件比较好?.pdf
- 流水和网络图讲解[最终版].pdf
- 2023年使用互联网的固定IP用户安全责任书.doc
- 基于改进A星算法的仿生机器鱼全局路径规划样本.doc
- 学习新预算法心得体会概要.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
