R/tcgaDccFullnameTranslator.R

#########################################################################/**
# @set "class=character"
# @RdocMethod tcgaDccFullnameTranslator
#
# @title "Translates a TCGA DCC fullname"
#
# \description{
#   @get "title" into a comma separated format.
# }
#
# @synopsis
#
# \arguments{
#  \item{name}{A @character string.}
#  \item{...}{Not used.}
#  \item{set}{...}
# }
#
# \value{
#   Returns a @character string.
# }
#
# @author
#
# \references{
#   [1] The TCGA Network, \emph{TCGA Data Primer - Version 1.0}, July 2008.\cr
# }
#
# \seealso{
#   @seemethod "parseTcgaDccArchiveName".
# }
#
# @keyword "file"
#*/######################################################################### 
setMethodS3("tcgaDccFullnameTranslator", "character", function(name, ..., set=NULL) {
  path <- getPath(set);
  name <- basename(path);
  parts <- parseTcgaDccArchiveName(name);
  fields <- c("domain", "tumorType", "platform", "version");
  paste(parts[fields], collapse=",");
}) # tcgaDccFullnameTranslator()


############################################################################
# HISTORY:
# 2009-06-07
# o Created.
############################################################################

Try the aroma.tcga package in your browser

Any scripts or data that you put into this service are public.

aroma.tcga documentation built on May 2, 2019, 4:09 p.m.