Description Usage Arguments Value Examples
.manageLibraryStrategy
by default converts between different formats
of library strategy strings and offers a few other tasks
related to library strategies
1 2 3 4 5 6 7 | .manageLibraryStrategy(
x,
input,
output,
task = "conv",
mismatch.ignore = FALSE
)
|
x |
Character vector to be converted |
input |
String denoting the input format (see below) |
output |
String denoting the output format (see below) |
task |
String denoting the task to be performed (see below) |
mismatch.ignore |
Logical denoting whether mismatches are allowed (if TRUE and no match, original character is returned) |
Library strategy in a desired format
Format types:
can (canonical) - as exists within the database
short (shorthand) - shortened version of the canonical form
syn (synonyms) - potential synonym
Available tasks:
conv - convert between formats
ex - produce a list of library strategies
check_can - check if x is in canonical form
Currently, the function supports the following conversions:
can -> short, i.e. input = "can", ouput = "short"
syn -> can, i.e. input = "syn", output = "can"
1 2 3 4 5 6 7 8 9 10 11 | # Convert into short form
# .manageLibraryStrategy("RNA-Seq", input = "can", output = "short")
# Convert into canonical form
# .manageLibraryStrategy("RNA", input = "syn", output = "can")
# List supported formats for library strategy
# .manageLibraryStrategy(task = "ex")
# Check whether library strategy is in canonical form
# .manageLibraryStrategy("RNA-Seq", task = "check_can")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.