LinuxCommandLibrary

mashtree

Combine multiple directory trees into one

TLDR

Fastest method in mashtree to create a tree from fastq and/or fasta files using multiple threads, piping into a newick file

$ mashtree --numcpus [12] [*.fastq.gz] [*.fasta] > [mashtree.dnd]
copy

Most accurate method in mashtree to create a tree from fastq and/or fasta files using multiple threads, piping into a newick file
$ mashtree --mindepth [0] --numcpus [12] [*.fastq.gz] [*.fasta] > [mashtree.dnd]
copy

Most accurate method to create a tree with confidence values (note that any options for mashtree itself has to be on the right side of the --)
$ mashtree_bootstrap.pl --reps [100] --numcpus [12] [*.fastq.gz] -- --min-depth [0] > [mashtree.bootstrap.dnd]
copy

SYNOPSIS

mashtree [options] [directory]

PARAMETERS

directory
    The directory to display as a tree. If not specified, the current directory is used.

-d, --dirs-only
    List directories only.

-f, --full-path
    Print the full path prefix for each file.

-i, --no-indent
    Do not print indentation lines.

-n, --no-color
    Turn colorization off always.

-v, --version
    Display version information.

-H, --HTML
    Output HTML format.

-p, --protection
    Print file type and protection

DESCRIPTION

The `mashtree` command is a utility designed to visually represent directory structures as trees, similar to the standard `tree` command, but with enhanced color support for different file types, improving readability and ease of navigation. It allows users to quickly understand the hierarchy and organization of files and directories within a system. The tool offers customization options for the depth of the tree, what types of files to include or exclude, and how different file types are visually highlighted. It's particularly useful for developers, system administrators, and anyone who frequently needs to examine complex directory structures.

CAVEATS

The behavior of `mashtree` might vary slightly depending on the specific implementation and the system it is running on. Customization options may be less extensive than some other tree-visualization tools. Older implementations might not offer the level of customization and color scheme support found in newer versions.

COLORIZATION

Colorization uses different colors to different file types. The details vary depending on the configuration.

HISTORY

The history of `mashtree` is less widely documented compared to core Unix utilities. It likely emerged as a community tool to provide enhanced visual presentation of directory structures, building upon the functionality of `tree` and `ls`. The command's focus on colorization and customization makes it a valuable asset for users who prefer a more intuitive and visually appealing representation of their file systems.

SEE ALSO

tree(1), ls(1), find(1)

Copied to clipboard