GithubHelp home page GithubHelp logo

monet's Introduction

MONET

MONET is a multi-omic clustering algorithm. Recent research shows that different omics have different structure - samples that are similar in one omic are not necessarily similar in another. MONET addresses this issue using a unique formulation for multi-omic clustering. In this formulation, samples are clustered into modules, but each module is also identified by a subset of the omics. Samples in the same module are similar to one another in the omics that the module "covers". For more details of the method, see its publication: "MONET: Multi-omic module detection by omic selection".

This repository contains two parts. The first part is the code of the MONET package, which is currently available only in python. R support and more functionality are currently under development. It is places under the directory monet/. The second part of the repository is the code used to produce the results for MONET's paper. This code is written in R. The required libraries, data, and configuration are documented inside the code. It is places under the directory R_code/. The repository also contains a toy multi-omic dataset to demonstrate how to use MONET. It is places under the directory data/.

To install MONET clone the repository and run in command line:

python setup.py install

Now follows a brief code example showing how to use MONET.

from monet import data_prep
from monet.monet import Monet

# helper function to read the example csv files.
path_to_csv_dir = '/path/to/data/'
sim_mats, _ = data_prep.process_data(path=path_to_csv_dir)
# main_loop is the main Monet function. See its documentation for a full explanation on the parameters and return values.
monet_ret = Monet().main_loop(data=sim_mats, num_of_samples_in_seed=26, num_of_seeds=15, min_mod_size=13)
monet_results, total_time, super_g, iteration_times, total_weight = monet_ret
#all_modules is now a dict mapping module names to module objects.
all_modules = monet_results.modules
arbitrary_module = list(all_modules.values())[0]
# arbitrary_module now contains a dictionary of its patients (from id to Patient object)
# and a dictionary of its omics (from id to Omic object)
arbitrary_module.patients
arbitrary_module.omics

monet's People

Contributors

nimrodrap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

edward-gavin

monet's Issues

scipy required in setup.py

Dear Dr Shamir,

I was interested in your preprint on MONET and wanted to try out the tool. After installing with python setup.py install, I got a ModuleNotFoundError: No module named 'scipy' when running the brief example code in the README.

Adding scipy to the list of required packages in setup.py appears to fix the install, shown in the below code block:

from setuptools import setup

setup(name='monet',
      version=0.1,
      author='Nimrod Rappoport',
      url='https://github.com/Shamir-Lab/MONET',
      description='python implementation of the MONET algorithm for multi-omic module detection',
      license='GPL-3.0',
      python_requires='>3.0.0',
      install_requires=['numpy', 'pandas', 'networkx', 'scipy']
)

For conda users, conda will write the package to a different location so conda install scipy wont work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.