|
a |
|
b/man/merge_gtex_tcga.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/MergeGtexTcga.R |
|
|
3 |
\name{merge_gtex_tcga} |
|
|
4 |
\alias{merge_gtex_tcga} |
|
|
5 |
\title{Merge gene expression data from GTEx and TCGA datasets} |
|
|
6 |
\usage{ |
|
|
7 |
merge_gtex_tcga( |
|
|
8 |
gtex_data_path, |
|
|
9 |
tcga_exp_path, |
|
|
10 |
output_path = "./merged_gtex_tcga_data.rds" |
|
|
11 |
) |
|
|
12 |
} |
|
|
13 |
\arguments{ |
|
|
14 |
\item{gtex_data_path}{A string that specifies the file path to the GTEx data saved in RDS format.} |
|
|
15 |
|
|
|
16 |
\item{tcga_exp_path}{A string that specifies the file path to the TCGA expression data saved in RDS format. |
|
|
17 |
This should be a data.frame with rows as genes and columns as samples.} |
|
|
18 |
|
|
|
19 |
\item{output_path}{A string that specifies the path where the merged dataset should be saved. |
|
|
20 |
The file is saved in '.rds' format. The default path is "./merged_gtex_tcga_data.rds".} |
|
|
21 |
} |
|
|
22 |
\value{ |
|
|
23 |
A data frame where rows represent genes and columns represent samples. |
|
|
24 |
The data frame contains expression values from both GTEx and TCGA datasets. |
|
|
25 |
It saves the merged dataset to the path specified by 'output_path'. |
|
|
26 |
} |
|
|
27 |
\description{ |
|
|
28 |
This function merges gene expression data obtained from the GTEx (Genotype-Tissue Expression) and TCGA (The Cancer Genome Atlas) datasets. |
|
|
29 |
It is assumed that both datasets are in '.rds' format and have genes as row names. The merged dataset is saved as an RDS file at the specified output path. |
|
|
30 |
} |
|
|
31 |
\details{ |
|
|
32 |
It is assumed that both datasets are in '.rds' format and have genes as row names. |
|
|
33 |
} |
|
|
34 |
\note{ |
|
|
35 |
CRITICAL: The 'output_path' parameter must end with '.rds' to be properly recognized by the function. It is also highly recommended |
|
|
36 |
that the path includes specific identifiers related to the target samples. Please structure the 'output_path' following this pattern: './your_directory/merged.your_sample_type.gtex.tcga.data.rds'. |
|
|
37 |
} |
|
|
38 |
\examples{ |
|
|
39 |
tumor_file <- system.file("extdata", |
|
|
40 |
"removebatch_SKCM_Skin_TCGA_exp_tumor_test.rds", |
|
|
41 |
package = "TransProR") |
|
|
42 |
Normal_file <- system.file("extdata", |
|
|
43 |
"removebatch_SKCM_Skin_Normal_TCGA_GTEX_count_test.rds", |
|
|
44 |
package = "TransProR") |
|
|
45 |
ouput_file <- file.path(tempdir(), "all_data.rds") |
|
|
46 |
|
|
|
47 |
all_data <- merge_gtex_tcga(gtex_data_path = tumor_file, |
|
|
48 |
tcga_exp_path = Normal_file, |
|
|
49 |
output_path = ouput_file) |
|
|
50 |
|
|
|
51 |
} |