GithubHelp home page GithubHelp logo

htad's Introduction

Introduction

HTAD is an Active Learning Tool for Matrix-based Detection of Chromatin Domain

Steps to install and run HTAD

(i) Download and install HTAD

$ git clone https://github.com/shenscore/HTAD
$ cd HTAD
$ conda create -n HTAD
$ conda activate HTAD
$ pip install requirements.txt

(ii) calculate the potential TADs and corresponding TAD features

python /path/to/HTAD/src/calcFeatures.py $cooler 10000,20000,40000 outPrefix

then the pickle file of potential TADs will be generated (outPrefix.10k.pkl, outPrefix.20k.pkl, outPrefix.40k.pkl)

(iii) run the HTAD labeler server and train TAD identification model

to start the web server, run:

cd dataLabel
python manage.py runserver

Then visit the corresponding port: e.g. 127.0.0.1:8000

input: the path of your cooler file and feature file of potential TADs, resolution, label(prefix) for current TAD identification model

then the server will select samples (50 for each round) for manual labeling.

The webpage will show corresponding heatmap with TAD marked by yellow triangle.

You can quickly judge whether current TAD is real.

after each round, the server will generate a XX_roundX.h5 model file.

we suggest that the model should be trained in around 10 rounds with the highest resolution to get the best performance.

Note that we could just use the model trained by the highest resolution to predict the real TAD from other resolutions.

(iv) predict the real TADs from potential TADs

given the well trained TAD model file model.h5, run:

python predictTAD.py model.h5 potentialTAD.10k.pkl,potentialTAD.20k.pkl,potentialTAD.40k.pkl 10000,20000,40000 Test

Test.10k.bedpe Test.20k.bedpe Test.40k.bedpe

(v) merge the multi-resolution TAD results

given the sDI value at the highest resolution (e.g. 10kb), run:

python mergeTAD.py 10000 di_check_value.10k 10k.bedpe,20k.bedpe,40k.bedpe final.bedpe

Contact us

Wei Shen: [email protected]

htad's People

Contributors

shenscore 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.