PIXNET Logo登入

Philippe's Expérience Note

跳到主文

年輕不只是個過程,有一天我會征服世界

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 6月 26 週四 200811:30
  • [perl]轉錄‧ptt perl版"支持Perl on Google App Engine 幫忙投票"

作者  LiloHuang (相見不如懷念)                                    看板  Perl
標題  支持Perl on Google App Engine 幫忙投票
時間  Mon Jun  9 21:51:29 2008
───────────────────────────────────────
最近火紅的 Google App Engine 已經開放申請了
(繼續閱讀...)
文章標籤

philip 發表在 痞客邦 留言(0) 人氣(191)

  • 個人分類:Perl
▲top
  • 5月 14 週三 200815:04
  • [perl]CutPeptide sequences

Name:
CutPeptide.pl
Description:
將ensemble的 peptide sequences (fasta files),個別輸出成單筆sequence
Source Code:

#!/usr/bin/perl
##############
# Edit by Philippe
# 05.14.08
##############
# input FASTA files
open(IN, "/home/philippe/CutPeptide/Homo_sapiens.NCBI36.49.pep.all.fas");
while ($line = )
{
        chomp($line);
        # regular expression, match >
        if ($line =~ /^>(.*)/)
        {
                $ENSP = $1;
                print "$ENSP\n";
                # output FASTA files
               open (OUT, "+>/home/philippe/CutPeptide/pep_all_fasta/$ENSP.fas");
                print OUT ">$ENSP\n";
        }
        else
        {
                print OUT "$line\n";
        }
}
close IN;
close OUT;
(繼續閱讀...)
文章標籤

philip 發表在 痞客邦 留言(0) 人氣(76)

  • 個人分類:Perl
▲top
  • 3月 20 週四 200820:45
  • [perl]轉錄‧"To be or not to be, that's a question!" code

這篇程式碼真的太有趣了,大家可以跑跑看!

#!usr/bin/perl
# "To be or not to be, that's a question!"
open DNA, $AGRV[0] || die "Die!!";
While(<DNA>){
 $_Saint=0; $_Alive=0;  $_Hell=0;
While(<DNA>){
     $_Saint=1;
 break;
}
While(<DNA>){
 While(<
  While(<
   While(<
       While(<
        While(<
         While(<DNA>){    
              $_Alive=1;
     break;}>)
    {break;}>)
   {break;}>)
  {break;}>)
 {break;}>)
{break;}
break;
}
While(<DNA>){
 While(<
  While(<
   While(<
    While(<
     While(<
      While(<DNA>){       
           $_Hell=1;
      }>)
     { ;}>)
    { ;}>)
   { ;}>)
  { ;}>)
 { ;}
break;
}
}
close DNA;
#2Bor^2B,that's a question!
(繼續閱讀...)
文章標籤

philip 發表在 痞客邦 留言(0) 人氣(164)

  • 個人分類:Perl
▲top
1

廣告版面

個人頭像

philip
暱稱:
philip
分類:
生活綜合
好友:
累積中
地區:

近期文章

  • [Notes]Mac ruby1.8 upgrade to ruby1.9
  • [Notes]解決 Macbook 藍芽無法使用的問題
  • [Notes]sqlite3.dll遺失解決方法
  • [閒聊]比標準答案更重要的是 - 不乖
  • [Notes][Linux]如何復原 GRUB2 開機程序
  • [閒聊]煩惱文
  • [Notes]去除在 vim 中出現 ^M 符號
  • [閒聊]環島
  • [article][CUDA]轉錄‧CUDA程式設計 II -- SIMT概觀
  • [閒聊]今年度的運動計畫

文章彙整

文章分類

toggle OS (1)
  • mac (3)
toggle Programming (3)
  • Linux (1)
  • CUDA (2)
  • Perl (3)
  • Notes (16)
  • music (2)
  • Military Life (3)
  • software (1)
  • 未分類文章 (1)

Facebook

Flickr

Plurk

My Twitter

早起的人兒有早餐吃

部落格觀察

ClustrMaps

Flag

labMeeting

My profile card

貼紙

Myblog

線上人數

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣:

廣告版面