[BioRuby-cvs] bioruby/lib/bio/io pubmed.rb,1.22,1.23

Katayama Toshiaki k at dev.open-bio.org
Wed Dec 12 13:53:28 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv18817/lib/bio/io

Modified Files:
	pubmed.rb 
Log Message:
* minor fix (from yonayona bar)


Index: pubmed.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/pubmed.rb,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** pubmed.rb	28 Nov 2007 06:34:33 -0000	1.22
--- pubmed.rb	12 Dec 2007 13:53:26 -0000	1.23
***************
*** 52,60 ****
  #
  #   # If you don't know the pubmed ID:
! #   Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics)").each do |x|
  #     p x
  #   end
  #
! #   Bio::PubMed.search("(genome AND analysis) OR bioinformatics)").each do |x|
  #     p x
  #   end
--- 52,60 ----
  #
  #   # If you don't know the pubmed ID:
! #   Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics").each do |x|
  #     p x
  #   end
  #
! #   Bio::PubMed.search("(genome AND analysis) OR bioinformatics").each do |x|
  #     p x
  #   end
***************
*** 274,284 ****
    opts = {"rettype" => "count"}
    puts Time.now
!   puts pubmed.esearch("(genome AND analysis) OR bioinformatics)", opts)
    puts Time.now
!   puts pubmed.esearch("(genome AND analysis) OR bioinformatics)", opts)
    puts Time.now
!   puts pubmed.esearch("(genome AND analysis) OR bioinformatics)", opts)
    puts Time.now
!   pubmed.esearch("(genome AND analysis) OR bioinformatics)").each do |x|
      puts x
    end
--- 274,284 ----
    opts = {"rettype" => "count"}
    puts Time.now
!   puts pubmed.esearch("(genome AND analysis) OR bioinformatics", opts)
    puts Time.now
!   puts pubmed.esearch("(genome AND analysis) OR bioinformatics", opts)
    puts Time.now
!   puts pubmed.esearch("(genome AND analysis) OR bioinformatics", opts)
    puts Time.now
!   pubmed.esearch("(genome AND analysis) OR bioinformatics").each do |x|
      puts x
    end
***************
*** 298,302 ****
  
    puts "--- Search PubMed by Entrez CGI ---"
!   pubmed.search("(genome AND analysis) OR bioinformatics)").each do |x|
      p x
    end
--- 298,302 ----
  
    puts "--- Search PubMed by Entrez CGI ---"
!   pubmed.search("(genome AND analysis) OR bioinformatics").each do |x|
      p x
    end
***************
*** 316,326 ****
    opts = {"rettype" => "count"}
    puts Time.now
!   puts Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics)", opts)
    puts Time.now
!   puts Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics)", opts)
    puts Time.now
!   puts Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics)", opts)
    puts Time.now
!   Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics)").each do |x|
      puts x
    end
--- 316,326 ----
    opts = {"rettype" => "count"}
    puts Time.now
!   puts Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics", opts)
    puts Time.now
!   puts Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics", opts)
    puts Time.now
!   puts Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics", opts)
    puts Time.now
!   Bio::PubMed.esearch("(genome AND analysis) OR bioinformatics").each do |x|
      puts x
    end
***************
*** 340,344 ****
  
    puts "--- Search PubMed by Entrez CGI ---"
!   Bio::PubMed.search("(genome AND analysis) OR bioinformatics)").each do |x|
      p x
    end
--- 340,344 ----
  
    puts "--- Search PubMed by Entrez CGI ---"
!   Bio::PubMed.search("(genome AND analysis) OR bioinformatics").each do |x|
      p x
    end




More information about the bioruby-cvs mailing list