Giter VIP home page Giter VIP logo

lorenzo677 / hi-c-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 44.67 MB

Small Python package to perform spectral analysis on Hi-C matrices and visualize the results.

License: Creative Commons Zero v1.0 Universal

Makefile 0.02% CSS 0.28% JavaScript 0.30% HTML 36.46% Common Lisp 0.13% TeX 2.79% Perl 0.01% Batchfile 0.01% Python 0.37% Jupyter Notebook 59.64%
hi-c network-analysis spectral-analysis

hi-c-analysis's Introduction

Hi-C-Analysis

Introduction

This is a Python package containing some functions to process, perform spectral analysis and visualize the Hi-C matrices.

In particular, with this package, it is possible extract from the full Hi-C matrix the matrices corresponding to the 24 chromosomes of the human genomes, to compute some basic distribution about the network, such as the betweenness and degree centrality, and to reconstruct the original matrix by using the projectors of the highest ranked eigenvectors.

This package is composed by two modules:

  • preprocessing
  • visualizegraph

with the first module it is possible to manage the data and perform spectral analysis, while with the second it is possible to visualize the results with a pre-defined style.

The repository has the following structure:

  • The directory docs contains the documentation of the package.
  • The directory hicanalysis contains the two modules of the package.
  • The directory images contains some demonstrative images created with the package.
  • The directory script contains the the script used for Complex Network project @unibo.
  • The directory tests contains the tests for the functions of the package.
  • The directory tutorial contains a tutorial to shows the basic usage of the package.

All the others files and directories have been used to generate the documentation.

Installation

The easiest way to install the package is to clone the GitHub repository and install it via pip:

git clone https://github.com/lorenzo677/Hi-C-Analysis
cd Hi-C-Analysis
python3 -m pip install -r requirements.txt .

This command install also the requirements, that can be also installed before the installation of the package. The requirements are here reported:

matplotlib==3.6.3
networkx==3.0
numpy==1.24.2
pandas==1.5.3
seaborn==0.12.2

The module was build with these version of the packages but probably Hi-C-Analysis works also with previous versions (not tested).

Running tests

The tests for the module preprocessing, are contained in the tests directory. To run them it is necessary to be in the Hi-C-Analysis directory and to have installed the pytest package. Then it is enough to run the pytest command:

pytest

This package was built with Python 3.11.2 on macOS 13.2.1 with arm64 architecture and tested both on macOS and Windows 10 machines.

Documentation and Tutorial

The documentation of the modules can be found in the directory docs and online at the website here

In the docs directory there is hi-c-analysis.pdf that contain the documentation for all the function of the two modules.

In the directory tutorials it is also possible to find a tutorial that shows the basic functionality of the package. In the directory it is present the same file in three different formats: .html, .ipynb and .pdf.

hi-c-analysis's People

Contributors

lorenzo677 avatar

Watchers

 avatar

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.