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

update and fix docs format #48

Merged
merged 18 commits into from
Jul 6, 2024
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ CanDI/setup/data/coessentiality
tests.py
build

docs/output

**/__pycache__/
**/.ipynb_checkpoints/
**.pyc
Expand Down
2 changes: 1 addition & 1 deletion CanDI/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.2.3"
version = "0.2.4"
92 changes: 92 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# CanDI - A global cancer data integrator

[![PyPI](https://img.shields.io/pypi/v/PyCanDI)](https://pypi.org/project/PyCanDI/)
[![Downloads](https://static.pepy.tech/badge/pycandi)](https://pepy.tech/project/pycandi)
[![Documentation Status](https://readthedocs.org/projects/candi/badge/?version=latest)](https://candi.readthedocs.io/en/latest/?badge=latest)
[![DOI](https://zenodo.org/badge/DOI/10.1186/s13073-021-00987-8.svg)](https://doi.org/10.1186/s13073-021-00987-8)
[![Dataverse](https://img.shields.io/badge/Dataverse-10.7910/DVN/JIAT0H-red)](https://doi.org/10.7910/DVN/JIAT0H)

## Installation

CanDI is now available on [PyPI](https://pypi.org/project/PyCanDI/) and
can be installed with pip. Then, a command from CanDI will automatically
download stable datasets from
[Dataverse](https://doi.org/10.7910/DVN/JIAT0H).

``` bash
# Package Installation
pip install PyCanDI

# Prepare Datasets
candi-install
```

Downloaded and formatted datasets would organize this way:

```
.
├── config.ini # modified after Installation
├── depmap
│ ├── CCLE_expression.csv
│ ├── CCLE_fusions.csv
│ ├── CCLE_gene_cn.csv
│ ├── CCLE_mutations.csv
│ ├── CCLE_RNAseq_reads.csv
│ ├── CRISPR_gene_dependency.csv
│ ├── CRISPR_gene_effect.csv
│ └── sample_info.csv
├── genes
│ └── gene_info.csv
└── locations
└── merged_locations.csv
```

**Note**:

: *Currently, DepMap API is not available for public use. Therefore,
we are providing the preprocessed datasets for the users based on
DepMap 21Q4 release. DepMap API will be available in the future to
download the latest datasets.*

## Usage

### Import CanDI into python

``` python
from CanDI import candi
```

### CanDI Objects

- `data` : Container for all candi datasets. All access to datasets go
through data object.
- `Gene` : Provides cross dataset indexing from the gene perspective.
- `CellLine` : Provides cross dataset indexing from the cell line
perspective.
- `Cancer` : Provides cross dataset indexing by a group of cell lines
that are all the same tissue.
- `Organelle`: Provides cross dataset indexing for a group of genes
whose proteins localize to the same organelle.
- `CellLineCluster` : Provides cross dataset indexing for a group of
user defined cell lines.
- `GeneCluster` : Provides cross dataset indexing for a group of user
defined genes.

### Demos

| Name | Description |
|------|-------------|
| Getting Started | [Link to notebook](notebooks/get-started.ipynb) |
| *BRCA* Heatmap | [Link to notebook](notebooks/brca_heatmap.ipynb) |
| *KRAS* and *EGFR* Scatter plot | [Link to notebook](notebooks/kras_egfr_scatter.ipynb) |
| CanDI and DESeq2 | [Link to notebook](notebooks/deseq_setup.ipynb) |

## Citation

If you use CanDI in your research, please cite the following paper:

``` bibtex
Yogodzinski C, Arab A, Pritchard JR, Goodarzi H, Gilbert LA.
A global cancer data integrator reveals principles of synthetic lethality, sex disparity and immunotherapy.
Genome Med. 2021;13(1):167. Published 2021 Oct 18. doi:10.1186/s13073-021-00987-8
```
118 changes: 0 additions & 118 deletions README.rst

This file was deleted.

8 changes: 4 additions & 4 deletions docs/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ channels:
- conda-forge
dependencies:
- python>=3.11,<4.0
- myst-parser=0.18.1
- sphinx=5.3.0
- sphinx_rtd_theme=1.1.1
- myst-parser
- sphinx>=7.0.0
- jinja2<=3.1
- pandas
- numpy
Expand All @@ -16,7 +15,8 @@ dependencies:
- tqdm
- pip
- pip:
- nbsphinx
- myst-nb
- sphinx_rtd_theme
- pydeseq2
- adpbulk
- pycandi
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
nbsphinx
readthedocs-sphinx-search==0.3.2
readthedocs-sphinx-search
myst-parser=0.18.1
sphinx=5.3.0
sphinx_rtd_theme=1.1.1
myst-nb
sphinx>=7.0.0
sphinx_rtd_theme
jinja2<=3.1
pandas
configparser
Expand Down
1 change: 1 addition & 0 deletions docs/source/README.md
1 change: 0 additions & 1 deletion docs/source/README.rst

This file was deleted.

Loading
Loading