|
a |
|
b/man/limma_analyze.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/LimmaAnalyze.R |
|
|
3 |
\name{limma_analyze} |
|
|
4 |
\alias{limma_analyze} |
|
|
5 |
\title{Differential Gene Expression Analysis using limma and voom} |
|
|
6 |
\usage{ |
|
|
7 |
limma_analyze( |
|
|
8 |
tumor_file, |
|
|
9 |
normal_file, |
|
|
10 |
output_file, |
|
|
11 |
logFC_threshold = 2.5, |
|
|
12 |
p_value_threshold = 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}{Threshold for log fold change for marking up/down-regulated genes.} |
|
|
23 |
|
|
|
24 |
\item{p_value_threshold}{Threshold for p-value for filtering significant genes.} |
|
|
25 |
} |
|
|
26 |
\value{ |
|
|
27 |
A data frame of differential expression results. |
|
|
28 |
} |
|
|
29 |
\description{ |
|
|
30 |
This function performs differential gene expression analysis using the 'limma' package with voom normalization. |
|
|
31 |
It reads tumor and normal expression data, merges them, filters low-expressed genes, |
|
|
32 |
normalizes the data, performs limma analysis, and outputs the results along with information |
|
|
33 |
on gene expression changes. |
|
|
34 |
} |
|
|
35 |
\examples{ |
|
|
36 |
# Define file paths for tumor and normal data from the data folder |
|
|
37 |
tumor_file <- system.file("extdata", |
|
|
38 |
"removebatch_SKCM_Skin_TCGA_exp_tumor_test.rds", |
|
|
39 |
package = "TransProR") |
|
|
40 |
normal_file <- system.file("extdata", |
|
|
41 |
"removebatch_SKCM_Skin_Normal_TCGA_GTEX_count_test.rds", |
|
|
42 |
package = "TransProR") |
|
|
43 |
output_file <- file.path(tempdir(), "DEG_limma_voom.rds") |
|
|
44 |
|
|
|
45 |
DEG_limma_voom <- limma_analyze( |
|
|
46 |
tumor_file = tumor_file, |
|
|
47 |
normal_file = normal_file, |
|
|
48 |
output_file = output_file, |
|
|
49 |
logFC_threshold = 2.5, |
|
|
50 |
p_value_threshold = 0.01 |
|
|
51 |
) |
|
|
52 |
|
|
|
53 |
# View the top 5 rows of the result |
|
|
54 |
head(DEG_limma_voom, 5) |
|
|
55 |
} |
|
|
56 |
\references{ |
|
|
57 |
limma:Linear Models for Microarray and RNA-Seq Data User’s Guide. |
|
|
58 |
For more information, visit the page: |
|
|
59 |
https://www.bioconductor.org/packages/release/bioc/vignettes/limma/inst/doc/usersguide.pdf |
|
|
60 |
} |