Sha256: a2ad991387da0c2fc858d1546238211f5a51c3c20d499bd00096098931fc277e

Contents?: true

Size: 828 Bytes

Versions: 4

Compression:

Stored size: 828 Bytes

Contents

puts "Really rewrite reference files? This could mess up the tests... [y/N]"
exit unless gets.chomp == 'y'

puts "overwriting #{File.absolute_path(File.dirname(__FILE__) + '/../spec/turtle/bacon')}"
load File.dirname(__FILE__) + '/../lib/bio-publisci.rb'

gen = R2RDF::Reader::CSV.new
turtle_string = gen.generate_n3(File.dirname(__FILE__) + '/../spec/csv/bacon.csv','bacon',{dimensions:["producer","pricerange"], label_column:0})
open(File.dirname(__FILE__) + '/../spec/turtle/bacon', 'w'){|f| f.write turtle_string}

rcon = Rserve::Connection.new
gen = R2RDF::Reader::Dataframe.new
rcon.void_eval <<-EOF
library(qtl)
data(listeria)
mr = scanone(listeria,method="mr")
EOF
rexp = rcon.eval 'mr'
turtle_string = gen.generate_n3(rexp,'mr')
open(File.dirname(__FILE__) + '/../spec/turtle/reference', 'w'){|f| f.write turtle_string}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bio-publisci-0.0.6 scripts/update_reference.rb
bio-publisci-0.0.5 scripts/update_reference.rb
bio-publisci-0.0.4 scripts/update_reference.rb
bio-publisci-0.0.3 scripts/update_reference.rb