摘要:
#假设文件名是:fortest.gtf declare -i fileLines fileLines=`sed -n '$=' fortest.gtf` echo $fileLines # linesCount=0let linesCount=($fileLines/20+1)*2 阅读全文
摘要:
python中 getopt 模块 (import getopt),该模块是专门用来处理命令行参数的函数getopt(args, shortopts, longopts = [])参数args一般是sys.argv[1:]shortopts 短格式 (-) longopts 长格式(--) 命令行中... 阅读全文
摘要:
安装和使用screen安装screenyum可以在线安装screenyum install screen使用screen1、创建screen会话;进入Xshell,运行以下:screen 2、离开screen,但是保留里面的程序继续运行,操作是Ctrl+a d ,让程序在后台运行-S 指定scr... 阅读全文
摘要:
输出到文件log中,并在屏幕上显示:#ls >&1 | tee log追加输出到文件log中,并在屏幕上显示:#ls >&1 | tee -a log 阅读全文
摘要:
使用 fuser xxx 命令查看xxx文件被哪个进程占用,然后关闭该进程,解决问题。# fuser xxxxxx: 2878# kill -9 2878注:xxx是文件名;2878是进程号;kill -9 2878 强制终止该进程;必须在root权限下才可用fuser。 阅读全文
摘要:
获得每行的最后一个逗号后边的内容.例如:KIAA1967 KIAA1967, xxxxSECIS biding proin 2-like, SECISBP2L, yyyy 1234ankyrin repat and KH doain, conaining ,ANKHD1, zzzzz要得到:xxxx... 阅读全文
摘要:
strtok() 字符串分割函数strstr() 字符串查找函数范例#include main(){ char * s = "012345678901234567890123456789"; char *p; p = strstr(s, "901"); printf("%s\n", p)... 阅读全文
摘要:
命令行: ~/sratoolkit/sratoolkit.2.3.2/bin/fastq-dump --split-spot --gzip xxxx.sra 报错信息: fastq-dump.2.3.2 err: name not found while resolving tree within 阅读全文
摘要:
tophat输出结果junction.bedBED formatBED format provides a flexible way to define the data lines that are displayed in an annotation track. BED lines have ... 阅读全文
摘要:
Red hat Linux(Centos 5/6)安装R语言1 wget http://cran.rstudio.com/src/base/R-3/R-3.0.2.tar.gz2 tar xzvf R-3.0.2.tar.gz3 cd R-3.0.24 ./configure 5 make6 mak... 阅读全文