|
a |
|
b/man/DESeq2_analyze.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/DESeq2Analyze.R |
|
|
3 |
\name{DESeq2_analyze} |
|
|
4 |
\alias{DESeq2_analyze} |
|
|
5 |
\title{Differential Gene Expression Analysis using 'DESeq2'} |
|
|
6 |
\usage{ |
|
|
7 |
DESeq2_analyze( |
|
|
8 |
tumor_file, |
|
|
9 |
normal_file, |
|
|
10 |
output_file, |
|
|
11 |
logFC = 2.5, |
|
|
12 |
p_value = 0.01 |
|
|
13 |
) |
|
|
14 |
} |
|
|
15 |
\arguments{ |
|
|
16 |
\item{tumor_file}{Path to the tumor data file (RDS format).} |
|
|
17 |
|
|
|
18 |
\item{normal_file}{Path to the normal data file (RDS format).} |
|
|
19 |
|
|
|
20 |
\item{output_file}{Path to save the output DEG data (RDS format).} |
|
|
21 |
|
|
|
22 |
\item{logFC}{Threshold for log fold change.} |
|
|
23 |
|
|
|
24 |
\item{p_value}{Threshold for p-value.} |
|
|
25 |
} |
|
|
26 |
\value{ |
|
|
27 |
A data frame of differential expression results. |
|
|
28 |
} |
|
|
29 |
\description{ |
|
|
30 |
'DESeq2': Differential gene expression analysis based on the negative binomial distribution. |
|
|
31 |
This function utilizes the 'DESeq2' package to conduct differential gene expression analysis. |
|
|
32 |
It processes tumor and normal expression data, applies DESeq2 analysis, |
|
|
33 |
and outputs the results along with information on gene expression changes. |
|
|
34 |
} |
|
|
35 |
\details{ |
|
|
36 |
The DESeq2 methodology is based on modeling count data using a negative binomial distribution, |
|
|
37 |
which allows for handling the variability observed in gene expression data, especially in |
|
|
38 |
small sample sizes. This approach is well-suited for RNA-Seq data analysis. |
|
|
39 |
} |
|
|
40 |
\examples{ |
|
|
41 |
# Define file paths for tumor and normal data from the data folder |
|
|
42 |
tumor_file <- system.file("extdata", |
|
|
43 |
"removebatch_SKCM_Skin_TCGA_exp_tumor_test.rds", |
|
|
44 |
package = "TransProR") |
|
|
45 |
normal_file <- system.file("extdata", |
|
|
46 |
"removebatch_SKCM_Skin_Normal_TCGA_GTEX_count_test.rds", |
|
|
47 |
package = "TransProR") |
|
|
48 |
output_file <- file.path(tempdir(), "DEG_DESeq2.rds") |
|
|
49 |
|
|
|
50 |
DEG_DESeq2 <- DESeq2_analyze( |
|
|
51 |
tumor_file = tumor_file, |
|
|
52 |
normal_file = normal_file, |
|
|
53 |
output_file = output_file, |
|
|
54 |
2.5, |
|
|
55 |
0.01 |
|
|
56 |
) |
|
|
57 |
|
|
|
58 |
# View the top 5 rows of the result |
|
|
59 |
head(DEG_DESeq2, 5) |
|
|
60 |
|
|
|
61 |
} |
|
|
62 |
\references{ |
|
|
63 |
DESeq2:Differential gene expression analysis based on the negative binomial distribution. |
|
|
64 |
For more information, visit the page: |
|
|
65 |
https://docs.gdc.cancer.gov/Data/Bioinformatics_Pipelines/Expression_mRNA_Pipeline/ |
|
|
66 |
} |