Tag Archive | "perl"

用Perl打印序列

Tags: , ,

用Perl打印序列

Posted on 21 七月 2010 by 柳城 ,阅读 357

azalea用Python漂亮地打印序列:http://i.azpala.com/2010/07/15/print-sequence-beatifully-using-python/

我也用perl玩玩,不怎么漂亮的打印序列。

代码写得不咋得。 Continue Reading

Comments (61)

用perl统计一个六种类型的数据

Tags: ,

用perl统计一个六种类型的数据

Posted on 09 五月 2010 by 柳城 ,阅读 509

 rebecca 童鞋还是第一次问我数据处理的问题阿。其实我对这种问题是比较感兴趣的。

数据是这样子的。 Continue Reading

Comments (28)

用perl匹配字符串并返回该匹配的位置

Tags: ,

用perl匹配字符串并返回该匹配的位置

Posted on 08 五月 2010 by 柳城 ,阅读 1,603

这次讲讲perl里跟模式匹配或叫正则表达式有关的东西。

最近 ghxiao 童鞋常常问我用perl处理数据的问题。今天来分享一段代码吧。

比如说,给出一个序列文件,里面都是Fasta格式的序列。 然后序列里面有一些NNNNNN的连续字符。

问题就是要得出这些NNNN的一段字符在该序列的具体位置。(就是匹配某字符串) Continue Reading

Comments (21)

Perl grep函数

Tags: ,

Perl grep函数

Posted on 26 三月 2010 by 柳城 ,阅读 1,037

学习Perl语言编程中……

介绍:

grep (EXPR, LIST)

Perl grep函数从LIST中提取符合EXPR的值。grep函数是比较常用,也比较好用的一个函数。我在shell里是经常用grep的。Perl grep函数在标量环境中,返回为真的次数。在列表环境中,返回EXPR为真的元素的列表。 Continue Reading

Comments (5)

用Perl抓取网页和提交表格

Tags:

用Perl抓取网页和提交表格

Posted on 25 二月 2010 by 柳城 ,阅读 1,462

这里简单介绍一下用Perl来实现抓好取网页的源代码,以及用POST的方法来提交表格,并返回结果。难的讲不来,讲讲简单的。

这里讲到的Perl模块有:

use LWP::Simple;
use LWP::UserAgent;

perldoc查看详细的用法。 Continue Reading

Comments (24)

Perl split函数

Tags: , ,

Perl split函数

Posted on 30 一月 2010 by 柳城 ,阅读 2,138

学习Perl语言编程中……

介绍:

split /PATTERN/, EXPR
split /PATTERN/
split

Perl split函数扫描字符串中EXPR给出的分隔符,并把该字符串劈成一个子字符串列表。简单地意思就是把字符串,按照/PATTERN/里的分隔符来分隔,返回一个数组。/PATTERN/可以是分隔符(逗号空格等),也可以是正则表达式。 Continue Reading

Comments (33)

Perl处理Fasta序列的又一实例

Tags: ,

Perl处理Fasta序列的又一实例

Posted on 13 一月 2010 by 柳城 ,阅读 1,522

今天再来分享一小段Perl脚本,其实是比较简单的。主要是用来处理Fasta格式的序列

网友niche Says:

你好,你有没有分割fasta文件的perl脚本,我需要把一个fasta文件按两条序列一组分成若干个fasta文件,谢谢!

如果不懂fasta文件,可以再看一下解释Continue Reading

Comments (20)

快速提取序列的Perl脚本

Tags: , , ,

快速提取序列的Perl脚本

Posted on 04 一月 2010 by 柳城 ,阅读 1,400

是这么回事的,整理一下一些有用的提问。感谢大家的提问。

网友sun:

我从miRbase数据库下载到了,matrue.fa,即里面有测出来的物种的成熟miRNA,里面有human 我想用perl把human的提出来另外存到一个文件.这是其中人的一条的
>hsa-miR-96 MIMAT0000095 Homo sapiens miR-96
UUUGGCACUAGCACAUUUUUGCU
怎么把所有的都提出来.
ps:正则表达式不是这个$s=~/^>hsa/期待你的回信.

Continue Reading

Comments (27)

无觅相关文章插件,快速提升流量

adobe free

adobe free

winrar 3 download

winrar 3 download freedownload

windows 7 free

windows 7 crack

key office 2010

office 2010 key

download photo shop free

photo shop serial

corel dvd moviefactory 6

corel dvd moviefactory 6 downloads

free corel photoshop download

free corel photoshop download keygen

photoshop key

photoshop key

free corel downloads

free corel downloads cracked

free winrar download for xp

download winrar for xp for free

serial corel draw 11

serial corel draw 11 serials

windows 7 key

windows 7 key

photo shop key

photo shop key

winrar password cracker serial

wirar password cracker

serial winzip 11

serial winzip 11 key

cs5 serialz

cs5 serialz free

office 2010 professional key

office 2010 key

office 2010 free

office 2010 key

windows key

windows key