zavolanlab / prune_tree

Prune nh files based on a list of organisms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prune_tree

Prune nh files based on a list of organisms

Input: phylogenetic tree build based on multiz alignments at UCSC reference species Output: prunned tree containing only the species specified in the input

Installation

Install the following dependencies

  • optparse
  • phytools

Run

Rscript prune_tree.R --help
prune_tree.R [OPTIONS] --input_tree [FILE] --reference_organism [string] --organisms [FILE] --output_tree [FILE]

 Prune nh files based on a list of organisms

Options:
	--input_tree=FILE
		Input tree in nh format

	--output_tree=FILE
		Output tree in nh format

	--reference_organism=STRING
		Reference organism (e.g. hg38, hg19)

	--organisms=FILE
		Comma-separated organisms as text file

	--help
		Show this information and die

	--verbose
		Be Verbose

Docker

Pull image

docker pull zavolab/prune_tree

Run

docker run -it zavolab/prune_tree prune_tree.R --help

Singularity

Pull image

singularity pull docker://zavolab/prune_tree

Run

singularity exec prune_trees_latest.sif prune_tree.R --help

About

Prune nh files based on a list of organisms

License:Apache License 2.0


Languages

Language:R 77.4%Language:Dockerfile 22.6%