Learn R Programming

miRNAmeConverter (version 1.0.2)

saveResults: Save miRNA translation results

Description

This function saves the data frame returned from translateMiRNAName inclusive the attribute 'description'.

Usage

saveResults(this, df, outputFilename, outputPath, sep = "\t",
  quote = FALSE, verbose = FALSE, ...)

## S3 method for class 'MiRNANameConverter,data.frame': saveResults(this, df, outputFilename, outputPath, sep = "\\t", quote = FALSE, verbose = FALSE, ...)

Arguments

this
Object of class 'MiRNANameConverter'
df
A data.frame with translated results
outputFilename
A filename for the output file, such as 'filename.txt'
outputPath
A file path (character string) to the target directory
sep
Separator
quote
If all data values shall be surrounded by ('"')
verbose
Boolean to either show more (TRUE) or less information (FALSE)
...
Arguments that can be passed on to write.table

Methods (by class)

  • this = MiRNANameConverter,df = data.frame: Method for saving translation results

Details

This function saves a data frame that has been returned by translateMiRNAName. The attribute 'description' of the data frame will be stored as well.

See Also

write.table for additional parameter values for the '...' argument, attr for how to retrieve attributes

Examples

Run this code
nc = MiRNANameConverter(); # Instance of class 'MiRNANameConverter'
res = translateMiRNAName(nc, miRNAs = c("hsa-miR-140", "hsa-miR-125a"),
                           versions = c(15, 16, 20, 21))
# Save translation results
saveResults(nc, res)

Run the code above in your browser using DataLab