会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
-bonjour
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
1
2
3
4
5
下一页
2023年5月25日
try catch
摘要: 点击查看代码 ``` tryCatch(libray(xx),warning = function(w){print("出现警告")}, error=function(e){print("出现错误")}, finally={ print("导入ggplot2包") library(ggplot2)
阅读全文
posted @ 2023-05-25 17:16 Bonjour_!
阅读(64)
评论(0)
推荐(0)
2023年4月20日
保存GSEA图片时
摘要: pdf("test.pdf", onefile = FALSE,width = 8,height = 5) p6 dev.off()
阅读全文
posted @ 2023-04-20 16:46 Bonjour_!
阅读(12)
评论(0)
推荐(0)
2023年4月10日
将不同长度的list 转变为data.frame
摘要: 点击查看代码 ``` as.data.frame(t(sapply(msigdbr_list, "[", i = 1:max(sapply(msigdbr_list, length))))) ```
阅读全文
posted @ 2023-04-10 11:45 Bonjour_!
阅读(65)
评论(0)
推荐(0)
2023年3月22日
cellchat 创建对象报错 data = input.data 换成 input.data
摘要: 
阅读全文
posted @ 2023-03-22 16:17 Bonjour_!
阅读(69)
评论(0)
推荐(0)
2023年2月14日
一次解决 每次新建jupyter需要libraryR包
摘要: 每次加载R包让人很烦 可以cd到R/etc/ ,vim Rprofile.site,并写入 点击查看代码 .First <- function(){ library(data.table) library(Seurat) library(dplyr) library(ggplot2) library
阅读全文
posted @ 2023-02-14 09:58 Bonjour_!
阅读(99)
评论(0)
推荐(0)
2023年2月7日
lapply(.packages(all.available = TRUE), function(xx)library(xx,character.only = TRUE))
摘要: lapply(.packages(all.available = TRUE), function(xx)library(xx,character.only = TRUE))
阅读全文
posted @ 2023-02-07 14:25 Bonjour_!
阅读(68)
评论(0)
推荐(0)
2023年1月9日
拆分不平衡列表
摘要: 点击查看代码 library(splitstackshape) new.data = cSplit(marker4,"V1",";","long", makeEqual = FALSE)
阅读全文
posted @ 2023-01-09 10:20 Bonjour_!
阅读(63)
评论(0)
推荐(0)
2022年11月8日
nohup setsid $ ...
摘要: 参考链接:http://blog.lujun9972.win/blog/2018/04/20/nohup,setsid%E4%B8%8Edisown%E7%9A%84%E4%B8%8D%E5%90%8C%E4%B9%8B%E5%A4%84/index.html
阅读全文
posted @ 2022-11-08 13:42 Bonjour_!
阅读(66)
评论(0)
推荐(0)
2022年9月30日
函数集合
摘要: 01 提取不同文件夹下同名文件 点击查看代码 def select(dir,name): import os import shutil list1 =[] list2 = [] dd = '' for root,dirs,files in os.walk(dir): for file in fil
阅读全文
posted @ 2022-09-30 14:00 Bonjour_!
阅读(78)
评论(0)
推荐(0)
2022年9月28日
提取最长转录本|多物种批量操作版
摘要: 点击查看代码 #!/usr/bin/env python # -*- coding=utf-8 -*- ''' 提取序列文件中最长的转录本ID 需要修改######位置的参数 以及 open的目录 ''' import sys import re Fasta=open("/Business/psn_
阅读全文
posted @ 2022-09-28 17:49 Bonjour_!
阅读(429)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告