<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; linux</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>linux服务器管理&#8211;系统服务设置命令systemctl</title>
		<link>http://www.bio-info-trainee.com/1685.html</link>
		<comments>http://www.bio-info-trainee.com/1685.html#comments</comments>
		<pubDate>Sat, 04 Jun 2016 01:22:48 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[生信基础]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[systemctl]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1685</guid>
		<description><![CDATA[因为买过一个超算云服务器，所以前面我讲过Ubuntu服务器管理系列知识，正好最近 &#8230; <a href="http://www.bio-info-trainee.com/1685.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>因为买过一个超算云服务器，所以前面我讲过<a href="http://www.bio-info-trainee.com/577.html">Ubuntu服务器管理系列知识</a>，正好最近要搞了个阿里云，用来做shiny服务器，发现服务器管理居然进化了好多，以前的知识都过时了，再记录一笔吧，真的是学习如逆水行舟，不进则退呀！</p>
<p>我的阿里云服务器版本是CentOS 6.5.，属于（RedHat 7, Ubuntu 15.04+, SLES 12+)  系列，是目前最新版本的服务器管理，所以大家重点是记住这个<span style="color: #ff00ff;"><strong>systemctl </strong></span>即可：</p>
<p><span id="more-1685"></span></p>
<blockquote>
<div>例子如下：</div>
</blockquote>
<div>
<blockquote>
<div><span style="color: #ff00ff;"><strong>sudo systemctl start shiny-server</strong></span></div>
<div><span style="color: #ff00ff;"><strong>sudo systemctl stop shiny-server</strong></span></div>
<div><span style="color: #ff00ff;"><strong>sudo systemctl restart shiny-server</strong></span></div>
</blockquote>
<div>
<blockquote>
<div>如果是稍微有点旧的(Ubuntu 12.04 through 14.10 and RedHat 6)</div>
<div>例子如下：</div>
<div>
<ul>
<li><span style="color: #ff00ff;"><strong>启动指令:sudo service iptables start   </strong></span></li>
<li><span style="color: #ff00ff;"><strong>重启指令:sudo service iptables restart   </strong></span></li>
<li><span style="color: #ff00ff;"><strong>关闭指令:sudo service iptables stop   </strong></span></li>
</ul>
</div>
<div>如果是特别老的linux服务器，如(RedHat 5, SLES 11) ，系统太老了，关键文件存放在<code>/etc/init.d/</code></div>
<div>sudo /sbin/service shiny-server start</div>
<div>sudo /sbin/service shiny-server stop</div>
<div>sudo /sbin/service shiny-server restart</div>
<div>sudo /sbin/service shiny-server reload</div>
<div>sudo /sbin/service shiny-server status</div>
</blockquote>
</div>
</div>
<p>总结一下就是，最新的系统用的是systemctl， 是一种管制服务的主要工具， 它整合了chkconfig 与 service功能于一体。如果你查看很多教程里面提到了chkconfig 与 service，你尽管用这个systemctl替代就好了</p>
<p>systemctl is-enabled iptables.service<br />
systemctl is-enabled servicename.service #查询服务是否开机启动<br />
systemctl enable *.service #开机运行服务<br />
systemctl disable *.service #取消开机运行<br />
<b>systemctl start *.service #启动服务<br />
systemctl stop *.service #停止服务<br />
systemctl restart *.service #重启服务</b><br />
systemctl reload *.service #重新加载服务配置文件<br />
systemctl status *.service #查询服务运行状态<br />
systemctl --failed #显示启动失败的服务</p>
<p>注：*代表某个服务的名字，如http的服务名为httpd</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1685.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>生信分析人员如何系统入门linux？</title>
		<link>http://www.bio-info-trainee.com/1661.html</link>
		<comments>http://www.bio-info-trainee.com/1661.html#comments</comments>
		<pubDate>Mon, 23 May 2016 15:30:54 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[学习]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1661</guid>
		<description><![CDATA[生信分析人员如何系统入门linux？ linux系统在生物信息学数据处理中的重要 &#8230; <a href="http://www.bio-info-trainee.com/1661.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<h1 style="text-align: center;"><span style="color: #ff0000;">生信分析人员如何系统入门linux？</span></h1>
<div></div>
<div>linux系统在生物信息学数据处理中的重要性就不用我多说了，鉴于一直有学生问我一些很显而易见的问题，对系统性的学习并理解了linux系统操作的专业人士来说是显而易见的。</div>
<div>我在这里仅以过来人的角度给大家总结一下linux该如何学，该学什么，该花多少工夫，学习重点是什么？</div>
<div></div>
<div>就我个人这么多年处理生物信息学数据经验来看，可以把linux的学习过程分成三个阶段:</div>
<div></div>
<div><span style="color: #ff0000; font-size: large;">一是把linux系统玩得跟windows系统一样顺畅。</span></div>
<div></div>
<div>这一阶段的主要目的就是去可视化，熟悉黑白命令行界面。</div>
<div>如何连接服务器(xshell,putty,VNC~~~)，了解你在服务器上面有什么权限。</div>
<div>左右鼠标单击双击如何实现？磁盘文件浏览如何实现？文件操作如何实现？绝对路径和相对路径区别？</div>
<div>需要了解的命令有下面这些：</div>
<blockquote>
<div style="text-align: justify;">pwd/ls/cd/mv/rm/cp/mkdir/rmdir/man/locate/head/tail/less/more</div>
<div style="text-align: justify;">cut/paste/join/sort/uniq/wc/cat/diff/cmp/alias</div>
<div style="text-align: justify;">wget/ssh/scp/curl/ftp/lftp/mysql/</div>
</blockquote>
<div>大家可以搜索(每天一个linux命令的博客)来跟着练习，或者看一些linux视频(百度云盘(http://pan.baidu.com/s/1jIvwRD8 )共享了一大堆，建议看鸟哥linux私房菜)，或者关注一些linux学习相关公众号，加入一些linux社区，论坛，当然如果你只是简单了解，搞生物信息学其实没必要那么深入理解，跟着一本像样的入门书籍，完整的学习即可！</div>
<div>不懂的名词，赶紧谷歌搜索，多记笔记。</div>
<div></div>
<div>需要深度理解的概念有：</div>
<blockquote>
<div>软硬链接区别</div>
<div>文本编辑，文件权限设置</div>
<div>打包压缩解压操作(tar/gzip/bzip/ x-j x-c vf)</div>
<div>软件的快捷方式如何实现？</div>
<div>软件如何安装(源码软件，二进制可执行软件，perl/R/python/java软件)</div>
<div>软件版本如何管理，各种编程语言环境如何管理，模块如何管理？(尤其是大部分没有root权限)</div>
</blockquote>
<div>这些知识需要深度理解，所以一般初学者肯定会遇到问题，自己要多看教程和视频跟着了练习，但总会有一些不是你立即就能解决的，不要纠结，继续学习，不久之后回过头来就明白了。</div>
<div></div>
<div>翻译成生物信息学语言就是：测序文件在哪里？测序文件有多大？测序文件的格式fastq/fasta是什么？</div>
<div>前几行怎么看，参考基因组如何下载？参考基因组如何建立比对索引？blast软件如何安装以及使用？</div>
<div>比对结果如何看？结果如何过滤？两次结果如何比较？</div>
<div>建议自己安装bio-linux系统，里面会自带很多生物信息学测试数据(fastq,fasta,sam,bam,vcf,gff,gtf,bed,MAF......),安装系统的过程也是熟悉linux的过程，熟悉这些数据格式既能加强生物信息学技巧，也能练习linux操作。</div>
<div></div>
<div>不懂的名词，赶紧谷歌搜索，多记笔记。</div>
</div>
<p><span style="color: #ff0000; font-size: large;">二是shell脚本，类似于windows的bat批处理文件</span></p>
<div>
<div>懂很多预定义变量 .bashrc/env/HOME/</div>
<div>学会一些控制语句 while/if/for/ 批量执行命令</div>
<div>开始自定义函数，避免重复造轮子。</div>
<div>了解 awk/sed/grep等文件操作语言，短小精悍，很多时候可以不需要编程。</div>
<div>正则匹配技巧,find函数使用</div>
<div>了解编程技巧 ()[]{} $$ 等符合如何使用，技巧有哪些，加快你数据处理能力(建议看shell 13问)</div>
<div>翻译成生物信息学语言就是：要深度组合这些命令，并且通过shell脚本，把它们在实际生物信息学数据处理中应用起来，需要很多的实践操作，可以借鉴EMBOSS软件套件，fastx-toolkit等基础软件，实现并且模仿该软件的功能。</div>
<div>尤其是SMS2/exonerate/里面的一些常见功能,还有DNA2.0 Bioinformatics Toolbox的一些工具。</div>
<div>不懂的名词，感觉谷歌搜索，多记笔记。</div>
<div>基本上要了解到这里才能勉强算是一个合格的生物信息学工程师。</div>
</div>
<p><span style="color: #ff0000; font-size: large;">三是高级运维技巧</span></p>
<div>
<div>w/last/top/qsub/condor/apache/socket/IO/ps/who/uid/</div>
<div>磁盘挂载/格式化/重启系统/文件清理/IP查看/网络管理/用户管理/目录结构了解/计划任务</div>
<div>各种库文件了解。</div>
<div>这个强烈建议初学者不要过于纠结，稍微了解为佳。</div>
<div>不懂的名词，赶紧谷歌搜索，多记笔记。</div>
<div></div>
<div>学习linux基础知识的同时，就可以开始项目实战，在实战的过程中要随时思考记录如何应用linux知识辅助生物信息数据处理？</div>
<div>并整理学习笔记以及经验分享。</div>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1661.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在linux系统里面安装matlab运行环境mcr</title>
		<link>http://www.bio-info-trainee.com/1166.html</link>
		<comments>http://www.bio-info-trainee.com/1166.html#comments</comments>
		<pubDate>Thu, 05 Nov 2015 06:12:53 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础软件]]></category>
		<category><![CDATA[生信基础]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[mcr]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1166</guid>
		<description><![CDATA[matlab毕竟是收费软件，而且是有界面的。所以搞生物信息的都用R和linux替 &#8230; <a href="http://www.bio-info-trainee.com/1166.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>matlab毕竟是收费软件，而且是有界面的。所以搞生物信息的都用R和linux替代了，但是很多高大上的单位，比如大名鼎鼎的broadinstitute，是用matlab的，所以他们开发的程序也会以matlab代码的形式发布。但是考虑到大多研究者用不起matlab，或者不会用，所以就用linux系统里面安装matlab运行环境来解决这个问题，我们仍然可以把人家写的matlab程序，在linux命令行下面，当做一个脚本来运行！</p>
<p>比如，这次我就需要用broadinstitute的一个软件：Mutsig，找cancer driver gene的，http://www.broadinstitute.org/cancer/cga/mutsig_run，但是我看了说明才发现，它是用matlab写的，所以我要想在我的服务器用，就必须按照安装matlab运行环境，在官网可以下载：http://www.mathworks.com/products/compiler/mcr/</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture3.png"><img class="alignnone size-full wp-image-1167" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture3.png" alt="Capture3" width="600" height="342" /></a></p>
<p>我这里选择的是R2013a (8.1)，下载之后解压是这样的，压缩包约四百多M</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture1.png"><img class="alignnone size-full wp-image-1168" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture1.png" alt="Capture1" width="408" height="206" /></a></p>
<p>然后直接在解压后的目录里面运行那个install即可，然后如果你的linux可以传送图像，那么就会想安装windows软件一样方便！如果你的linux是纯粹的命令行，那么，就需要一步步的命令行交互，选择安装地址，等等来安装了。</p>
<p>记住你安装之后，会显示一些环境变量给你，请千万要记住，然后自己去修改自己的环境变量，如果你忘记了，就需要搜索来解决环境变量的问题啦！安装之后是这样的：</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture2.png"><img class="alignnone size-full wp-image-1169" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture2.png" alt="Capture2" width="283" height="294" /></a></p>
<p>请记住你的安装目录，以后你运行其它matlab相关的程序，都需要把这个安装目录，当做一个参数传给你的其它程序的！！！</p>
<p>如果你没有设置环境变量，就会出各种各样的错误，用下面这个脚本可以设置</p>
<p>其中MCRROOT一般是$path/biosoft/matlab_running/v81/ 这样的东西，请务必注意，LD_LIBRARY_PATH非常重要，非常重要，非常重要！！！！</p>
<p>MCRROOT=$1<br />
echo ---<br />
LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64;<br />
MCRJRE=${MCRROOT}/sys/java/jre/glnxa64/jre/lib/amd64 ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/native_threads ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/server ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/client ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE} ;<br />
XAPPLRESDIR=${MCRROOT}/X11/app-defaults ;<br />
export LD_LIBRARY_PATH;<br />
export XAPPLRESDIR;<br />
echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH};</p>
<p>如果你没有设置正确，那么会报一下的错误！</p>
<p>error while loading shared libraries: libmwmclmcrrt.so.8.1: cannot o pen shared object file: No such file or directory</p>
<p>error while loading shared libraries: libmwlaunchermain.so: cannot o pen shared object file: No such file or directory</p>
<p>等等！！！</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1166.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推荐linux学习博客-每日一linux命令</title>
		<link>http://www.bio-info-trainee.com/639.html</link>
		<comments>http://www.bio-info-trainee.com/639.html#comments</comments>
		<pubDate>Thu, 16 Apr 2015 01:05:57 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[计算机基础]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=639</guid>
		<description><![CDATA[竹子-博客(.NET/Java/Linux/架构/管理/敏捷) 思索、感悟、践行 &#8230; <a href="http://www.bio-info-trainee.com/639.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.cnblogs.com/peida/">竹子-博客(.NET/Java/Linux/架构/管理/敏捷)</a></p>
<p>思索、感悟、践行！走向高效，快乐，平衡！</p>
<p><a href="http://www.cnblogs.com/peida/tag/%E6%AF%8F%E6%97%A5%E4%B8%80linux%E5%91%BD%E4%BB%A4/default.html?page=1">http://www.cnblogs.com/peida/tag/%E6%AF%8F%E6%97%A5%E4%B8%80linux%E5%91%BD%E4%BB%A4/default.html?page=1</a></p>
<p>已下目录是本人用爬虫爬取的！</p>
<p>每天一个linux命令（61）：wget命令</p>
<p>每天一个linux命令（60）：scp命令</p>
<p>每天一个linux命令（59）：rcp命令</p>
<p>每天一个linux命令（58）：telnet命令</p>
<p>每天一个linux命令（57）：ss命令</p>
<p>每天一个linux命令（56）：netstat命令</p>
<p>每天一个linux命令（55）：traceroute命令</p>
<p>每天一个linux命令（54）：ping命令</p>
<p>每天一个linux命令（53）：route命令</p>
<p>每天一个linux命令（52）：ifconfig命令</p>
<p>每天一个linux命令（51）：lsof命令</p>
<p>每天一个linux命令（50）：crontab命令</p>
<p>每天一个linux命令（49）：at命令</p>
<p>每天一个linux命令（48）：watch命令</p>
<p>每天一个linux命令（47）：iostat命令</p>
<p>每天一个linux命令（46）：vmstat命令</p>
<p>每天一个linux命令（45）：free 命令</p>
<p>每天一个linux命令（44）：top命令</p>
<p>每天一个linux命令（43）：killall命令</p>
<p>每天一个linux命令（42）：kill命令</p>
<p>每天一个linux命令（41）：ps命令</p>
<p>每天一个linux命令（40）：wc命令</p>
<p>每天一个linux命令（39）：grep 命令</p>
<p>每天一个linux命令（38）：cal 命令</p>
<p>每天一个linux命令（37）：date命令</p>
<p>每天一个linux命令（36）：diff 命令</p>
<p>每天一个linux命令（35）：ln 命令</p>
<p>每天一个linux命令（34）：du 命令</p>
<p>每天一个linux命令（33）：df 命令</p>
<p>每天一个linux命令（32）：gzip命令</p>
<p>每天一个linux命令（31）: /etc/group文件详解</p>
<p>每天一个linux命令（30）: chown命令</p>
<p>每天一个linux命令（29）:chgrp命令</p>
<p>每天一个linux命令（28）：tar命令</p>
<p>每天一个linux命令（27）：linux chmod命令</p>
<p>每天一个linux命令（26）：用SecureCRT来上传和下载文件</p>
<p>每天一个linux命令(25)：linux文件属性详解</p>
<p>每天一个linux命令(24)：Linux文件类型与扩展名</p>
<p>每天一个linux命令（23）：Linux 目录结构</p>
<p>每天一个linux命令（22）：find 命令的参数详解</p>
<p>每天一个linux命令（21）：find命令之xargs</p>
<p>每天一个linux命令（20）：find命令之exec</p>
<p>每天一个linux命令（19）：find 命令概览</p>
<p>每天一个linux命令（18）：locate 命令</p>
<p>每天一个linux命令（17）：whereis 命令</p>
<p>每天一个linux命令（16）：which命令</p>
<p>每天一个linux命令（15）：tail 命令</p>
<p>每天一个linux命令（14）：head 命令</p>
<p>每天一个linux命令（13）：less 命令</p>
<p>每天一个linux命令(12)：more命令</p>
<p>每天一个linux命令(11)：nl命令</p>
<p>每天一个linux命令（10）：cat 命令</p>
<p>每天一个linux命令（9）：touch 命令</p>
<p>每天一个linux命令（8）：cp 命令</p>
<p>每天一个linux命令（7）：mv命令</p>
<p>每天一个linux命令（6）：rmdir 命令</p>
<p>每天一个linux命令（5）：rm 命令</p>
<p>每天一个linux命令（4）：mkdir命令</p>
<p>每天一个linux命令（3）：pwd命令</p>
<p>每天一个linux命令(2)：cd命令</p>
<p>每天一个linux命令(1)：ls命令</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/639.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress博客统计文章阅读次数及访客数并刷访问数</title>
		<link>http://www.bio-info-trainee.com/433.html</link>
		<comments>http://www.bio-info-trainee.com/433.html#comments</comments>
		<pubDate>Sun, 22 Mar 2015 01:01:55 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[访客]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=433</guid>
		<description><![CDATA[需要插件和自己修改主题下面的foot.php代码。 参考 http://jing &#8230; <a href="http://www.bio-info-trainee.com/433.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>需要插件和自己修改主题下面的foot.php代码。</p>
<p>参考 <a href="http://jingyan.baidu.com/article/ae97a646ce37c2bbfd461d01.html">http://jingyan.baidu.com/article/ae97a646ce37c2bbfd461d01.html</a></p>
<p>步骤如下：</p>
<p>1、登陆到wp后台，鼠标移动到左侧菜单的“插件”链接上，会弹出子菜单，点击子菜单的“安装插件”链接</p>
<p>2、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>在“安装插件”链接页面的搜索框中输入“WP-PostViews”，然后回车</p>
<p>3、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>在搜索结果页面点击“WP-PostViews”插件内容区域的“现在安装”按钮</p>
<p>4、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>程序自动下载插件到服务器并解压安装，一直等到安装成功信息出现，然后在安装成功提示页面点击“启动插件”链接。</p>
<p>5、WP-PostViews插件显示wordpress文章点击浏览量</p>
<p>页面会自动跳转到“已安装插件”页面，在已安装插件列表中我们可以看到“Form Manager”插件已经处于启用状态（插件名下是“停用”链接）。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数599.png"><img class="alignnone size-full wp-image-434" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数599.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数599" width="554" height="316" /></a></p>
<p>有了这个插件之后，我们的整个网页环境里面就多了一个 the_views()函数，它统计着每个文章的点击数，这样我们之前的网页就能显示点击数了。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数673.png"><img class="alignnone size-full wp-image-435" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数673.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数673" width="553" height="188" /></a></p>
<p>这个是我现在用的主题的php代码，把文章用span标记隔开了，而且显示着上面php代码里面的每一个内容包括日期，分类，标签，评论等等</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数742.png"><img class="alignnone size-full wp-image-436" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数742.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数742" width="554" height="170" /></a></p>
<p>其中thez-view()这个函数返回的不仅仅是一个访客数，但是我的文章的访客都太少了，所以我写了一个脚本帮我刷一刷流量。</p>
<p>[perl]</p>
<p>use List::MoreUtils qw(uniq);</p>
<p>$page='http://www.bio-info-trainee.com/?paged=';</p>
<p>foreach (1..5){   #我的文章比较少，就42个，所以只有5个页面</p>
<p>$url_page=$page.$_;</p>
<p>$tmp=`curl $url_page`;</p>
<p>#@p=$tmp=~/p=(\d+)/;</p>
<p>$tmp =~ s/(p=\d+)/push @p, $1/eg; #寻找p=数字这样的标签组合成新的网页地址</p>
<p>}</p>
<p>@p=uniq @p;</p>
<p>print &quot;$_\n&quot; foreach @p; #可以找到所有42个网页的地址</p>
<p>foreach (@p){</p>
<p>$new_url='http://www.bio-info-trainee.com/?'.$_;</p>
<p>`curl $new_url` foreach (1..100); #每个网页刷一百次</p>
<p>}</p>
<p>[/perl]</p>
<p>大家可以看到这个网页被刷的过程，从15到21到27直到100<br />
<a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数1231.png"><img class="alignnone size-full wp-image-437" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Wordpress博客统计文章阅读次数及访客数并刷访问数1231.png" alt="Wordpress博客统计文章阅读次数及访客数并刷访问数1231" width="552" height="533" /></a></pre>
<p>大家现在再去看我的网页，就每个文章都有一百的访问量啦！</p>
<p><a href="http://www.bio-info-trainee.com/">http://www.bio-info-trainee.com/</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/433.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux服务器基础知识</title>
		<link>http://www.bio-info-trainee.com/416.html</link>
		<comments>http://www.bio-info-trainee.com/416.html#comments</comments>
		<pubDate>Sat, 21 Mar 2015 11:00:19 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[xshell]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=416</guid>
		<description><![CDATA[想了想，既然是菜鸟教程，那就索性再介绍点更基础的东西，基本上只要是大学毕业的都能 &#8230; <a href="http://www.bio-info-trainee.com/416.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>想了想，既然是菜鸟教程，那就索性再介绍点更基础的东西，基本上只要是大学毕业的都能看懂，不需要懂计算机了。首先讲讲linux服务器吧，因为生物信息也算是半个大数据分析，所以我们平常的办公电脑一般都是不能满足需求的，大部分实验室及公司都会自己配置好服务器给菜鸟们用，菜鸟们首先要拿到服务器的IP和高手给你的用户名和密码。</p>
<p>一般我们讲服务器，大多是linux系统，而我这里所讲的linux系统呢，特指ubuntu，其余的我懒得管了，大家也不要耗费无谓的时间纠结那些名词的不同！</p>
<p>登录到服务器有两种方法，一种是ssh，传输你的命令给服务器执行，另一种是ftp，和服务器交换文件。而ssh我们通常用putty，xshell等等。ftp呢，我们可以用winscp，xshell，所以我一直都用xshell，因为它两者都能搞定！</p>
<p>Xshell软件自行搜索下载，打开之后新建一个连接，然后登陆即可。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识405.png"><img class="alignnone size-full wp-image-417" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识405.png" alt="Linux服务器基础知识405" width="554" height="310" /></a></p>
<p>然后输入以下命令，可以查看服务器配置，包括cpu。内存，还有硬盘</p>
<p>cat /proc/cpuinfo |grep pro|wc -l</p>
<p>free -g</p>
<p>df -h</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识488.png"><img class="alignnone size-full wp-image-418" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识488.png" alt="Linux服务器基础知识488" width="554" height="282" /></a></p>
<p>&nbsp;</p>
<p>这个服务器配置好一点，有80个cpu，内存256G，硬盘有2个11T的，是比较成熟的配置。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识536.png"><img class="alignnone size-full wp-image-419" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识536.png" alt="Linux服务器基础知识536" width="527" height="244" /></a></p>
<p>&nbsp;</p>
<p>这个是一个小型服务器。也就24个核，64G的内存，但是存储量有点小呀，其实可以随便花几百块钱买个1T的硬盘挂载上去的。</p>
<p>然后linux的其它命令大家就得自己去搜索一个个使用，然后熟悉，记牢，然后创新啦！</p>
<p>我随便敲几个我常用的吧： ls cd mkdir rm cp cat head tail more less diff grep awk sed grep perl 等等！</p>
<p>呀，突然间发现我才介绍了ssh的方法登陆服务器并且发送命令在服务器上面运行，下面贴图如何传输文件。一般xshell的菜单里面有绿的文件夹形式的标签就是打开ftp文件传输，这种可视化的软件，大家慢慢摸索吧！</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识830.png"><img class="alignnone size-full wp-image-420" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux服务器基础知识830.png" alt="Linux服务器基础知识830" width="447" height="163" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/416.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux基础之shell脚本的批处理</title>
		<link>http://www.bio-info-trainee.com/382.html</link>
		<comments>http://www.bio-info-trainee.com/382.html#comments</comments>
		<pubDate>Thu, 19 Mar 2015 14:55:48 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[批处理]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=382</guid>
		<description><![CDATA[脚本类似于下面的样子，大家可以读懂之后就仿写 for i in *sra do  &#8230; <a href="http://www.bio-info-trainee.com/382.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>脚本类似于下面的样子，大家可以读懂之后就仿写</p>
<p>for i in *sra</p>
<p>do</p>
<p>echo $i</p>
<p>/home/jmzeng/bio-soft/sratoolkit.2.3.5-2-ubuntu64/bin/fastq-dump --split-3 $i</p>
<p>Done</p>
<p>这个脚本是把当前目录下所有的NCBI下载的sra文件都加压开来成测序fastq格式文件</p>
<p>有这些数据，分布在不同的目录，如果是写命令一个个文件处理，很麻烦，如果有几百个那就更麻烦了，所以需要用shell脚本</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux基础之shell脚本的批处理254.png"><img class="alignnone size-full wp-image-383" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux基础之shell脚本的批处理254.png" alt="Linux基础之shell脚本的批处理254" width="177" height="158" /></a></p>
<p>这样只需要bash这个脚本即可一次性处理所有的数据</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux基础之shell脚本的批处理282.png"><img class="alignnone size-full wp-image-384" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/Linux基础之shell脚本的批处理282.png" alt="Linux基础之shell脚本的批处理282" width="550" height="380" /></a></p>
<p>还有很多类似的脚本，非常简单的</p>
<p>for i in *fq</p>
<p>do</p>
<p>echo $i</p>
<p>bowtie2 -p 13 -x ../../RNA.fa -U $i -S  $i.sam</p>
<p>done</p>
<p>&nbsp;</p>
<p>for i in */accepted_hits.bam</p>
<p>do</p>
<p>echo $i</p>
<p>out=`echo $i |cut -d'/' -f 1`_clout</p>
<p>samtools mpileup -guSDf  /home/immune/refer_genome/hg19/hg19.fa $i  | bcftools view -cvNg - &gt;snp-vcf/$out.vcf</p>
<p>done</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>while read id</p>
<p>do</p>
<p>echo $id</p>
<p>out=`echo $id |cut -d'/' -f 2`</p>
<p>reads=`echo $id |cut -d'/' -f 3|sed 's/\r//g'`</p>
<p>tophat2 -p 13 -o $out /home/immune/refer_genome/hg19/hg19 $reads</p>
<p>done &lt;$1</p>
<p>&nbsp;</p>
<p>等等</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/382.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>查某个基因家族在某物种的具体信息</title>
		<link>http://www.bio-info-trainee.com/332.html</link>
		<comments>http://www.bio-info-trainee.com/332.html#comments</comments>
		<pubDate>Wed, 18 Mar 2015 14:00:26 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[基础数据库]]></category>
		<category><![CDATA[gene]]></category>
		<category><![CDATA[ncbi]]></category>
		<category><![CDATA[taxid]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=332</guid>
		<description><![CDATA[查某个基因家族在某物种的具体信息 我很伤心，不知道是不是我写的教程还是不够人性化 &#8230; <a href="http://www.bio-info-trainee.com/332.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><b>查某个基因家族在某物种的具体信息</b></p>
<p>我很伤心，不知道是不是我写的教程还是不够人性化，一个朋友在群里面问如何知道NAC基因家族在拟南芥里面的105个基因信息，我随便给他示范了一下在人类里面如何找，希望他能触类旁通，结果他不会linux，啥生信基础都没有，我只会诱导他简单学习一下，希望他至少明白什么的taxid。所以我给了他我之前写的教程，只希望他告诉我拟南芥的taxid我就帮他把那105个基因找出来。<span id="more-332"></span></p>
<p><a href="http://www.bio-info-trainee.com/?p=84">http://www.bio-info-trainee.com/?p=84</a></p>
<p>结果好半天都不回信息了，我还以为他自己解决了，我礼貌性的再问一次，才知道他没看懂我的教程，我实在不明白，那么通俗的教程为嘛还是不能亲民呢？？？</p>
<p>拟南芥的拉丁名是Arabidopsis thaliana，在NCBI的Taxonomy里面搜索可以看到</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/查某个基因家族在某物种的具体信息582.png"><img class="alignnone size-full wp-image-333" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/查某个基因家族在某物种的具体信息582.png" alt="查某个基因家族在某物种的具体信息582" width="627" height="259" /></a></p>
<p>然后点击进去</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/查某个基因家族在某物种的具体信息757.png"><img class="alignnone size-full wp-image-334" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/查某个基因家族在某物种的具体信息757.png" alt="查某个基因家族在某物种的具体信息757" width="553" height="486" /></a></p>
<p>就简单的两个步骤呀，就可以看到taxid的呀！！！</p>
<p>然后我只需要简单一个命令就可以解决题目的问题了！</p>
<p>grep -w  NAC  gene_info |perl -alne '{print if $F[0] == 3702}'</p>
<p>其中gene_info在NCBI的ftp里面可以下载！！我前面也提到过，是所以物种的基因信息</p>
<p>我只需要查找基因名字是NAC的，然后物种代码是3702的就是他拟南芥的呀！！！</p>
<p>正好105个基因，达到了他的要求！！！</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/查某个基因家族在某物种的具体信息930.png"><img class="alignnone size-full wp-image-335" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/03/查某个基因家族在某物种的具体信息930.png" alt="查某个基因家族在某物种的具体信息930" width="249" height="524" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/332.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
