Sha256: 5a2e3105bbbb9014f671223d022ba9b349e4903102c70d5a4b5d65f22eacfda1

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

require 'simple_bioc'
require 'json-compare'
require 'test_xml/spec'

describe "PubAnn" do
  it "should convert file to pubann JSON" do
    col1 = SimpleBioC.from_xml("./xml/pubann/18034444.xml")
    output = SimpleBioC.to_pubann(col1, {
      sourcedb: 'PubMed', 
      target: 'http://pubannotation.org/docs/sourcedb/PubMed/sourceid/18034444', 
      project: 'Ab3P-abbreviations'
    })
    puts output
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_bioc-0.0.24 spec/pubann_spec.rb