is_phyloseq_format: Is Phyloseq MicrobiomeR Format

Description Usage Arguments Details Value See Also Examples

View source: R/metacoder-formatting.R

Description

This function returns a logical based on weather or not the object is in the phyloseq_format.

Usage

1

Arguments

obj

A Taxmap object.

Details

The "phyloseq_format" is Level 0. in the MicrobiomeR_Formats hierarchy.

Value

A logical (TRUE/FALSE).

See Also

Other Validation: is_analyzed_format, is_basic_format, is_raw_format, order_metacoder_data, validate_MicrobiomeR_format, which_format

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
if(interactive()){
library(MicrobiomeR)
if(is_analyzed_format(MicrobiomeR::raw_silva_2)){
    print("It's phyloseq format!")
} else {
    fmt <- which_format(MicrobiomeR::raw_silva_2)
    print("It's not phyloseq fomrat!")
    print(sprintf("It's %s!", fmt))
}
 }

## End(Not run)

vallenderlab/MicrobiomeR documentation built on Aug. 30, 2019, 11:24 p.m.