Code Monkey home page Code Monkey logo

loopextraction's Introduction

loopExtraction

Explanation for the terminal inputs:

  • --HiC: To pass the path to the HiC matrix. Data is assumed to be in NumPy format. example: HiC.npy.
  • --bin-size: Size of a bin in HiC matrix provided. Not used right now other than writing outputs to a file with start and end loci.
  • --chromosome-name: Name of the chromosome the HiC matrix belongs to. Used for the output file.
  • --model: Name of the model to be fitted to the data. The name should correspond to a file under model folder. Within the file there should be a function named model that returns the necessary functions to fit the data. Check one_lambda_stickiness_l2_norm.py file under model folder for an example.
  • --model-output: Path to write the output to. The output file is tab separated file with first three columns are chromosome names, start and end positions, and the rest is the corresponding parameters.
  • --window-size: Size of the patch to be taken from the diagonal of the HiC matrix. The default is 400.
  • --overlap: Overlap between the consecutive patches. The default is 200.
  • --transformation: The transformation to be applied on the patches. It should correspond to a function name in transformations.py. The default is identity. There is currently one transformation in transformation.py which is log_transform. It is used for MicroHiC.

Example run:

python fit_model.py --HiC data/4DNFI9GMP2J8_chr10_res_8000_unbalanced.npy --bin-size 8000 --chromosome-name chr10 --model one_lambda_stickiness_l2_norm --model-output local/4DNFI9GMP2J8_chr10_res_8000_unbalanced.tsv --transformation log_transform

loopextraction's People

Contributors

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