PAC_deseq | R Documentation |
PAC_deseq
DESeq2 analysis on PAC_object.
PAC_deseq(
PAC,
model,
deseq_norm = FALSE,
test = "Wald",
fitType = "local",
threads = 1,
pheno_target = NULL
)
PAC |
PAC object containing a Pheno data.frame with samples as row names, an Anno data.frame with sequences as row names and a Counts table with raw counts. The Counts table must have the sample names as column names and sequences as row names. |
model |
Character vector describing the statistical model based on column names in Pheno. |
deseq_norm |
Logical whether to return deseq normalized values or raw counts (default=FALSE). |
test |
Character parsed directly to |
fitType |
Character parsed directly to |
threads |
Integer number of threads to run in parallel. |
pheno_target |
(optional) List with: 1st object being a character indicating the main target column in Pheno. 2nd object being a character vector of the target group(s) in the target Pheno column (1st object). Important: In |
Given a PAC object this function will apply a differential expression analysis using DESeq2.
A list of objects:
1st object - Summarized result table merged with anno(PAC)
2nd object - Target graphs (p-val distribution and volcano)
3rd object - All output from DESeq
https://github.com/Danis102 for updates on the current package.
Other PAC analysis:
PAC_covplot()
,
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()
,
as.PAC()
,
filtsep_bin()
,
map_rangetype()
,
tRNA_class()
# Note, these examples will generate some warnings since data is based on
# heavily down-sampled fastq files, where many sequences receives low counts
# in specific groups.
## Load test data
load(system.file("extdata", "drosophila_sRNA_pac_filt_anno.Rdata",
package = "seqpac", mustWork = TRUE))
## Simple model with embryonic stages using Wald test with local fit (default)
table(pheno(pac)$stage)
output_deseq <- suppressWarnings(PAC_deseq(pac, model= ~stage, threads=2))
## Batch corrected, graphs are generated for 'stage' (=first in the model)
output_deseq <- suppressWarnings(PAC_deseq(pac, model= ~stage + batch,
threads=2))
## Using pheno_target
output_deseq <- suppressWarnings(PAC_deseq(pac,model= ~stage + batch,
pheno_target=list("batch"),
threads=2))
## With pheno_target we can change the direction for the comparison
# Stage5 vs Stage3 (reverse order):
output_deseq <- suppressWarnings(PAC_deseq(pac, model= ~stage + batch,
pheno_target = list("stage", c("Stage5", "Stage3")),
threads=2))
## In the output you find PAC merged results, target plots and output_deseq
names(output_deseq)
tibble::as_tibble(output_deseq$result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.