Method: Bio::GO::GeneAssociation#initialize

Defined in:
lib/bio/db/go.rb

#initialize(entry) ⇒ GeneAssociation

Parsing an entry (in a line) in the gene_association flatfile.



261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# File 'lib/bio/db/go.rb', line 261

def initialize(entry) 
  tmp = entry.chomp.split(/\t/)
  @db                = tmp[0] 
  @db_object_id      = tmp[1]
  @db_object_symbol  = tmp[2]
  @qualifier         = tmp[3]  # 
  @goid              = tmp[4]
  @db_reference      = tmp[5].split(/\|/)  #
  @evidence          = tmp[6]
  @with              = tmp[7].split(/\|/)  # 
  @aspect            = tmp[8]
  @db_object_name    = tmp[9]  #
  @db_object_synonym = tmp[10].split(/\|/) #
  @db_object_type    = tmp[11]
  @taxon             = tmp[12] # taxon:4932
  @date              = tmp[13] # 20010118
  @assigned_by       = tmp[14] 
end