Skip to content

Implementation of P-Net as a flexible deep learning tool to generate insights from genetic features.

License

Notifications You must be signed in to change notification settings

vanallenlab/pnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pnet

Implementation of P-Net as a flexible deep learning tool to generate insights from genetic features.

Current pytorch implementation in revision.

Model

Pnet uses the Reactome hierarchical graph as underlying structure to reduce the number of connections in a fully connected feed forward neural network. The sparse layers connect only known pathways. This limits the number of parameters to be learnt in a meaningful way and facilitate learning via gradient descent and leads to more generalizable models.

Installation

  1. Clone the github repository and navigate into it.
  2. Create the conda environment with conda env create -f pnet.yml, activate it with conda activate pnet
  3. Run pip install -e . to install the package locally.
  4. To check successful installation run python test/test_data_loading.py which will verify basic import and file structure.

For further functional testing see the testing notebook

Usage

Detailed sepcific usage examples are provided in the notebooks. Generally the network structure expects gene level data for each sample (e.g. read counts, CNA indication etc.). different data modalities can be concatenated as a dictonary and passed to the pnet_loader object. A good starting place to familiarize yourself with the usage of pnet is this example notebook

About

Implementation of P-Net as a flexible deep learning tool to generate insights from genetic features.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published