Code Monkey home page Code Monkey logo

motif-convo's Introduction

motif-Convo

Extracts features using motif convolution

Installation

python -m pip install git+https://github.com/boooooogey/motif-Convo.git

How to use

To run it:

motifConvolve tfextract --meme meme_file --bed bed_file --genome genome.fa --mode max/average --out matrix_out_file
  • meme_file is a MEME motif file.
  • bed_file is a bed file that contains ATAC peaks.
  • genome.fa is the FASTA file for the genome.
  • After it calculates convolutions of motifs and peaks, it pools them either with max or average. You can specify this with --mode. The default is max.
  • Once the execution is finished, it writes the resulting matrix to matrix_out_file . Rows of the matrix correspond to peaks, and columns correspond to motifs. There are 4 additional columns: GC_ratio, GC_pattern, CG_pattern, and Masked_ratio. GC_ratio is the ratio of the total number of G and C to the length of a peak. GC_pattern is the ratio of the GC pattern and CG_pattern is the ratio of the CG pattern within a peak. Masked_ratio is the ratio of the repressed sites to the length.
  • You can change the batch size with --batch. It may affect the execution time. The default is 128.
  • There is --window flag. Using it, you can change the window size around peaks. The default is 240.

motif-convo's People

Contributors

boooooogey avatar mchikina avatar

Watchers

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