GithubHelp home page GithubHelp logo

felipelouza / remap Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 2.5 MB

On the numbers of Lyndon factors from alphabet orderings

Makefile 1.76% C 56.97% C++ 39.83% Shell 1.44%
lyndon-factors alphabet-reordering

remap's Introduction

remap

This repository contains a set of methos for reordering the alphabet of a string T[1,n].

We investigate the effect of each alphabet reordering on the total number of Lyndon factors.

Build requirements

An C++ Compiler (e.g. GNU G++)

Example

Compilation:

make

Available options:

-A a	preferred algorithm to use (default 0)
-d D	use the first D documents of the INPUT
-b	read INPUT as binary input 
-f	read INPUT as (default) formatted input (.txt, .fasta or .fastq)
-v	verbose output
-s	compute the number of Lyndon Factors and the maximum length
-o  output converted file
-l  output the lyndon-factors (start positions) to (INPUT.pos)
-L  output the lyndon-factors (substrings) to (INPUT.lyn)
-p P	print the first P Lyndon factors (for debug)
-h	this help message

Notes:

  • Supported extensions are .txt, .fasta and .fastq.

Algorithms:

-A Algorithm Output
0 None Identity alphabet
1 LFS Least Frenquent Symbol
2 MFS Most Frenquent Symbol
7 Random Randomize permutation

Run a test:

./remap -A 7 -v ../dataset/reads.fastq

Output:

Command line:
 ./remap -A 7 -v ../dataset/reads.fastq
d = 10000
N = 946583 bytes
sizeof(int) = 4 bytes
## RANDOM ##
A: G
C: N
G: A
N: C
T: T
##
Number of Lyndon factors: 15
Average length: 63105.53
Maximum length: 605983
##
15	63105.53	605983

remap's People

Contributors

albertiniufu avatar felipelouza avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

albertiniufu

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.