Giter Site home page Giter Site logo

edsrand's Introduction

EDSRand

Generate a random Elastic Degenerate String (EDS) using the DNA alphabet. This program runs under Python 2.7 and requires the Numpy package to be installed too.

Usage example:

python EDSRand.py 100

This creates an EDS with total size N = 100.

ATCGATGGG{T,C}AACTT{T,G}AG{G,T}CCGGTTTATATTGAT{T,C}CCTA{T,G}{T,A}{A,T}A{T,A}GGGGGTCCTTTGCTTGCTGTTG{A,G}CTC{T,G}TGAGTGAGCTTGCGAGATA

N is the only required parameter of the program.

Optional parameters include:

  • --P_deg The maximum percentage of positions in the sequence that are degenerate (default=10)
  • --P_eps The maximum percentage of degenerate segments to contain Epsilon (default=0)
  • --S_max The maximum size (number of strings) in a degenerate segment (default=2)
  • --L_max The maximum length of each string in a degenerate segment (default=1)

SynthesiseRandomEDS

Generates a random Elastic Degenerate String (EDS) of size n, where degenerate positions count as 1. To compile this program:

g++ synthesiseRandomEDS.cpp -o synthesise -std=c++11

And to run it:

./synthesise -n <int> -d <int> -Smax <int> -Lmax <int> -o <string>

The parameters that must be supplied are:

  • -n The size or number of positions in the ED string
  • -d The percentage of positions in the text which are degenerate
  • -Smax The maximum size of the set at any degenerate position
  • -Lmax The upper bound on length of any string in a degenerate position
  • -o The desired name of the output file

getEDSsize

Also included is a little tool (getEDSsize) which you can use to find the number of positions (n) and total size (N) of an EDS string (counting degenerate positions as 1). Use it like so:

python getEDSsize.py file.eds

It will count DNA characters (including 'N') and print out the number of positions (n) and total number of characters (N) in the EDS file. e.g.

n: 9000, N:10000

License, e.t.c.

To create EDS files using genomic data (reference sequence + VCF file), please use the tool EDSO

GNU GPL 3.0 (2018) Ahmad Retha and Fatima Vayani

edsrand's People

Contributors

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