2023年5月25日
摘要: 点击查看代码 ``` 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日
摘要: 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日
摘要: 点击查看代码 ``` 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日
摘要: ![](https://img2023.cnblogs.com/blog/1775879/202303/1775879-20230322161555179-1317722572.png) 阅读全文
posted @ 2023-03-22 16:17 Bonjour_! 阅读(69) 评论(0) 推荐(0)
  2023年2月14日
摘要: 每次加载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)) 阅读全文
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日
摘要: 参考链接: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)