read.features {SIAMCAT}R Documentation

Read feature file

Description

This file reads in the tsv file with features and converts it into a matrix.

The file should be oragnized as follows: features (in rows) x samples (in columns).

First row should contain sample labels (consistent with label data), while the first column should contain feature labels (e.g. taxonomic identifiers). The remaining entries are expected to be real values >= 0 that quantify the abundance of each feature in each sample.

Usage

read.features(fn.in.feat, verbose = 0)

Arguments

fn.in.feat

name of the tsv file containing features

verbose

control output: 0 for no output at all, 1 for information about progress and time, defaults to 0

Value

otu_table containing features from the file

Examples

    # run with example data
    fn.feat <- system.file('extdata',
    'feat_crc_study-pop-I_N141_tax_profile_mocat_bn_specI_clusters.tsv',
    package = 'SIAMCAT')

    features <- read.features(fn.feat)

[Package SIAMCAT version 1.0.0 Index]