ds.addPhenoData2ExposomeSet: Add Phenotype data to ExpressionSet

View source: R/ds.addPhenoData2ExposomeSet.R

ds.addPhenoData2ExposomeSetR Documentation

Add Phenotype data to ExpressionSet

Description

Add new phenotype data contained on a data.frame to an ExpressionSet. The ExpressionSet may or may not already have phenotype data. If the data.frame contains a phenotype already present on the ExpressionSet, the server function will throw an exception. The pehnotypes data.frame has to contain an ID column which does not need to contain exactly the same individuals as the ExpressionSet, only the matching individuals will be updated, no new individuals will be introduced or removed from the ExpressionSet

Usage

ds.addPhenoData2ExposomeSet(
  x,
  pheno,
  identifier_ExposomeSet = "ID",
  identifier_new_phenotypes = NULL,
  newobj.name = NULL,
  complete_cases = TRUE,
  datasources = NULL
)

Arguments

x

character Name of the ExpressionSet on the study server

pheno

character Name of the data.frame with the new phenotypes on the study server

identifier_ExposomeSet

character (default "ID") Name of the ID column on the ExposomeSet

identifier_new_phenotypes

character (default "ID") Name of the ID column on the phenotypes data.frame

newobj.name

character (default NULL) If NULL, the original ExpressionSet will be overwritten, otherwise the new ExpressionSet will be assigned to a variable named after this argument

complete_cases

bool (default TRUE) If TRUE only the matching individuals between the ExpressionSet and the phenotypes table will be included on the resulting ExpressionSet. If FALSE all the individuals on the input ExpressionSet will be on the output ExpressionSet

datasources

a list of DSConnection-class (default NULL) objects obtained after login

Value

This function does not have an output. It creates (or overwrites) a data frame on the study server.


isglobal-brge/dsExposomeClient documentation built on March 5, 2024, 12:26 p.m.