Skip to content

Commit 492c5e6

Browse files
committed
fix errors
1 parent 839318e commit 492c5e6

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,20 @@ The following packages are required to be able to run this code:
4040
- PRROC (R package)
4141
- slingshot (R package)
4242
- MAST (R package)
43+
### Setup an environment
44+
```
45+
conda create -y --name CEFCON python=3.10
46+
conda activate CEFCON
47+
```
4348
### Install using pip
4449
```
4550
pip install git+https://github.com/WPZgithub/CEFCON.git
4651
```
52+
### Install R and the required packages
53+
```
54+
conda install -y -c conda-forge r
55+
R --no-save -q < r_env.R
56+
```
4757

4858
### Using GUROBI
4959

@@ -94,6 +104,11 @@ All the input data in the paper can be downloaded from [here](https://zenodo.org
94104
```python
95105
import cefcon as cf
96106

107+
# We assume you have an Anndata object containing scRNA-seq data, cell lineages information,
108+
# and gene differential expression levels (optional).
109+
# We also assume you have a pandas dataframe containing the prior gene interaction network
110+
# in edgelist format.
111+
97112
# Data preparation
98113
data = cf.data_preparation(adata, prior_network)
99114

r_env.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
install.packages('PRROC', repos="https://cran.r-project.org/")
2+
install.packages('data.table', repos="https://cran.r-project.org/")
3+
4+
if (!require("BiocManager", quietly = TRUE))
5+
install.packages("BiocManager", repos="https://cran.r-project.org/")
6+
BiocManager::install(c("slingshot", "MAST"))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def readme():
3838
'matplotlib-venn',
3939
'seaborn',
4040
'biomart',
41-
'r',
41+
#'r',
4242
'rpy2',
4343
],
4444
# package_dir={'cefcon':'cefcon'},

0 commit comments

Comments
 (0)