Description Usage Arguments Value Author(s) Examples
Take a data frame of droplet counts and returns only the raw "PP", "PN", "NP" and "NN" counts, plus any additional columns specified.
1 2 3 4 5 6 7 |
df |
A data frame with droplet count columns in one of the following formats:
|
rows |
A vector of rows (numbers or well names) to keep from the
original data frame. If set to |
rowID |
If set, this field is used as the row names. If |
keepCols |
A vector of columns to keep from |
keepColNames |
A vector of new column names for |
A data frame with the counts in the PP
, PN
, PN
and PN
convention.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Take a data frame with row names given by the well names. Get a simple
## count of droplets in each cluster.
parseClusterCounts(KRAScounts)
## Keep only the row numbers 3, 6 and 9.
parseClusterCounts(KRAScounts, rows=c(3, 6, 9))
## Keep only the rows labelled "F03", "A04", "D04".
parseClusterCounts(KRAScounts, rows=c("F03", "A04", "D04"))
## Take a data frame with a 'Well' column and do the same as above.
parseClusterCounts(KRAScountsWellCol, rowID="Well")
## Keep the 'InputAmount' column.
parseClusterCounts(KRAScounts, keepCols=c("InputAmount"))
## Keep the 'InputAmount' column and rename it.
parseClusterCounts(KRAScounts, keepCols=c("InputAmount"),
keepColNames=c("NanogramsIn"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.