create_dummy_txi | R Documentation |
This function will create a dummy txi object that will have placeholders for some of the tables.
create_dummy_txi(tables, txOut = FALSE)
tables |
A |
txOut |
Are the counts corresponding to transcripts abundance? Default:
|
This function is useful if you only have access to raw counts or abundance
tables. Otherwise, it is recommended to use the import_kallisto
function as it will create a complete and valid txi
object.
The txi
will contains extra elements to specify how it was created
and will provide extra checks to avoid using it incorrectly with the other
functions. For instance, to use the produce_pca_df
function, the
txi
must have a valid abundance
table. If the dummy_txi
was created without such a table, it will return an error message to avoid
producing an invalid result.
You have to provide at least the raw counts or the abundance table **and**
the corresponding annotation in the same format as the one produced by the
anno:prepare_anno
function.
The dummy_txi
object.
txi <- get_demo_txi()
lst <- list()
lst$counts <- txi$counts
lst$abundance <- txi$abundance
lst$anno <- txi$anno
# We then create a dummy txi object
dummy_txi <- create_dummy_txi(txi)
# This dummy_txi contains a placeholder for the length matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.