lib/genomer/plugin.rb in genomer-0.0.10 vs lib/genomer/plugin.rb in genomer-0.1.0
- old
+ new
@@ -80,10 +80,10 @@
# The genome scaffold constructed from the files in the "ROOT/assembly/" directory.
#
# @return [Array] An array of Scaffolder::Region instances
def scaffold
- YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE)
+ YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE) and Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
Scaffolder.new(YAML.load(File.read(scaffold_file)),sequence_file)
end
def annotations(options = {})
attns = Scaffolder::AnnotationLocator.new(