[BioRuby-cvs] bioruby/lib/bio/db/genbank common.rb,1.3,1.4

Naohisa Goto ngoto at pub.open-bio.org
Sun Aug 7 02:13:41 EDT 2005


Update of /home/repository/bioruby/bioruby/lib/bio/db/genbank
In directory pub.open-bio.org:/tmp/cvs-serv16926/lib/bio/db/genbank

Modified Files:
	common.rb 
Log Message:
Avoid NoMethodError (private method `chomp` called for nil:NilClass)
when parsing features of
ftp://ftp.ncbi.nih.gov/genbank/genomes/Bacteria/
Salmonella_typhimurium_LT2/AE006468.gbk


Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/genbank/common.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** common.rb	16 Jun 2005 16:43:11 -0000	1.3
--- common.rb	7 Aug 2005 05:28:10 -0000	1.4
***************
*** 186,193 ****
  
          # feature type  (source, CDS, ...)
!         head = line[0,20].strip
  
          # feature value (position or /qualifier=)
!         body = line[20,60].chomp
  
          # sub-array [ feature type, position, /q="data", ... ]
--- 186,193 ----
  
          # feature type  (source, CDS, ...)
!         head = line[0,20].to_s.strip
  
          # feature value (position or /qualifier=)
!         body = line[20,60].to_s.chomp
  
          # sub-array [ feature type, position, /q="data", ... ]



More information about the bioruby-cvs mailing list