View source: R/seqpac_S4classes.R
as.PAC | R Documentation |
as.PAC
Converts an S3 PAC object (list) to an S4 PAC object
as.PAC(from)
from |
S3 PAC-object containing at least a Pheno table with samples as row names, Anno table with sequences as row names and a Count table with raw counts (columns=samples, rows=sequences). |
Seqpac comes with two versions of the PAC object, either S4 or S3. The S3 PAC is simply a list where each object can be received using the $-sign. The S4 version is a newer type of R object with predefined slots, that is received using the @-sign. This function converts an S3 PAC object (list) to an S4 PAC object. You can also use the S4 coercion method "as" to turn an S4 PAC into an S3. See examples below.
An S4 PAC object.
https://github.com/Danis102 for updates on the current package.
Other PAC analysis:
PAC_covplot()
,
PAC_deseq()
,
PAC_filter()
,
PAC_filtsep()
,
PAC_gtf()
,
PAC_jitter()
,
PAC_mapper()
,
PAC_nbias()
,
PAC_norm()
,
PAC_pca()
,
PAC_pie()
,
PAC_saturation()
,
PAC_sizedist()
,
PAC_stackbar()
,
PAC_summary()
,
PAC_trna()
,
filtsep_bin()
,
map_rangetype()
,
tRNA_class()
load(system.file("extdata", "drosophila_sRNA_pac_filt_anno.Rdata",
package = "seqpac", mustWork = TRUE))
# check type
class(pac)
isS4(pac)
# Turns S4 PAC object into a S3
pac_s3 <- as(pac, "list")
# Turns S3 PAC object into a S4
pac_s4 <- as.PAC(pac_s3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.