File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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```
4550pip 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
95105import 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
98113data = cf.data_preparation(adata, prior_network)
99114
Original file line number Diff line number Diff line change 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" ))
Original file line number Diff line number Diff 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'},
You can’t perform that action at this time.
0 commit comments