坐山雕

导航

04 2021 档案

binom_test
摘要:bt ← function(a, b, p = 0.5) {binom.test(a, b+a, 0.5, alternative= c("two.sided"), conf.level = 0.95)$p.value} #counts$pVal ← mapply(bt, counts$small, 阅读全文

posted @ 2021-04-28 16:13 坐山雕 阅读(209) 评论(0) 推荐(0)

awk sub string
摘要:cat TFY1C.txt|awk '{print $0"\t"substr($4,1,4)}'> TFY1CRID.tx 1--从那位开始 4--多长 阅读全文

posted @ 2021-04-28 12:00 坐山雕 阅读(83) 评论(0) 推荐(0)

pretty break
摘要:scale_x_continuous( breaks = pretty_breaks(10),labels=scales::comma)+ x ← 1:4 y ← c(0, 0.0001, 0.0002, 0.0003) dd ← data.frame(x, y) scientific_10 ← f 阅读全文

posted @ 2021-04-28 11:18 坐山雕 阅读(108) 评论(0) 推荐(0)

scaled logy
摘要:library(ggplot2) set.seed(1) vals1 ← rbeta(1000, 0.5, 0.1) vals2 ← rbeta(1000, 0.25, 0.3) gg ← ggplot(data.frame(x=c(vals1, vals2), grp=c(rep("a", 100 阅读全文

posted @ 2021-04-27 19:45 坐山雕 阅读(49) 评论(0) 推荐(0)

GFF2GTF.py2
摘要:import sys inFile = open(sys.argv[1],'r') for line in inFile: #skip comment lines that start with the '#' character if line[0] != '#': #split line int 阅读全文

posted @ 2021-04-22 17:25 坐山雕 阅读(107) 评论(0) 推荐(0)

remove blank line
摘要:[$ cat all.experiments.csv.clean|sed -r '/^\s*$/d' > all.experiments.csv.clean2 阅读全文

posted @ 2021-04-12 20:58 坐山雕 阅读(61) 评论(0) 推荐(0)

linux下文件重命名
摘要:Ubuntu下执行上面举例的重命名时,命令是这样的:rename ‘s/a/xxx/g’ *.txt 阅读全文

posted @ 2021-04-12 20:37 坐山雕 阅读(125) 评论(0) 推荐(0)

Linux list only directories using ls command
摘要:ls -d */ 阅读全文

posted @ 2021-04-12 20:21 坐山雕 阅读(65) 评论(0) 推荐(0)

修改word文档中已有的批注者名称
摘要:前言 https://blog.csdn.net/hyh19962008/article/details/89430548 word中可以通过修改用户的信息实现新建的批注者显示不同的名称,但是对于文档中已有的批注则无法进行修改,在vba中通过word.documents(1).comments(1) 阅读全文

posted @ 2021-04-06 21:50 坐山雕 阅读(818) 评论(2) 推荐(0)

install package within python
摘要:import os os.system("pip install numpy") import subprocess subprocess.call(['pip3', 'install', "pandas"]) subprocess.call(['pip', 'install', "matplotl 阅读全文

posted @ 2021-04-06 16:56 坐山雕 阅读(79) 评论(0) 推荐(0)