[BioRuby-cvs] bioruby/lib/bio/appl/iprscan report.rb,1.6,1.7
Mitsuteru C. Nakao
nakao at dev.open-bio.org
Mon Jul 16 19:21:35 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/appl/iprscan
In directory dev.open-bio.org:/tmp/cvs-serv21101/lib/bio/appl/iprscan
Modified Files:
report.rb
Log Message:
* Fixed go terms parsing in the raw format. (Thanks ngoto-san).
Index: report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/iprscan/report.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** report.rb 5 Apr 2007 23:35:40 -0000 1.6
--- report.rb 16 Jul 2007 19:21:32 -0000 1.7
***************
*** 105,109 ****
report.matches.last.ipr_description = line[12]
end
! report.matches.last.go_terms = line[13].split(', ') if line[13]
end
report.query_id = report.matches.first.query_id
--- 105,109 ----
report.matches.last.ipr_description = line[12]
end
! report.matches.last.go_terms = line[13].scan(/(\w+ \w+\:.+? \(GO:\d+\))/).flatten if line[13]
end
report.query_id = report.matches.first.query_id
More information about the bioruby-cvs
mailing list