Module: Bio::NeXML

Includes:
LibXML
Defined in:
lib/bio/db/nexml.rb,
lib/bio/db/nexml/taxa.rb,
lib/bio/db/nexml/trees.rb,
lib/bio/db/nexml/mapper.rb,
lib/bio/db/nexml/matrix.rb,
lib/bio/db/nexml/parser.rb,
lib/bio/db/nexml/writer.rb,
lib/bio/db/nexml/mapper/framework.rb,
lib/bio/db/nexml/mapper/inflection.rb,
lib/bio/db/nexml/mapper/repository.rb

Defined Under Namespace

Modules: Base, Mapper Classes: Cell, CellMatrix, CellRow, Char, Characters, Continuous, ContinuousCell, ContinuousCells, ContinuousSeqs, Dna, DnaCells, DnaSeqs, Edge, FloatEdge, FloatNetwork, FloatRootEdge, FloatTree, Format, IntEdge, IntNetwork, IntRootEdge, IntTree, Matrix, Network, Nexml, Node, Otu, Otus, Parser, Protein, ProteinCells, ProteinSeqs, Restriction, RestrictionCells, RestrictionSeqs, Rna, RnaCells, RnaSeqs, RootEdge, Row, SeqMatrix, SeqRow, Sequence, Standard, StandardCells, StandardSeqs, State, States, Tree, Trees, Writer

Constant Summary collapse

@@id_counter =
0

Class Method Summary collapse

Class Method Details

.generate_id(klass) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/bio/db/nexml.rb', line 13

def self.generate_id( klass )
  myname = klass.name
  local = myname.gsub(/.*:/,"")
  @@id_counter += 1
  newid = @@id_counter
  "#{local}#{newid}"
end