|
| 1 | +CanDI - A global cancer data integrator |
| 2 | +======================================= |
| 3 | + |
| 4 | +|Documentation Status| |
| 5 | + |
| 6 | +Package Installation |
| 7 | +-------------------- |
| 8 | + |
| 9 | +First, you need to clone this repository to use CanDI. |
| 10 | + |
| 11 | +.. code:: bash |
| 12 | +
|
| 13 | + git clone https://github.com/GilbertLabUCSF/CanDI.git |
| 14 | +
|
| 15 | +We suggest to use `Conda <https://docs.conda.io/en/latest/>`__ as a |
| 16 | +package manager and environment management system. You can create a |
| 17 | +fresh conda environment with all ``CanDI``\ ’s requirements using bellow |
| 18 | +command: |
| 19 | + |
| 20 | +.. code:: bash |
| 21 | +
|
| 22 | + conda env create -f CaDI/candi.yml -n candi |
| 23 | +
|
| 24 | +Prepare Datasets |
| 25 | +~~~~~~~~~~~~~~~~ |
| 26 | + |
| 27 | +The python command from CanDI will automatically download and modify |
| 28 | +datasets. |
| 29 | + |
| 30 | +.. code:: bash |
| 31 | +
|
| 32 | + python CanDI/CanDI/install.py |
| 33 | +
|
| 34 | +Downloaded and formatted datasets would organize this way: |
| 35 | + |
| 36 | +.. code:: |
| 37 | +
|
| 38 | + . |
| 39 | + ├── config.ini # modified after Installation |
| 40 | + ├── depmap |
| 41 | + │ ├── CCLE_expression.csv |
| 42 | + │ ├── CCLE_fusions.csv |
| 43 | + │ ├── CCLE_gene_cn.csv |
| 44 | + │ ├── CCLE_mutations.csv |
| 45 | + │ ├── CCLE_RNAseq_reads.csv |
| 46 | + │ ├── CRISPR_gene_dependency.csv |
| 47 | + │ ├── CRISPR_gene_effect.csv |
| 48 | + │ └── sample_info.csv |
| 49 | + ├── genes |
| 50 | + │ └── gene_info.csv |
| 51 | + └── locations |
| 52 | + └── merged_locations.csv |
| 53 | +
|
| 54 | +Package Usage |
| 55 | +------------- |
| 56 | + |
| 57 | +Import CanDI into python |
| 58 | +~~~~~~~~~~~~~~~~~~~~~~~~ |
| 59 | + |
| 60 | +To import ``CanDI``, your active directory in python must be same as the |
| 61 | +cloned folder. |
| 62 | + |
| 63 | +.. code:: python |
| 64 | +
|
| 65 | + import CanDI as can |
| 66 | +
|
| 67 | +**OR**, you can add path to the `CanDI` directory if you want to use it from other directories. |
| 68 | + |
| 69 | +.. code:: python |
| 70 | +
|
| 71 | + import sys |
| 72 | + sys.path.append("path-to-candi-directory") |
| 73 | +
|
| 74 | + import CanDI as can |
| 75 | +
|
| 76 | +CanDI Objects |
| 77 | +~~~~~~~~~~~~~ |
| 78 | + |
| 79 | +- ``data`` : Container for all candi datasets. All access to datasets |
| 80 | + go through data object. |
| 81 | +- ``Gene`` : Provides cross dataset indexing from the gene perspective. |
| 82 | +- ``CellLine`` : Provides cross dataset indexing from the cell line |
| 83 | + perspective. |
| 84 | +- ``Cancer`` : Provides cross dataset indexing by a group of cell lines |
| 85 | + that are all the same tissue. |
| 86 | +- ``Organelle``: Provides cross dataset indexing for a group of genes |
| 87 | + whose proteins localize to the same organelle. |
| 88 | +- ``CellLineCluster`` : Provides cross dataset indexing for a group of |
| 89 | + user defined cell lines. |
| 90 | +- ``GeneCluster`` : Provides cross dataset indexing for a group of user |
| 91 | + defined genes. |
| 92 | + |
| 93 | +.. |Documentation Status| image:: https://readthedocs.org/projects/candi/badge/?version=latest |
| 94 | + :target: https://candi.readthedocs.io/en/latest/?badge=latest |
0 commit comments