坐山雕

导航

2023年4月19日

linux ls 列出全路径

摘要: 1、列出当前目录的文件、文件夹完整路径 ls -1 |awk '{print i$0}' i=pwd'/' 2、列出当前目录及子目录的文件、文件夹完整路径 ls -R |awk '{print i$0}' i=pwd'/' 2b) 列出当前目录及子目录下的文件夹完整路径 ls -FR | grep 阅读全文

posted @ 2023-04-19 17:40 坐山雕 阅读(474) 评论(1) 推荐(0) 编辑

2021年10月30日

ggplot axis text 拐弯

摘要: scale_y_discrete(position = "left",labels=function(x) str_wrap(x, width=48)) + 阅读全文

posted @ 2021-10-30 20:06 坐山雕 阅读(21) 评论(0) 推荐(0) 编辑

2021年10月21日

find . -name "*.php" -execdir grep -nH --color=auto foo {} ';'

摘要: find . -name "*.php" -execdir grep -nH --color=auto foo {} ';' 阅读全文

posted @ 2021-10-21 11:01 坐山雕 阅读(36) 评论(0) 推荐(0) 编辑

pip install keras==2.0.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

摘要: pip install keras==2.0.3 -i https://pypi.tuna.tsinghua.edu.cn/simple 阅读全文

posted @ 2021-10-21 10:38 坐山雕 阅读(144) 评论(0) 推荐(0) 编辑

2021年10月12日

标题Ubuntu将默认的python3改为默认的python

摘要: ryzen@cp7:~$ python Command 'python' not found, did you mean: command 'python3' from deb python3 root@DESKTOP-I:/usr/bin# echo alias python=python3 >> 阅读全文

posted @ 2021-10-12 22:52 坐山雕 阅读(741) 评论(0) 推荐(0) 编辑

2021年8月17日

R grep

摘要: SAIN<-FAIN[grepl("HE-H$",FAIN$rDD),,drop=TRUE] 阅读全文

posted @ 2021-08-17 15:15 坐山雕 阅读(27) 评论(0) 推荐(0) 编辑

2021年8月16日

nohup /root/runoob.sh > runoob.log 2>&1 &

摘要: nohup /root/runoob.sh > runoob.log 2>&1 &**** 阅读全文

posted @ 2021-08-16 12:10 坐山雕 阅读(75) 评论(0) 推荐(0) 编辑

2021年8月12日

awk command

摘要: https://www.cnblogs.com/bluevitality/p/6691041.html 阅读全文

posted @ 2021-08-12 13:41 坐山雕 阅读(19) 评论(0) 推荐(0) 编辑

Shell脚本实现模拟并发及并发数控制

摘要: #!/bin/bash #by inmoonlight@163.com #下面的代码控制并发数。其实是利用令牌原理实现 #一个线程要运行,首先要拿到令牌在该代码中即read一行数据,读取不到就会暂停,否则就拿到数据就运行命令,当完成后将令牌放回 #将令牌放回即再在管道文件中写入一行数据,这里的数据是 阅读全文

posted @ 2021-08-12 13:22 坐山雕 阅读(274) 评论(6) 推荐(0) 编辑

2021年8月10日

bash transpose csv

摘要: transpose() { awk ' BEGIN { FS = ","; OFS = ","; } { if (max_nf<NF) max_nf=NF max_nr=NR for (x=1; x<=NF; ++x) vector[x, NR]=$x } END { for (x=1; x<=ma 阅读全文

posted @ 2021-08-10 18:45 坐山雕 阅读(28) 评论(0) 推荐(0) 编辑

2021年8月5日

MAC完整的地址

摘要: 作者:匿名用户 链接:https://www.zhihu.com/question/22883229/answer/71280098 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 打开终端,输入下面的命令:defaults write com.apple.find 阅读全文

posted @ 2021-08-05 16:04 坐山雕 阅读(26) 评论(0) 推荐(0) 编辑

2021年8月2日

This will upgrade your R installation.

摘要: sudo add-apt-repository ppa:marutter/rrutter sudo apt update sudo apt full-upgrade 阅读全文

posted @ 2021-08-02 22:14 坐山雕 阅读(27) 评论(0) 推荐(0) 编辑

2021年7月16日

genomation: a toolkit for annotation and visualization of genomic data

摘要: https://rdrr.io/bioc/genomation/f/vignettes/GenomationManual.Rmd 阅读全文

posted @ 2021-07-16 16:53 坐山雕 阅读(50) 评论(0) 推荐(0) 编辑

circos plot in R

摘要: FIN=read.table(IN,header=TRUE) circos.clear() circos.par("start.degree" = 90) circos.initialize("chrB", xlim = c(0, 171823)) circos.track(ylim = c(0, 阅读全文

posted @ 2021-07-16 12:59 坐山雕 阅读(100) 评论(0) 推荐(0) 编辑

geom_smooth trasparent alpha 透明度

摘要: stat_smooth (geom="line", alpha=0.3, size=3, span=0.5) + geom_line(stat="smooth",method = "loess", formula = y ~x,span=0.3, size = 1.5, #linetype ="da 阅读全文

posted @ 2021-07-16 12:50 坐山雕 阅读(171) 评论(0) 推荐(0) 编辑

2021年7月12日

win10自带录屏为什么录两个小时自动关闭?如何调节使其可以时间更长?

摘要: Windows设置—>游戏—>屏幕截图—>录制时间; https://www.zhihu.com/question/404390297 阅读全文

posted @ 2021-07-12 21:52 坐山雕 阅读(1037) 评论(0) 推荐(0) 编辑

2021年6月30日

alia linux

摘要: alias lrt='ls -lrt' 阅读全文

posted @ 2021-06-30 20:28 坐山雕 阅读(34) 评论(0) 推荐(0) 编辑

2021年6月27日

timeline=format(Sys.time(), "%Y%m%d-%H%M")

摘要: timeline=format(Sys.time(), "%Y%m%d-%H%M") 阅读全文

posted @ 2021-06-27 12:43 坐山雕 阅读(88) 评论(0) 推荐(0) 编辑

2021年6月26日

manu check RAID GEM count and Fragment count of local FN>1

摘要: cat MANU_CHK.sh echo "input Chr" read C echo "input Start" read S echo "input End" read E cat $C.bed|awk -v s=$S -v e=$E '{if($2>=s && $3<=e)print}'|c 阅读全文

posted @ 2021-06-26 21:18 坐山雕 阅读(32) 评论(0) 推荐(0) 编辑

2021年6月25日

data location nextcloud

摘要: /var/snap/nextcloud/common/nextcloud/data/ Adding files to Nextcloud using the command line https://medium.com/code-enigma/adding-files-to-nextcloud-u 阅读全文

posted @ 2021-06-25 21:32 坐山雕 阅读(22) 评论(0) 推荐(0) 编辑

2021年6月20日

ubuntu clean swap

摘要: https://askubuntu.com/questions/1357/how-to-empty-swap-if-there-is-free-ram#:~:text=a%20single%20line-,sudo%20swapoff%20-a%3B%20sudo%20swapon%20-a,-Be 阅读全文

posted @ 2021-06-20 22:37 坐山雕 阅读(51) 评论(0) 推荐(0) 编辑

2021年6月12日

How to Install VMware Tools on CentOS 6.5

摘要: yum install perl gcc make kernel-headers kernel-devel -y [root@centos6 vmware-tools-distrib]# ./vmware-install.pl https://webhostinggeeks.com/howto/ho 阅读全文

posted @ 2021-06-12 14:00 坐山雕 阅读(35) 评论(0) 推荐(0) 编辑

2021年6月9日

Linux命令之定时调度-crontab

摘要: 以上cron命令格式为:* * * * * [root run-parts] command 前面五个*号代表时间,用数字,数字的取值范围和含义如下: 第一个*:分钟 (0-59)[整数] 第二个*:小時(0-23)[整数] 第三个*:日期(1-31)[整数(必须是指定月份的有效日期)] 第四个*: 阅读全文

posted @ 2021-06-09 20:02 坐山雕 阅读(158) 评论(0) 推荐(0) 编辑

nextcloud file location

摘要: ![](https://img2020.cnblogs.com/blog/2263610/202106/2263610-20210609174326043-387101523.png) 阅读全文

posted @ 2021-06-09 17:44 坐山雕 阅读(25) 评论(0) 推荐(0) 编辑

Chrome浏览器:Your Connection is not private 您的连接不是私密连接

摘要: 在图片图片所示的任何地方输入: thisisunsafe 没错就是这么6,然后就可以访问了。输错了请刷新再来(微笑) https://blog.csdn.net/filbert_917/article/details/104502774 阅读全文

posted @ 2021-06-09 16:29 坐山雕 阅读(528) 评论(0) 推荐(0) 编辑

sync

摘要: sync -rv -e 'ssh -p 1911' ANNO_XS01KF2021020136_PM-XS01KF2021020136-06_AHWMC2DSXY_2021-06-06_04-01-19/ simon@10.20.1.138:/media/simon/HDD4/FASTQ_RAW/ 阅读全文

posted @ 2021-06-09 14:38 坐山雕 阅读(73) 评论(0) 推荐(0) 编辑

2021年6月3日

R 曲线拐点

摘要: x = seq(1,15) y = c(4,5,6,5,5,6,7,8,7,7,6,6,7,8,9) plot(x,y,type="l",ylim=c(3,10)) lo ← loess(y~x) xl ← seq(min(x),max(x), (max(x) - min(x))/1000) out 阅读全文

posted @ 2021-06-03 14:42 坐山雕 阅读(309) 评论(0) 推荐(0) 编辑

2021年6月1日

Rstudio R get filename full path

摘要: FILENAME=basename(rstudioapi::getActiveDocumentContext()$path) FULLPATH=dirname(rstudioapi::getActiveDocumentContext()$path) FILENAME FULLPATH 阅读全文

posted @ 2021-06-01 19:30 坐山雕 阅读(50) 评论(0) 推荐(0) 编辑

density plot

摘要: FIN=read.table("/Users/zhongyuantian/macshare/workSpace2021/1.TFY/1.3.TFY20201215/1.3.1.TFY1C_TFY1_OPTIMISE/GENENUMinMTForRAID/MTF1135.bed.hitby_Brown 阅读全文

posted @ 2021-06-01 17:41 坐山雕 阅读(91) 评论(0) 推荐(0) 编辑

2021年5月7日

ggplot2: display every nth value on discrete axis

摘要: every_nth = function(n) { return(function(x) {x[c(TRUE, rep(FALSE, n - 1))]}) } ggplot(mpg, aes(x = class, y = cyl)) + geom_point() + scale_x_discrete 阅读全文

posted @ 2021-05-07 20:12 坐山雕 阅读(41) 评论(0) 推荐(0) 编辑

2021年4月28日

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 坐山雕 阅读(135) 评论(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 坐山雕 阅读(61) 评论(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 坐山雕 阅读(64) 评论(0) 推荐(0) 编辑

2021年4月27日

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 坐山雕 阅读(25) 评论(0) 推荐(0) 编辑

2021年4月22日

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 坐山雕 阅读(53) 评论(0) 推荐(0) 编辑

2021年4月12日

remove blank line

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

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

linux下文件重命名

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

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

Linux list only directories using ls command

摘要: ls -d */ 阅读全文

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

2021年4月6日

修改word文档中已有的批注者名称

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

posted @ 2021-04-06 21:50 坐山雕 阅读(628) 评论(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 坐山雕 阅读(41) 评论(0) 推荐(0) 编辑