bin/fasta_util in fasta_util-0.3.0 vs bin/fasta_util in fasta_util-0.3.1

- old
+ new

@@ -93,12 +93,12 @@ desc "composition FILENAME [options]", "Outputs data on the sequence composition" def composition(filename) invoke :filecheck composition_hash = Hash[Bio::FlatFile.open(filename).map{|entry| [entry.definition, entry.seq.composition]}] - all_chars = composition_hash.values.map{|h| h.keys}.inject(:+).to_set + all_chars = composition_hash.values.map{|h| h.keys}.inject(:+).uniq.sort - puts "definition\t#{all_chars.to_a.join("\t")}" + puts "definition\t#{all_chars.join("\t")}" composition_hash.each do |definition, composition| composition.default = 0 print definition, "\t" puts all_chars.map{|char| composition[char]}.join("\t") end