SlideShare une entreprise Scribd logo
1  sur  17
2009/06/22
                         
kaneko.satoko(at)ocha.ac.jp 
                     
BLAST CLUSTALW  
                                     
TogoWS REST SOAP        (step   ) 

      (11):E‐value  
(1)                                                       
blast_clustalw.rb                                  
           blast_clustalw.rb                                                  
$ ruby blast_clustalw.rb hsa:6469 
(    has:6469                                                                    blast + clustalw
            

                                                                                      
       blast_clustalw.rb                                                  
                                                                                           
step10.rb                                              
step20.rb                                Blastp                      
step30.rb Blastp                           ID                       E‐value                    
step40.rb              ID            E‐value              E‐value                                      
step50.rb                          
step60.rb                       ClustalW mulSple alignment                        
(2) step10.rb
                                     k.step10.txt         
‐                        hsa:6469              (                 ID   kegg_id ) 
‐blast_clustalw.rb       8‐12      get_aaseq          
‐  last_clustalw.rb
  b                      get_aaseq   79                       

#!/usr/bin/env ruby 

require ‘open‐uri’ # 8       open URL                REST                       

#                            kegg_id          
kegg_id = "hsa:6469";  
#  kegg_id                                aaseq           
aaseq = open("hap://togows.dbcls.jp/entry/gene/" + kegg_id + "/aaseq").read  
#REST                          hap://togows.dbcls.jp/entry/gene/has:6469/aaseq 
#                                      aaseq                  

#       aaseq            k.step10.txt           
out = open("k.step10.txt","w") 
out.puts aaseq 
out.close 
(3) step20.rb 
 Sonic Hedgehog                         query      BLAST               
‐blast_clustalw.rb 15‐25                    
‐ blast_clustalw.rb 81                     
#!/usr/bin/env ruby 
require 'soap/wsdlDriver' 

# step10.rb                                       aaseq         
aaseq = File.read("k.step10.txt”) 
# blast                            result_blast       
wsdl_blast = "hap://togows.dbcls.jp/soap/wsdl/ddbj_blast.wsdl" 
serv_blast = SOAP::WSDLDriverFactory.new(wsdl_blast).create_rpc_driver 
program    = "blastp" 
database   = "SWISS" 
result_blast = serv_blast.DdbjBlastSearchSimple(program,database,aaseq) 
# ↑SOAP             blast                   
# result_blast            k.step20.txt           
out = open("k.step20.txt","w") 
out.puts result_blast 
out.close
(4) step30.rb 
BLAST               clustalw                                                           
‐ blast_clustalw.rb  27               47                  84                       

#!/usr/bin/env ruby 
require 'soap/wsdlDriver' 

#                  step20.rb blast                         result_blast       
result_blast = File.read("k.step20.txt") 

# result_blast                                           spid_hash  
#           

spid_hash = Hash.new #                                     
# blast                                                    line       
result_blast.each_line do |line| 
  # blast                                        sp                       
   if line =~ /^sp|(.+)|(.+)s+.+s+[0‐9]+s+(.+)$/ 
    spid = $1      #                spid          
     spname = $2    #                spname             
     evalue = $3    #                 evalue           
     if evalue =~ /^e/ #          evalue  e                     
                evalue = “1.0” + evalue #            1.0           
    end 
#                       
#                         
 # evalue                                   evalue_float                  
     evalue_float = evalue.to_f 
    # spid_hash[spid]  spname  evalue_float               
     spid_hash[spid] = {:name=>spname, :evalue=>evalue_float} 
  end 
end 

#          spid_hash                             k.step30.txt  
#           
out = open("k.step30.txt","w");  
spid_hash.each {|spid,value| 
  out.prinv("%s|%s|%sn",spid,value[:name],value[:evalue]);  
} 
out.close

step20 blast               k.step20.txt                     ID       e‐value                    
k.step30.txt           
                                       
‐                         hsa:6469                      (                    ID   kegg_id ) 
‐blast_clustalw.rb        28‐47           parse_blast             
‐  last_clustalw.rb
  b                       get_aaseq        84                         
: step30.rb                                              
                                                                                           
 ‐ if line =~ /^sp|(.+)|(.+)s+.+s+[0‐9]+s+(.+)$/                     
BLAST                                                 1                             
                                             
‐ f 
 I                                                      if                                       )    
        spid spname evalue                          

.:              , +:                1               , s:                , $:      
():                                                          , []: []                         

                                                                                 Score E
Sequences producing significant alignments:                                      (bits) Value

sp|Q15465|SHH_HUMAN Sonic hedgehog...                                            720       0.0
sp|Q62226|SHH_MOUSE Sonic hedgehog...                                            682       0.0
sp|Q63673|SHH_RAT Sonic hedgehog...                                              679       0.0
sp|Q91035|SHH_CHICK Sonic hedgehog...                                            605       e-172
sp|Q90385|SHH_CYNPY Sonic hedgehog...                                            510       e-144

       spid
            spname
                                                            evalue

                        spid_hash[spid][:name]
                         spid_hash[spid][:evalue]
(11):E‐value
                                                

                                                   (ex. 0.0, e‐100   ) 
                                                             

query                      E‐value query                        

‐                                                               

*E‐value        
                                            
*                   
(5) step40.rb
Blast               E‐value                                           
Step30             k.step30.txt                        E‐value                              
k.step40.txt           
‐                        hsa:6469                        (               ID   kegg_id ) 
‐blast_clustalw.rb       39‐43                      
‐blast_clustalw.rb       e‐value               6                  
#!/usr/bin/env ruby 

#                 
min_evalue = 1e‐170 
# step30.rb                               
#            spid_hash            
lns_spid = File.read("k.step30.txt") 
spid_hash = Hash.new 
lns_spid.each_line do |line| 
  raise unless line =~ /^(.+)|(.+)|(.+)$/ 
  spid = $1 
  spname = $2 
  evalue = $3 
  spid_hash[spid] = 
   {:name=>spname, :evalue=>evalue.to_f} 
end #                       
#
#                                   
#                                 
spid_hash.each {|spid,value| 
  #                     
   if value[:evalue] > min_evalue then 
    spid_hash.delete(spid)   #           
   end                
} 
#                            k.step40.txt    
out = open("k.step40.txt","w");  
spid_hash.each {|spid,value| 
  out.prinv("%s|%s|%sn",  
  spid,value[:name],value[:evalue]);  
} 
out.close 
(6) step50.rb 
             Sonic Hedgehog                                   
‐ blast_clustalw.rb     49           59                87         

#!/usr/bin/env ruby 
require 'open‐uri’ 

#                                             
#            spid_hash            
lns_spid = File.read("k.step40.txt") 
spid_hash = Hash.new 
lns_spid.each_line do |line| 
  raise unless line =~ /^(.+)|(.+)|(.+)$/ 
  spid = $1 
  spname = $2 
  evalue = $3 
  spid_hash[spid] = {:name=>spname, :evalue=>evalue.to_f} 
end 
#                      
#
#           spid_hash                        
spid_hash.each {|spid,value| 
  #                                                       
   uri = "hap://togows.dbcls.jp/entry/uniprot/" + spid + "/seq” 
# REST                
  value[:seq] = open(uri).read 
} 

#         fasta                  
out = open("k.step50.fa","w");  
spid_hash.each {|spid,value| 
  out.prinv(">%s|%s|%sn",spid,value[:name],value[:evalue]);  
  out.prinv("%sn",value[:seq]);  
} 
out.close 
(7) step60.rb 
CLUSTALW alignment                 
Step50.rb                              clustalw  SOAP                      
‐ blast_clustalw.rb  61           75             90                            
#!/usr/bin/env ruby 
require 'soap/wsdlDriver’ 

# fasta                                     query        
query           = File.read("k.step50.fa") 
# query               mulSple alignment        
wsdl_clustalw   = "hap://togows.dbcls.jp/soap/wsdl/ddbj_clustalw.wsdl" 
serv_clustalw   = SOAP::WSDLDriverFactory.new(wsdl_clustalw).create_rpc_driver 
param           = "‐align ‐matrix=blosum ‐gapdist=8 ‐maxdiv=40 ‐outorder=aligned ‐
pwmatrix=blosum” 
# SOAP                 CLUSTALW              
result_clustalw = serv_clustalw.DdbjClustalwAnalyzeParam(query,param) 

#         k.step60.txt            
out = open("k.step60.txt","w");  
out.puts result_clustalw
out.close
(8) blast_clustalw.rb                                     
blast_clustalw.rb  77‐97                 Step10‐60                                                    

                   shiz   
#     ID                                                                    hsa:6469         
                                  # step10.rb                       

                          
                                     # step20.rb                       

                              
                                                               #step30.rb       step40.rb        
                                                           

                              
                                                  #step50.rb            

                                                                                
                                             #step60.rb            
           

                                         #           auto.txt 
blast_clustalw.rb                                        

1)       hsa:6469         MIN_EVALUE          (         1.0e‐140, 1.0e‐120,  
1.0e‐100          ) mulSple alignment               (          )                 

2) rat Olr1082         mulSple alignment        human mouse         
ortholog                 
‐       
rat Olr1082 UniProt ID                   
REST Entry retrieval UniProt              KEGG ID          
                blast_clustalw.rb                   (MIN_EVALUE 1.0e‐100) 
mulSple alignment              ortholog                      
Ensembl Synteny                                    ortholog
SOAP REST
                 

                     

             

Contenu connexe

Tendances

Nouveau document texte
Nouveau document texteNouveau document texte
Nouveau document texteSai Ef
 
Yy
YyYy
Yyyygh
 
RestMQ - HTTP/Redis based Message Queue
RestMQ - HTTP/Redis based Message QueueRestMQ - HTTP/Redis based Message Queue
RestMQ - HTTP/Redis based Message QueueGleicon Moraes
 
Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]
Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]
Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]RootedCON
 
Using ngx_lua in UPYUN
Using ngx_lua in UPYUNUsing ngx_lua in UPYUN
Using ngx_lua in UPYUNCong Zhang
 
Redis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your applicationRedis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your applicationrjsmelo
 
MongoDB Advanced Topics
MongoDB Advanced TopicsMongoDB Advanced Topics
MongoDB Advanced TopicsCésar Rodas
 
Minicurso Ruby e Rails
Minicurso Ruby e RailsMinicurso Ruby e Rails
Minicurso Ruby e RailsSEA Tecnologia
 
Redis as a message queue
Redis as a message queueRedis as a message queue
Redis as a message queueBrandon Lamb
 
Study of aloha protocol using ns2 network java proram
Study of aloha protocol using ns2 network java proramStudy of aloha protocol using ns2 network java proram
Study of aloha protocol using ns2 network java proramMeenakshi Devi
 
AnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webAnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webclkao
 
Practical pig
Practical pigPractical pig
Practical pigtrihug
 
Overloading Perl OPs using XS
Overloading Perl OPs using XSOverloading Perl OPs using XS
Overloading Perl OPs using XSℕicolas ℝ.
 

Tendances (18)

C99.php
C99.phpC99.php
C99.php
 
Nouveau document texte
Nouveau document texteNouveau document texte
Nouveau document texte
 
Yy
YyYy
Yy
 
RestMQ - HTTP/Redis based Message Queue
RestMQ - HTTP/Redis based Message QueueRestMQ - HTTP/Redis based Message Queue
RestMQ - HTTP/Redis based Message Queue
 
Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]
Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]
Sergi Álvarez & Roi Martín - Radare2 Preview [RootedCON 2010]
 
Using ngx_lua in UPYUN
Using ngx_lua in UPYUNUsing ngx_lua in UPYUN
Using ngx_lua in UPYUN
 
Redis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your applicationRedis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your application
 
MongoDB Advanced Topics
MongoDB Advanced TopicsMongoDB Advanced Topics
MongoDB Advanced Topics
 
Minicurso Ruby e Rails
Minicurso Ruby e RailsMinicurso Ruby e Rails
Minicurso Ruby e Rails
 
C99
C99C99
C99
 
Redis as a message queue
Redis as a message queueRedis as a message queue
Redis as a message queue
 
TraitとMoose::Role
TraitとMoose::RoleTraitとMoose::Role
TraitとMoose::Role
 
Study of aloha protocol using ns2 network java proram
Study of aloha protocol using ns2 network java proramStudy of aloha protocol using ns2 network java proram
Study of aloha protocol using ns2 network java proram
 
AnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time webAnyMQ, Hippie, and the real-time web
AnyMQ, Hippie, and the real-time web
 
node ffi
node ffinode ffi
node ffi
 
Advanced cocos2d
Advanced cocos2dAdvanced cocos2d
Advanced cocos2d
 
Practical pig
Practical pigPractical pig
Practical pig
 
Overloading Perl OPs using XS
Overloading Perl OPs using XSOverloading Perl OPs using XS
Overloading Perl OPs using XS
 

En vedette (20)

Clustal X
Clustal XClustal X
Clustal X
 
Alignments
AlignmentsAlignments
Alignments
 
Multiple alignment
Multiple alignmentMultiple alignment
Multiple alignment
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Msa
MsaMsa
Msa
 
Blast
BlastBlast
Blast
 
BLAST
BLASTBLAST
BLAST
 
BLAST(Basic Local Alignment Tool)
BLAST(Basic Local Alignment Tool)BLAST(Basic Local Alignment Tool)
BLAST(Basic Local Alignment Tool)
 
Blast fasta 4
Blast fasta 4Blast fasta 4
Blast fasta 4
 
blast bioinformatics
blast bioinformaticsblast bioinformatics
blast bioinformatics
 
BLAST
BLASTBLAST
BLAST
 
BIOL335: Sequence alignment
BIOL335: Sequence alignmentBIOL335: Sequence alignment
BIOL335: Sequence alignment
 
Genes And Neurons
Genes And NeuronsGenes And Neurons
Genes And Neurons
 
Ch06 multalign
Ch06 multalignCh06 multalign
Ch06 multalign
 
Bioinfo intro
Bioinfo introBioinfo intro
Bioinfo intro
 
Epigenomics
EpigenomicsEpigenomics
Epigenomics
 
Fasta
FastaFasta
Fasta
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Use of Rasmol and study of proteins
Use of Rasmol and study of proteins Use of Rasmol and study of proteins
Use of Rasmol and study of proteins
 
Blast bioinformatics
Blast bioinformaticsBlast bioinformatics
Blast bioinformatics
 

Similaire à 090622_blast-clustalw

Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!Workhorse Computing
 
lldb – Debugger auf Abwegen
lldb – Debugger auf Abwegenlldb – Debugger auf Abwegen
lldb – Debugger auf Abwegeninovex GmbH
 
Practical Testing of Ruby Core
Practical Testing of Ruby CorePractical Testing of Ruby Core
Practical Testing of Ruby CoreHiroshi SHIBATA
 
BSDM with BASH: Command Interpolation
BSDM with BASH: Command InterpolationBSDM with BASH: Command Interpolation
BSDM with BASH: Command InterpolationWorkhorse Computing
 
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyJavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyYasuharu Nakano
 
Im trying to run make qemu-nox In a putty terminal but it.pdf
Im trying to run  make qemu-nox  In a putty terminal but it.pdfIm trying to run  make qemu-nox  In a putty terminal but it.pdf
Im trying to run make qemu-nox In a putty terminal but it.pdfmaheshkumar12354
 
Attributes Unwrapped: Lessons under the surface of active record
Attributes Unwrapped: Lessons under the surface of active recordAttributes Unwrapped: Lessons under the surface of active record
Attributes Unwrapped: Lessons under the surface of active record.toster
 
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6Workhorse Computing
 
20 modules i haven't yet talked about
20 modules i haven't yet talked about20 modules i haven't yet talked about
20 modules i haven't yet talked aboutTatsuhiko Miyagawa
 
Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...
Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...
Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...ShuaiGao3
 
Ruby on Rails Intro
Ruby on Rails IntroRuby on Rails Intro
Ruby on Rails Introzhang tao
 
A Self Replicating Serverless Function
A Self Replicating Serverless FunctionA Self Replicating Serverless Function
A Self Replicating Serverless FunctionMichael Adda
 

Similaire à 090622_blast-clustalw (20)

Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!
 
lldb – Debugger auf Abwegen
lldb – Debugger auf Abwegenlldb – Debugger auf Abwegen
lldb – Debugger auf Abwegen
 
Practical Testing of Ruby Core
Practical Testing of Ruby CorePractical Testing of Ruby Core
Practical Testing of Ruby Core
 
BSDM with BASH: Command Interpolation
BSDM with BASH: Command InterpolationBSDM with BASH: Command Interpolation
BSDM with BASH: Command Interpolation
 
Puppet @ Seat
Puppet @ SeatPuppet @ Seat
Puppet @ Seat
 
Tork03 LT
Tork03 LT Tork03 LT
Tork03 LT
 
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyJavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovy
 
JSON and the APInauts
JSON and the APInautsJSON and the APInauts
JSON and the APInauts
 
Im trying to run make qemu-nox In a putty terminal but it.pdf
Im trying to run  make qemu-nox  In a putty terminal but it.pdfIm trying to run  make qemu-nox  In a putty terminal but it.pdf
Im trying to run make qemu-nox In a putty terminal but it.pdf
 
Attributes Unwrapped: Lessons under the surface of active record
Attributes Unwrapped: Lessons under the surface of active recordAttributes Unwrapped: Lessons under the surface of active record
Attributes Unwrapped: Lessons under the surface of active record
 
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
 
20 modules i haven't yet talked about
20 modules i haven't yet talked about20 modules i haven't yet talked about
20 modules i haven't yet talked about
 
Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...
Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...
Time Series Analysis on Egg depositions (in millions) of age-3 Lake Huron Blo...
 
Profiling Ruby
Profiling RubyProfiling Ruby
Profiling Ruby
 
Ruby gems
Ruby gemsRuby gems
Ruby gems
 
Ruby on Rails Intro
Ruby on Rails IntroRuby on Rails Intro
Ruby on Rails Intro
 
Lisp Primer Key
Lisp Primer KeyLisp Primer Key
Lisp Primer Key
 
Mips1
Mips1Mips1
Mips1
 
A Self Replicating Serverless Function
A Self Replicating Serverless FunctionA Self Replicating Serverless Function
A Self Replicating Serverless Function
 
Data Types Master
Data Types MasterData Types Master
Data Types Master
 

Plus de ocha_kaneko

100701_statistics3
100701_statistics3100701_statistics3
100701_statistics3ocha_kaneko
 
100624_statistics2
100624_statistics2100624_statistics2
100624_statistics2ocha_kaneko
 
100617_statistics1
100617_statistics1100617_statistics1
100617_statistics1ocha_kaneko
 
100603_TogoWS_SOAP
100603_TogoWS_SOAP100603_TogoWS_SOAP
100603_TogoWS_SOAPocha_kaneko
 
100527-TogoWS_REST
100527-TogoWS_REST100527-TogoWS_REST
100527-TogoWS_RESTocha_kaneko
 
100513_homology_search(ensembl)
100513_homology_search(ensembl)100513_homology_search(ensembl)
100513_homology_search(ensembl)ocha_kaneko
 
100506-unix-ensembl
100506-unix-ensembl100506-unix-ensembl
100506-unix-ensemblocha_kaneko
 
100422-intro,setup
100422-intro,setup100422-intro,setup
100422-intro,setupocha_kaneko
 
090615-TogoWS SOAP
090615-TogoWS SOAP090615-TogoWS SOAP
090615-TogoWS SOAPocha_kaneko
 
090608-TogoWS REST
090608-TogoWS REST090608-TogoWS REST
090608-TogoWS RESTocha_kaneko
 
090525-homology search(ensembl, local)
090525-homology search(ensembl, local)090525-homology search(ensembl, local)
090525-homology search(ensembl, local)ocha_kaneko
 
090518_unix-ensembl
090518_unix-ensembl090518_unix-ensembl
090518_unix-ensemblocha_kaneko
 
090511-intro, setup
090511-intro, setup090511-intro, setup
090511-intro, setupocha_kaneko
 

Plus de ocha_kaneko (16)

100701_statistics3
100701_statistics3100701_statistics3
100701_statistics3
 
100624_statistics2
100624_statistics2100624_statistics2
100624_statistics2
 
100617_statistics1
100617_statistics1100617_statistics1
100617_statistics1
 
100603_TogoWS_SOAP
100603_TogoWS_SOAP100603_TogoWS_SOAP
100603_TogoWS_SOAP
 
100527-TogoWS_REST
100527-TogoWS_REST100527-TogoWS_REST
100527-TogoWS_REST
 
100513_homology_search(ensembl)
100513_homology_search(ensembl)100513_homology_search(ensembl)
100513_homology_search(ensembl)
 
100520_dotplot
100520_dotplot100520_dotplot
100520_dotplot
 
100506-unix-ensembl
100506-unix-ensembl100506-unix-ensembl
100506-unix-ensembl
 
100422-intro,setup
100422-intro,setup100422-intro,setup
100422-intro,setup
 
Statistics_R
Statistics_RStatistics_R
Statistics_R
 
090615-TogoWS SOAP
090615-TogoWS SOAP090615-TogoWS SOAP
090615-TogoWS SOAP
 
090608-TogoWS REST
090608-TogoWS REST090608-TogoWS REST
090608-TogoWS REST
 
090601-dotplot
090601-dotplot090601-dotplot
090601-dotplot
 
090525-homology search(ensembl, local)
090525-homology search(ensembl, local)090525-homology search(ensembl, local)
090525-homology search(ensembl, local)
 
090518_unix-ensembl
090518_unix-ensembl090518_unix-ensembl
090518_unix-ensembl
 
090511-intro, setup
090511-intro, setup090511-intro, setup
090511-intro, setup
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 

Dernier (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

090622_blast-clustalw

  • 1. 2009/06/22   kaneko.satoko(at)ocha.ac.jp   
  • 2. BLAST CLUSTALW   TogoWS REST SOAP  (step )  (11):E‐value  
  • 3. (1)   blast_clustalw.rb    blast_clustalw.rb    $ ruby blast_clustalw.rb hsa:6469  (  has:6469 blast + clustalw     blast_clustalw.rb      step10.rb   step20.rb Blastp   step30.rb Blastp ID E‐value   step40.rb ID E‐value  E‐value   step50.rb   step60.rb ClustalW mulSple alignment  
  • 4. (2) step10.rb k.step10.txt    ‐ hsa:6469 ( ID kegg_id )  ‐blast_clustalw.rb 8‐12 get_aaseq   ‐  last_clustalw.rb b get_aaseq 79   #!/usr/bin/env ruby  require ‘open‐uri’ # 8 open URL REST   #  kegg_id  kegg_id = "hsa:6469";   #  kegg_id  aaseq  aaseq = open("hap://togows.dbcls.jp/entry/gene/" + kegg_id + "/aaseq").read   #REST hap://togows.dbcls.jp/entry/gene/has:6469/aaseq  # aaseq    #  aaseq  k.step10.txt  out = open("k.step10.txt","w")  out.puts aaseq  out.close 
  • 5. (3) step20.rb   Sonic Hedgehog query BLAST   ‐blast_clustalw.rb 15‐25   ‐ blast_clustalw.rb 81   #!/usr/bin/env ruby  require 'soap/wsdlDriver'  # step10.rb aaseq  aaseq = File.read("k.step10.txt”)  # blast  result_blast  wsdl_blast = "hap://togows.dbcls.jp/soap/wsdl/ddbj_blast.wsdl"  serv_blast = SOAP::WSDLDriverFactory.new(wsdl_blast).create_rpc_driver  program    = "blastp"  database   = "SWISS"  result_blast = serv_blast.DdbjBlastSearchSimple(program,database,aaseq)  # ↑SOAP blast   # result_blast  k.step20.txt  out = open("k.step20.txt","w")  out.puts result_blast  out.close
  • 6. (4) step30.rb  BLAST clustalw   ‐ blast_clustalw.rb  27 47 84   #!/usr/bin/env ruby  require 'soap/wsdlDriver'  #  step20.rb blast  result_blast  result_blast = File.read("k.step20.txt")  # result_blast  spid_hash  #  spid_hash = Hash.new #    # blast  line  result_blast.each_line do |line|    # blast sp  if line =~ /^sp|(.+)|(.+)s+.+s+[0‐9]+s+(.+)$/      spid = $1      #  spid  spname = $2    #  spname  evalue = $3    #  evalue  if evalue =~ /^e/ #  evalue  e   evalue = “1.0” + evalue #  1.0       end  #   
  • 7.    # evalue  evalue_float  evalue_float = evalue.to_f      # spid_hash[spid]  spname  evalue_float  spid_hash[spid] = {:name=>spname, :evalue=>evalue_float}    end  end  #  spid_hash  k.step30.txt  #  out = open("k.step30.txt","w");   spid_hash.each {|spid,value|    out.prinv("%s|%s|%sn",spid,value[:name],value[:evalue]);   }  out.close step20 blast k.step20.txt  ID e‐value   k.step30.txt     ‐ hsa:6469 ( ID kegg_id )  ‐blast_clustalw.rb 28‐47 parse_blast   ‐  last_clustalw.rb b get_aaseq 84  
  • 8. : step30.rb   ‐ if line =~ /^sp|(.+)|(.+)s+.+s+[0‐9]+s+(.+)$/   BLAST 1     ‐ f  I if )   spid spname evalue    .:  , +:  1 , s:  , $:    ():  , []: []   Score E Sequences producing significant alignments: (bits) Value sp|Q15465|SHH_HUMAN Sonic hedgehog... 720 0.0 sp|Q62226|SHH_MOUSE Sonic hedgehog... 682 0.0 sp|Q63673|SHH_RAT Sonic hedgehog... 679 0.0 sp|Q91035|SHH_CHICK Sonic hedgehog... 605 e-172 sp|Q90385|SHH_CYNPY Sonic hedgehog... 510 e-144 spid spname evalue spid_hash[spid][:name] spid_hash[spid][:evalue]
  • 9. (11):E‐value   (ex. 0.0, e‐100 )    query E‐value query   ‐    *E‐value     *  
  • 10. (5) step40.rb Blast E‐value   Step30 k.step30.txt  E‐value   k.step40.txt   ‐ hsa:6469 ( ID kegg_id )  ‐blast_clustalw.rb 39‐43   ‐blast_clustalw.rb e‐value 6   #!/usr/bin/env ruby  #  min_evalue = 1e‐170  # step30.rb   #  spid_hash  lns_spid = File.read("k.step30.txt")  spid_hash = Hash.new  lns_spid.each_line do |line|    raise unless line =~ /^(.+)|(.+)|(.+)$/    spid = $1    spname = $2    evalue = $3    spid_hash[spid] =     {:name=>spname, :evalue=>evalue.to_f}  end #   
  • 11. # #  #  spid_hash.each {|spid,value|    #  if value[:evalue] > min_evalue then      spid_hash.delete(spid)   #  end           }  #  k.step40.txt  out = open("k.step40.txt","w");   spid_hash.each {|spid,value|    out.prinv("%s|%s|%sn",     spid,value[:name],value[:evalue]);   }  out.close 
  • 12. (6) step50.rb  Sonic Hedgehog   ‐ blast_clustalw.rb  49 59 87   #!/usr/bin/env ruby  require 'open‐uri’  #    #  spid_hash  lns_spid = File.read("k.step40.txt")  spid_hash = Hash.new  lns_spid.each_line do |line|    raise unless line =~ /^(.+)|(.+)|(.+)$/    spid = $1    spname = $2    evalue = $3    spid_hash[spid] = {:name=>spname, :evalue=>evalue.to_f}  end  #   
  • 13. # #  spid_hash  spid_hash.each {|spid,value|    #  uri = "hap://togows.dbcls.jp/entry/uniprot/" + spid + "/seq”  # REST     value[:seq] = open(uri).read  }  #  fasta  out = open("k.step50.fa","w");   spid_hash.each {|spid,value|    out.prinv(">%s|%s|%sn",spid,value[:name],value[:evalue]);     out.prinv("%sn",value[:seq]);   }  out.close 
  • 14. (7) step60.rb  CLUSTALW alignment   Step50.rb  clustalw  SOAP   ‐ blast_clustalw.rb  61 75 90   #!/usr/bin/env ruby  require 'soap/wsdlDriver’  # fasta  query  query           = File.read("k.step50.fa")  # query  mulSple alignment wsdl_clustalw   = "hap://togows.dbcls.jp/soap/wsdl/ddbj_clustalw.wsdl"  serv_clustalw   = SOAP::WSDLDriverFactory.new(wsdl_clustalw).create_rpc_driver  param           = "‐align ‐matrix=blosum ‐gapdist=8 ‐maxdiv=40 ‐outorder=aligned ‐ pwmatrix=blosum”  # SOAP CLUSTALW   result_clustalw = serv_clustalw.DdbjClustalwAnalyzeParam(query,param)  #  k.step60.txt  out = open("k.step60.txt","w");   out.puts result_clustalw out.close
  • 15. (8) blast_clustalw.rb   blast_clustalw.rb  77‐97 Step10‐60   shiz    # ID hsa:6469 # step10.rb    # step20.rb  #step30.rb step40.rb  #step50.rb  #step60.rb  #  auto.txt 
  • 16. blast_clustalw.rb   1)  hsa:6469 MIN_EVALUE ( 1.0e‐140, 1.0e‐120,   1.0e‐100 ) mulSple alignment ( )   2) rat Olr1082 mulSple alignment human mouse   ortholog   ‐    rat Olr1082 UniProt ID   REST Entry retrieval UniProt KEGG ID   blast_clustalw.rb (MIN_EVALUE 1.0e‐100)  mulSple alignment ortholog   Ensembl Synteny ortholog
  • 17. SOAP REST