摘要: From:http://www.cureffi.org/2012/12/19/forward-and-reverse-reads-in-paired-end-sequencing/Illustration for mate pair sequencing:http://www.investigativegenetics.com/content/2/1/23/figure/F2?highres=yhttp://seqanswers.com/forums/showthread.php?t=15626DNA 复制:只能从5'端向3'端(相对引物链,即待构造的链来说)延长。 ---&g 阅读全文
posted @ 2013-07-17 20:57 菜鸟的世界 阅读(7734) 评论(0) 推荐(1) 编辑
摘要: C 自带了一个排序函数qsort, 使用时要定义一个compare方法。下面是一个例子:/* qsort example */#include <stdio.h> /* printf */#include <stdlib.h> /* qsort */int values[] = { 40, 10, 100, 90, 20, 25 };int compare (const void * a, const void * b){ return ( *(int*)a - *(int*)b );}int main (){ int n; qsort (values, 6, size 阅读全文
posted @ 2013-06-05 17:38 菜鸟的世界 阅读(6037) 评论(0) 推荐(0) 编辑
摘要: 链接:http://blog.csdn.net/xuleicsu/article/details/919801more info:http://guoyiqi.iteye.com/blog/1626922http://www.wutianqi.com/?p=1822http://www.cnblogs.com/bigshow/archive/2009/01/03/1367661.html如何将二维数组作为函数的参数传递今天写程序的时候要用到二维数组作参数传给一个函数,我发现将二维数组作参数进行传递还不是想象得那么简单里,但是最后我也解决了遇到的问题,所以这篇文章主要介绍如何处理二维数组当作参数 阅读全文
posted @ 2013-06-03 16:23 菜鸟的世界 阅读(10657) 评论(2) 推荐(3) 编辑
摘要: In C, what's the difference betweenchar *s="Hello"; andchar s[]="hello";The difference here is thatchar*s ="Hello";will place Hello in the read-only parts of the memory and making s a pointer to that, making any writing operation on this memory illegal. While doing: 阅读全文
posted @ 2013-06-03 15:42 菜鸟的世界 阅读(217) 评论(0) 推荐(0) 编辑
摘要: strcpy 与 strcat是两个常用的字符串处理的函数,经常可以用来给一个空的字符串赋值。example:char a[]="abcd";char b[5];strcpy(b, "");strncpy(b, a, 4);printf("b:%s\n", b);上面这段代码的输出结果为:abcd烫烫为什么在abcd之后会出现乱码呢?查了资料之后发现strcpy(strncpy)不会自动在字符串之后添加终止符。当把strncpy换成strncat之后,程序就能正常运行了,这是因为strncat会自动添加终止符,但是这要求b有足够的si 阅读全文
posted @ 2013-06-03 15:26 菜鸟的世界 阅读(669) 评论(0) 推荐(0) 编辑
摘要: [转自]http://xhyan.wordpress.com/2012/01/21/zz%E9%82%A2%E6%B3%A2%E8%80%81%E5%B8%88%E8%87%B4%E5%B9%BF%E5%A4%A7%E5%AD%A6%E5%91%98%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1%EF%BC%882010-10-26%EF%BC%89/Dear Students,It has been a great experience to work with you during the 5-day Dragon Star lectures. I truly a 阅读全文
posted @ 2013-04-15 17:45 菜鸟的世界 阅读(301) 评论(0) 推荐(0) 编辑
摘要: BamView: visualizing and interpretation of next-generation sequencing read alignments[for other viewers, see the introduction section of this paper]Visualizing next-generation sequencing data with JBrowseA survey of tools for variant analysis of next-generation genome sequencing dataUsing GBrowse 2. 阅读全文
posted @ 2013-02-27 15:30 菜鸟的世界 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 假设有一个名为data的文本文件,内容如下:1.02.03.0要求这些数字的平均值,可用如下方法:cat data|awk '{sum+=$1} END {print "Average = ", sum/NR}'其中,$1表示第一列参考资料:http://lixjluck.iteye.com/blog/961271 阅读全文
posted @ 2013-02-21 16:29 菜鸟的世界 阅读(15849) 评论(0) 推荐(0) 编辑
摘要: 假设有一个名为data的文本文件,内容如下(有两列):1 1.02 2.03 3.04 4.05 5.06 6.0要取出第一列可用如下语句:awk -F" " '{print $1}' data >out其中双引号中的表示的是两列之间的分隔符,这里是空格, $1表示第一列, >out表示把得到的结果输出到文件 阅读全文
posted @ 2013-02-21 16:26 菜鸟的世界 阅读(16889) 评论(1) 推荐(1) 编辑
摘要: 使用CPU limit 软件可以很方便的限制某个进程的cpu使用率。1. 下载地址2.进入src目录,make3. 用法 : ./cpulimit -p 22605 -l 200 这个例子中,限制pid为22605的进程最多使用两个cpu注意:-l后的数字是与top中显示的cpu使用比一致的,可以大于100. 阅读全文
posted @ 2013-01-21 20:33 菜鸟的世界 阅读(619) 评论(0) 推荐(0) 编辑