shortenCladeName: Shorten Maaslin-compliant or QIIME-compliant taxonomical...

Description Usage Arguments Value Author(s)

Description

Keeps only the last informative bit (containing a __, plus taxid integer if present), for nicer plotting. Function by Levi Waldron.

Usage

1
shortenCladeName(x, separator = "|")

Arguments

x

A vector of QIIME taxonomic names, pipe-separated.

separator

The character used to separate levels of the taxonomy: ";" for QIIME, "|" for Maaslin.

Value

a vector the same length as x, providing only the leaf-level names of the taxonomy.

Author(s)

Levi Waldron and Markus Riester


lwaldron/LeviRmisc documentation built on May 21, 2019, 8:59 a.m.