bin/polymarker.rb in bio-polyploid-tools-0.8.0 vs bin/polymarker.rb in bio-polyploid-tools-0.8.1

- old
+ new

@@ -10,10 +10,15 @@ path= File.expand_path(File.dirname(__FILE__) + '/../lib/bioruby-polyploid-tools.rb') require path arm_selection_functions = Hash.new; +arm_selection_functions[:arm_selection_nrgenes] = lambda do | contig_name | +#example format: chr2A + ret = contig_name[3,2] + return ret +end arm_selection_functions[:arm_selection_first_two] = lambda do | contig_name | contig_name.gsub!(/chr/,"") ret = contig_name[0,2] return ret @@ -415,6 +420,6 @@ write_status "ERROR\t#{e.message}" raise e rescue Exception => e write_status "ERROR\t#{e.message}" raise e -end \ No newline at end of file +end