[BioRuby-cvs] bioruby/lib/bio/appl/sosui report.rb,1.4,1.5
Katayama Toshiaki
k at pub.open-bio.org
Wed Sep 7 21:22:12 EDT 2005
Update of /home/repository/bioruby/bioruby/lib/bio/appl/sosui
In directory pub.open-bio.org:/tmp/cvs-serv9021/lib/bio/appl/sosui
Modified Files:
report.rb
Log Message:
* expanded tab at the line head
Index: report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/sosui/report.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** report.rb 8 Sep 2003 05:46:25 -0000 1.4
--- report.rb 8 Sep 2005 01:22:10 -0000 1.5
***************
*** 31,41 ****
def initialize(entry)
! entry = entry.split(/\n/)
! @entry_id = entry[0].strip.sub(/^>/,'')
! @prediction = entry[1].strip
! @tmh = []
! @tmhs = 0
! parse_tmh(entry) if /MEMBRANE/ =~ @prediction
end
--- 31,41 ----
def initialize(entry)
! entry = entry.split(/\n/)
! @entry_id = entry[0].strip.sub(/^>/,'')
! @prediction = entry[1].strip
! @tmh = []
! @tmhs = 0
! parse_tmh(entry) if /MEMBRANE/ =~ @prediction
end
***************
*** 46,60 ****
def parse_tmh(entry)
! entry.each do |line|
! if /NUMBER OF TM HELIX = (\d+)/ =~ line
! @tmhs = $1
! elsif /TM (\d+) +(\d+)- *(\d+) (\w+) +(\w+)/ =~ line
! tmp = {'TMH' => $1.to_i,
! 'range' => Range.new($2.to_i, $3.to_i),
! 'grade' => $4,
! 'seq' => $5 }
! @tmh.push(tmp)
! end
! end
end
--- 46,60 ----
def parse_tmh(entry)
! entry.each do |line|
! if /NUMBER OF TM HELIX = (\d+)/ =~ line
! @tmhs = $1
! elsif /TM (\d+) +(\d+)- *(\d+) (\w+) +(\w+)/ =~ line
! tmp = {'TMH' => $1.to_i,
! 'range' => Range.new($2.to_i, $3.to_i),
! 'grade' => $4,
! 'seq' => $5 }
! @tmh.push(tmp)
! end
! end
end
More information about the bioruby-cvs
mailing list