Sha256: ef9b336d1128c8c8ba1438fba39fcbd26794b407f7ccccfe6f4c7d69c1b17958

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

# convert document to PubAnnotation JSON
require 'simple_bioc'

if ARGF.argv.size < 1
  puts "usage: ruby convert_pubann.rb {filepath}"
  exit
end

collection = SimpleBioC::from_xml(ARGF.argv[0])
puts SimpleBioC::to_pubann(collection, {
  sourcedb: 'PubMed', 
  target: 'http://pubannotation.org/docs/sourcedb/PubMed/sourceid/18034444', 
  project: 'Ab3P-abbreviations'
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_bioc-0.0.24 samples/convert_pubann.rb