git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in progress
[jalview.git]
/
forester
/
ruby
/
evoruby
/
lib
/
evo
/
io
/
parser
/
uniprot_parser.rb
diff --git
a/forester/ruby/evoruby/lib/evo/io/parser/uniprot_parser.rb
b/forester/ruby/evoruby/lib/evo/io/parser/uniprot_parser.rb
index
e8de372
..
1d6e5ab
100644
(file)
--- a/
forester/ruby/evoruby/lib/evo/io/parser/uniprot_parser.rb
+++ b/
forester/ruby/evoruby/lib/evo/io/parser/uniprot_parser.rb
@@
-77,6
+77,20
@@
module Evoruby
attr_accessor :pe
attr_accessor :kw
attr_accessor :pe
attr_accessor :kw
+ def get_pdb_ids
+ ids = []
+ if dr != nil
+ dr.each do | dr |
+ if dr != nil
+ if dr =~ /PDB;\s+([A-Z0-9]{4});/
+ ids << $1
+ end
+ end
+ end
+ end
+ ids
+ end
+
end
end