Class: GlyDevKit::Subsumption
- Inherits:
-
Object
- Object
- GlyDevKit::Subsumption
- Defined in:
- lib/glydevkit/subsumption.rb
Instance Method Summary collapse
- #baseComposition(w) ⇒ Object
-
#baseCompositionWithLinkage(w) ⇒ Object
出来てる.
-
#compositionWithLinkage(w) ⇒ Object
出来てる.
- #monosaccharideCompositionWithoutLinkage(w) ⇒ Object
- #topology(w) ⇒ Object
Instance Method Details
#baseComposition(w) ⇒ Object
[View source]
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/glydevkit/subsumption.rb', line 59 def baseComposition(w) g = nil begin g = BaseComposition.beBorn(GraphManager.toGraph(w)) return GraphManager.toWURCS(g) rescue WURCSException => e puts e. rescue GraphManagerException => e puts e. end end |
#baseCompositionWithLinkage(w) ⇒ Object
出来てる
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/glydevkit/subsumption.rb', line 46 def baseCompositionWithLinkage(w) #出来てる g = nil begin g = BaseCompositionWithLinkage.beBorn(GraphManager.toGraph(w)) return GraphManager.toWURCS(g) rescue WURCSException => e puts e. rescue GraphManagerException => e puts e. end end |
#compositionWithLinkage(w) ⇒ Object
出来てる
40 41 42 43 |
# File 'lib/glydevkit/subsumption.rb', line 40 def compositionWithLinkage(w) #出来てる g = CompositionWithLinkage.beBorn(GraphManager.toGraph(w)) return GraphManager.toWURCS(g) end |
#monosaccharideCompositionWithoutLinkage(w) ⇒ Object
[View source]
29 30 31 32 33 34 35 36 37 |
# File 'lib/glydevkit/subsumption.rb', line 29 def monosaccharideCompositionWithoutLinkage(w) g = nil begin g = MonosaccharideCompositionWithoutLinkage.beBorn(GraphManager.toGraph(w)) return GraphManager.toWURCS(g) rescue WURCSException, GraphManagerException => e puts e. end end |
#topology(w) ⇒ Object
[View source]
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/glydevkit/subsumption.rb', line 15 def topology(w) g = nil begin g = Topology.beBorn(GraphManager.toGraph(w)) rescue GraphManagerException => e e.printStackTrace() rescue WURCSException => e e.printStackTrace() end kotae = GraphManager.toWURCS(g) return kotae end |