This repository is associated with the study disclosed in manuscript:
Zahoranszky-Kohalmi et al., Algorithm for the Pruning of Synthesis Graphs.
The workflow was tested successfully on Python version 3.6.7.
-
Install Git Large File Support (Git LFS)
- Follow instructions to install Git LFS before cloning the Git repository, see: https://git-lfs.github.com/
-
Clone repository
-
Create a working directory "sgp_rep" which is in the user's home directory (/home/user/sgp_rep in linux, /Users/user/sgp_rep on Mac)
-
Change directory to working directory:
cd ~/sgp_rep/ -
Clone repo:
git clone https://github.com/ncats/SGP -
Change to source code directory:
cd SGP/code/
-
-
Setting up Conda environment
-
Follow OS specific instructions to install Conda, see: https://docs.conda.io/en/latest/miniconda.html
-
Once Conda is installed, create a clean conda environment (make sure you're in the
SGP/code/directory of the repository, in this example this location of this directory is~/sgp_rep/SGP/code/):if you have a Linux environment, then:
conda env create -f sgp_env_linux.ymlif you have a Mac environment, then:
conda env create -f sgp_env_mac.yml -
Activate the Conda environment
conda activate sgp
-
- Change to
~/sgp_rep/SGP/code/SGP/directory
cd ~/sgp_rep/SGP/code/SGP
- Activate Conda environment
conda activate sgp
- Run workflows
bash workflow.sh
bash si_workflow.sh
bash case_study_workflow.sh
- All resultant networks are provided in the format of Cytoscape session (.cys) files.
The original and pruned graph created by running workflow.sh were imported into a
Cytoscape session (.cys) file located at data/output/All_networks_SGP_pub.cys .
The original and pruned graph created by running si_workflow.sh were imported into a
Cytoscape session (.cys) file located at data/output/si/SI_SGP_Graphs.cys .
The original and pruned graph created by running case_study_workflow.sh were imported into a
Cytoscape session (.cys) file located at data/case_study/example_savi_rev.cys .
- Creating conda dependencies
conda env export --name sgp --file sgp_env_linux.yml
conda env export --name sgp --file sgp_env_mac.yml
This repository contains source code, and data and results files which are organized into various subdirectories.
Source code subdirectories:
code/
Data and results subdirectory:
data/
-
Source Code License of SGP Repository
The applicable license to source code can be found under filename:
code/LICENSE. This license is applicable to all files recursively in the Source code subdirectories as defined above. The filecode/NOTESlists source code modules that were utilized and their respective licenses. These modules have their own licenses which might be different from the Source Code License of this repository, and they need to be respected accordingly. -
Data License of SGP Repository
The applicable license to data and results can be found under filename:
data/LICENSE. This license is applicable to all files recursively in the Data and results subdirectory as defined above. The filedata/NOTESlists input files and resources utilized to perform the experiments and are considered as derivative work of those resources. These input files and resources have their own licenses which might be different from the Data License of this repository, and they need to be respected accordingly. In the same file we also list which results files can be considered as derivative works, and we also list the the respective ascendent data source(s).
https://carpentries-incubator.github.io/introduction-to-conda-for-data-scientists/04-sharing-environments/index.html
https://git-lfs.github.com/
https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment
https://unix.stackexchange.com/questions/1136/batch-renaming-files
https://unix.stackexchange.com/questions/34549/how-to-rename-multiple-files-by-removing-the-extension