Description Usage Arguments Details Value Examples
Checks for the presence of labels and returns defaults
1 2 3 4 5 6 7 | .makeLabels(
x,
labels,
pattern = ".(fastq|fq|bam|sam|cram).*",
col = "Filename",
...
)
|
x |
A data.frame with a column titled "Filename" |
labels |
Named vector of labels for plotting |
pattern |
character Regular expression to remove from filenames |
col |
character Column to use for generating labels |
... |
Not used |
Takes a named vector of labels and checks for the correct fields. If no vector is supplied, returns the file names missing the specified pattern, which defaults to removing the suffixes fastq(.gz), fq(.gz), bam, sam or cram.
Named character vector
1 2 3 | f <- paste0(c("File1", "File2"), ".fastq")
df <- data.frame(Filename = f, stringsAsFactors = FALSE)
ngsReports:::.makeLabels(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.