Closed korjcjeong closed 10 months ago
It seems the TCGAplot R package was not sucessfully installed. To install this package, download TCGAplot R package at https://github.com/tjhwangxiong/TCGAplot/releases/download/v5.0.0/TCGAplot_5.0.0.zip DO NOT INSTALL USING "devtools", PLEASE download the .zip file and install the package locally.
Moreover, there were several dependent R packages for TCGAplot, and you could install these R packages using the following codes.
options("repos"="https://mirrors.ustc.edu.cn/CRAN/")
if(!require("BiocManager")) install.packages("BiocManager",update = F,ask = F)
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")
cran_packages=c("magrittr",
"dplyr",
"tibble",
"ggpubr",
"stringr",
"reshape2",
"psych",
"limma",
"circlize",
"grid",
"fmsb",
"survival",
"survminer",
"forestplot",
"pROC",
"tinyarray",
"ggplot2",
"patchwork",
"ggsci",
"RColorBrewer",
"pheatmap")
Biocductor_packages=c("edgeR",
"org.Hs.eg.db",
"clusterProfiler",
"enrichplot",
"ComplexHeatmap",
"GSVA")
# install packages in CRAN
for (pkg in cran_packages){
if (!require(pkg,character.only=T)){
install.packages(pkg,ask = F,update = F)
require(pkg,character.only=T)
}
}
# install packages in Biocductor
for (pkg in Biocductor_packages){
if (!require(pkg,character.only=T)) {
BiocManager::install(pkg,ask = F,update = F)
require(pkg,character.only=T)
}
}
Based on your codes below: setwd("./rawdata/methy/") load("../tpm.Rdata") library(TCGAbiolinks) methy=methy[rownames(methy) %in% rownames(tpm),] There was 'tpm.Rdata', but it doesn't exist in this distribution.
These codes were used to build the rawdata, and was useless for users unless you hope to know how these built in data were prepared.
Thank you for the quick reply, and I appreciate the script installing other required packages. I have installed all required packages since they are necessary during the TCGAplot installation.
However, I'm uncertain about the following instruction: "To install this package, download the TCGAplot R package at https://github.com/tjhwangxiong/TCGAplot/releases/download/v5.0.0/TCGAplot_5.0.0.zip DO NOT INSTALL USING 'devtools,' PLEASE download the .zip file and install the package locally."
As using ZIP is not an option for me on Mac, I followed these steps:
I also unzip the 'zip' file and use the following commands to successfully install the package:
install.packages('/my_local_path_to/TCGAplot/TCGAplot', repo=NULL, type='source', dependencies=TRUE) Installing package into ‘/usr/local/lib/R/4.3/site-library’ (as ‘lib’ is unspecified)
- installing binary package ‘TCGAplot’ ...
- DONE (TCGAplot)
However, as you can see above, although the package was successfully installed, it still throws an error 'object 'tpm' not found.'
Again, thank you for your assistance.
I have followed the revised instructions using the R-Studio interface for package installation, but it was unsuccessful. It may be that the current ZIP/tar.gz file is only compatible with Windows and is not functional on Mac.
We provide the tar.gz file for Mac soon.
该邮件从移动设备发送
I have followed the revised instructions using the R-Studio interface for package installation, but it was unsuccessful. It appears that the current ZIP/tar.gz file is only compatible with Windows and is not functional on Mac.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I have followed the revised instructions using the R-Studio interface for package installation, but it was unsuccessful. It may be that the current ZIP/tar.gz file is only compatible with Windows and is not functional on Mac.
To install this package for Mac system, download TCGAplot R package at google drive https://drive.google.com/file/d/1y79k-GQKz2b3Uv28eWDVYsCFPKVjm2WC/view?usp=sharing
or at Baidu Pan https://pan.baidu.com/s/1a7-Z5N8C7YLSjTogMeXE_A?pwd=agf7
and install locally.
The Mac version worked! This is a great tool, and thank you so much for your help!
It appears that there is a missing data file or a function to load 'tpm.' The current code is not functioning as expected as shown below.
FYI,
Based on your codes below: setwd("./rawdata/methy/") load("../tpm.Rdata") library(TCGAbiolinks) methy=methy[rownames(methy) %in% rownames(tpm),]
There was 'tpm.Rdata', but it doesn't exist in this distribution.
Thanks.