Giter VIP home page Giter VIP logo

forces's Introduction

RNA motif forces

A set of tools to calculate the "force" acting on the maximum length of complementary segments in a given transcript, dinucleotide motif, and sequence complexity

Installation

Docker: easiest path

docker pull TODO

Alternatively, build the image from Dockerfile:

docker build . -t forces

The build is based on debian:bullseye and it requires the forces.tgz source tarball.

Compilation:

In directory src/xds_calculation:

g++ -O3 -o fasta_xds calculate_xds.cpp 
g++ -O3 -o window_scan scan_window.cpp

Install the built executables into PATH

In directory src/python

python3 setup.py build && python3 setup.py install

Usage:

  • Complexity calculation:
python get_complexity.py "YOUR SEQUENCE HERE"
  • Double stranded force calculation in scanning window (of given window_length, sliding from start position by shift_size until end position is reached on a given chromosome. The human genome assembly has to be provided as a fasta file. Output is provided per line for each window):
window_scan fasta_file_with_genome chromosome start stop shiftsize window_length outputfilename
  • Double stranded force calculation per each individual sequence provided in a fastafile:
fasta_xds fastafilename
  • CpG force calculation in scanning window:
compute_sliding_window_force.py [-h] [-L WINDOW] [-c CONTIG] [-d DIMER] [-e END] [-s START] fasta_infile

Arguments CONTIG to use, START, END and WINDOW length are optional. DIMER defaults to CG.

  • CpG force calculation for given coordinates:
compute_force_from_regions.py [-h] [-d DIMER] [-L MIN_LENGTH] [-s] fasta_infile coordinate_file

Input file format for coordinate_file:

contig	start	end	OTHER_OPTIONAL_COLUMNS

If -s is specified, strand (+/-) is needed as well:

contig	start	end	strand	OTHER_OPTIONAL_COLUMNS

Regions shorter than MIN_LENGTH are removed. Output: the same as input plus an extra column with the force.

forces's People

Contributors

tangeprestige avatar sulcgroup avatar

Stargazers

Alexander Solovyov avatar

Watchers

 avatar

Forkers

ss6025

forces's Issues

issue with dockerfile

ADD forces.tgz /build

remove this line and replace it with
ADD src /build/src

in this way, you don't need tar ball and just need to clone repository and build the container from here.

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.