Skip to content
RetroWWUPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

NTM logo

Description

NewickTreeModifier (NTM) is a tool to prune a reference Newick tree to selected species by using the ete3 package. It is especially useful for paPAML users, as it creates all necessary paPAML input files by unifying the provided tree and sequences and creating a corresponding CTL file.

Installation

NTM is implemented in Python3 which needs to be installed by the user. Package dependencies are os (https://docs.python.org/3/library/os.html), argparse (https://docs.python.org/3/library/argparse.html) and ete3 (http://etetoolkit.org/download/).

Conda

conda create -n ntm
conda activate ntm
conda install -c etetoolkit ete3 

Install NTM into conda environment

(I assume that you have conda installed in $HOME/anaconda3)

wget -P $HOME/anaconda3/envs/ntm/bin https://raw.githubusercontent.com/RetroWWU/ntm/main/NTM.py
wget -P $HOME/anaconda3/envs/ntm/bin https://raw.githubusercontent.com/RetroWWU/ntm/main/NTM_Functions.py
chmod u+x $HOME/anaconda3/envs/ntm/bin/NTM.py

Usage

NTM.py [-h] -t TREE -f FASTA [-n NAME] [-d DIR] [--acro] [--ctl] [--rmd]

Required arguments

-t TREE, --tree TREE  	path to newick file or newick tree string
-f FASTA, --fasta FASTA	path to fasta file or fasta string

Optional arguments

-h, --help            	show this help message and exit
-n NAME, --name NAME  	name of output files
-d DIR, --dir DIR     	path to output directory
--acro                	rename species names to acronyms (e.g. Homo_sapiens → hom_sap)
--ctl                 	create CTL file for paPAML
--rmd                 	remove duplicate headers from FASTA

More details are available in our publication.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages