Giter Club home page Giter Club logo

co-phylog's Introduction

#co-phylog tools set

Please cite: โ€œCo-phylog: an assembly-free phylogenomic approach for closely related organisms H Yi, L Jin Nucleic acids research 41 (7), e75-e75โ€

======INSTALL AND USAGE========

  1. Compile:

gcc fasta2co.v18.3.c -O6 -Wall -o fasta2co ;

gcc fastq2co.c -O6 -Wall -o fastq2co ;

gcc co2dist2.c -O6 -Wall -o co2dist ;

gcc readco.c -Wall -o readco ;

  1. Usage:

fasta2co : Convert fasta file to co file ; Usage : ./fasta2co <.fasta> <.co>

fastq2co: Convert fastq file to co file ; Usage : ./fasta2co <.fastq> <.co>

readco: read binary co file Usage : ./readco <string/hex>

co2dist: generated pairwise distance from co files Usage: ./co2dist > *.dist

dis_matr_ge.pl: Generated standard distance matrix and orangnism name code from pairwise distances Usage : perl ./Pl/dis_matr_ge.pl [pairwise distances file] [organism number] >[output file]

nwkrename.pl When using 'neighbor' in Phylip package to generated tree file. if you need substitute the output code using origin organism name,you could use this program Usage: perl ./Pl/nwkrename.pl [outtree/outfile] > [output file]

EXAMPLE:

tar xzvf example_brucella.tar.gz
cp example_brucella/* algorithm/Genomes/
cd algorithm

1) Build cofile files using complete genomes

	for i in `ls Genomes`;
		do ./C/fasta2co ./Genomes/$i ./CO-index/$i.co ;
	done;

You can also bulid co file using fastq NGS data by:
   for i in `ls Genomes`;
       do ./C/fasta2co ./Genomes/$i ./CO-index/$i.co ;
	done;

2) Generate pairwise distances using index files
./C/co2dist CO-index >dist

3) format the pairwise distances to standard distance matrix
        perl ./Pl/dis_matr_ge.pl dist 15 >dis_matrix

4) If the 'neighbor' contained in Phylip package has been installed then
		neighbor <<END
					dis_matrix
					Y
		        END

5) If want to replace the namecode by organisms' name								    
	perl ./Pl/nwkrename.pl outtree

co-phylog's People

Contributors

yhg926 avatar kloetzl avatar

Watchers

James Cloos 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.