bc_create_BarcodeObj | R Documentation |
Create a BarcodeObj object from extracted barcodes data
bc_create_BarcodeObj(x, sample_name = NULL, metadata = NULL, ordered = TRUE)
## S4 method for signature 'matrix'
bc_create_BarcodeObj(x, sample_name = NULL, metadata = NULL)
## S4 method for signature 'data.frame'
bc_create_BarcodeObj(x, sample_name = NULL, metadata = NULL)
x |
The barcodes data, it can be matrix, data.frame with each row as a barcode each column as a sample. The row names should be given as the barcode sequences, and the column names can be given as the sample names. |
sample_name |
A character vector, optional, specifying the sample name. |
metadata |
A data.frame, optional, specifying the metadata of each sample. The row names of the metadata should be the same as the sample names. |
ordered |
A logical value. If the value is true, the return barcodes (UMI-barcode tags) are sorted by the read counts. |
A BarcodeObj object.
data(bc_obj)
m = bc_2matrix(bc_obj)
bc_create_BarcodeObj(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.