wgs_function: [Compiled wgs analyisis

Description Usage Arguments Author(s) Examples

Description

this function reformats WGS data to prepare it for analyisis

Usage

1
wgs_function(df, pathway.file)

Arguments

df

wgs.counts or wgs.ra

pathway.file

A file referencing the pathway category to which each cog belongs

Author(s)

atomczik

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (df, pathway.file) 
{
    cog.path <- cog.path.ref(pathway.file)
    cog.cv.ra <- cog_cv_ra(df)
    cog.path.cv.ra <- merge(cog.path, cog.cv.ra, by = "cog.name")
    cog.path.cv.ra <- cog.path.cv.ra[order(cog.path.cv.ra$pathway.name), 
        ]
    return(cog.path.cv.ra)
  }

dlemas/microbes documentation built on May 15, 2019, 9:15 a.m.