Learn R Programming

miRNAmeConverter (version 1.0.2)

checkMiRNAName: Check miRNA names for validity

Description

This function checks for a given set of mature 'miRNAs' (names) if the names are listed in any miRBase version respectively.

Usage

checkMiRNAName(this, miRNAs, correct = TRUE, verbose = FALSE)

## S3 method for class 'MiRNANameConverter': checkMiRNAName(this, miRNAs, correct = TRUE, verbose = FALSE)

Arguments

this
Object of class 'MiRNANameConverter'
miRNAs
A character vector of miRNA names
correct
A boolean indicating if formatted miRNA names shall be returned (e.g. HSA-MIR-1 -> hsa-miR-1)
verbose
A boolean to either show more (TRUE) or less information (FALSE)

Value

  • A character vector containing a set of valid miRNA names

Methods (by class)

  • MiRNANameConverter: Method for checking for valid miRNA names

Details

This function takes the input miRNA names and checks each one of them for validity. The check is done by taking each miRNA and searches for an existing entry in the miRBase database among all versions. miRNAs that are listed in any version will be comprised in the return vector respectively. If no valid miRNA was detected, a character(0) will be returned.

Examples

Run this code
nc = MiRNANameConverter() # Instance of class 'MiRNANameConverter'
# Test with correct inputs
checkMiRNAName(nc, miRNAs = c("hsa-miR-29a", "hsa-miR-642"))

Run the code above in your browser using DataLab