日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

macOS devtools安装github包失败解决

發布時間:2023/12/14 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 macOS devtools安装github包失败解决 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我在安裝R包STUtility包時,一直處于失敗的狀態
https://ludvigla.github.io/STUtility_web_site/Installation.html

devtools::install_github("jbergenstrahle/STUtility")

最終總是顯示
解決辦法:
首先錯誤中提供的網址是可以下載的
下載后,本地安裝即可

install.packages("~/Desktop/問題/jbergenstrahle-STUtility-1.1-2-gf120348.tar.gz", repos = NULL, type = "source")

這里會提示安裝以下的依賴包

install.packages("zeallot") install.packages("imager") install.packages("Morpho") install.packages("Rvcg") install.packages("spatstat") install.packages("imagerExtra") install.packages("shinyjs") install.packages("ggiraph")

再次安裝就可以成功了

install.packages("~/Desktop/問題/jbergenstrahle-STUtility-1.1-2-gf120348.tar.gz", repos = NULL, type = "source")

測試demo

library(STutility) library(SeuratData) library(Seurat) library(tidyverse) df <- data.frame(samples =c("/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_1/filtered_feature_bc_matrix.h5",'/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_2/filtered_feature_bc_matrix.h5'),spotfiles = c("/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_1/spatial/tissue_positions_list.csv",'/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_2/spatial/tissue_positions_list.csv'),imgs = c("/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_1/spatial/tissue_hires_image.png",'/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_2/spatial/tissue_hires_image.png'),json = c("/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_1/spatial/scalefactors_json.json",'/Volumes/MACPAN/空間轉錄組數據集/BreastCancer/V1_Breast_Cancer_Block_A_Section_2/spatial/scalefactors_json.json')) df?InputFromTable # 依然會過濾一些 se <- InputFromTable(infotable = df, min.gene.count = 100, min.gene.spots = 5,min.spot.count = 500,platform = "Visium")library(foreach) library(parallel) plt <- function(i){print(ggplot() +geom_histogram(data = se[[]], aes(get(i)), fill = "red", alpha = 0.7, color = "gray", bins = 50) +Seurat::DarkTheme() +ggtitle(paste0("Total", i , " per spots")))}pl = list() pl1 <- foreach::foreach(i = c('nFeature_RNA','nCount_RNA'),.packages = c("Seurat","ggplot2")) %dopar% plt(i)gene_attr <- data.frame(nUMI = Matrix::rowSums(se@assays$RNA@counts), nSpots = Matrix::rowSums(se@assays$RNA@counts > 0))plt2 <- function(i){print(ggplot() +geom_histogram(data = gene_attr, aes(get(i)), fill = "red", alpha = 0.7, color = "gray", bins = 50) +Seurat::DarkTheme() +ggtitle(paste0("Total", i , " per gene")))}pl2 <- foreach::foreach(i = c('nUMI','nSpots'),.packages = c("Seurat","ggplot2")) %dopar% plt2(i)print(cowplot::plot_grid(plotlist = c(pl1,pl2)))

結果如下

總結

以上是生活随笔為你收集整理的macOS devtools安装github包失败解决的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。