puts basename
File.open( input_file ) do | file |
+ species_counter = 1
while line = file.gets
line.strip!
if !Util.is_string_empty?( line ) && !(line =~ /\s*#/ )
print_counts( per_species_counter, log, Constants::LINE_DELIMITER )
per_species_counter = 0
end
- puts " " + current_species + " [" + my_readlink + "]"
- log << current_species + " [" + my_readlink + "]" + Constants::LINE_DELIMITER
+ puts " " + species_counter.to_str + ": " + current_species + " [" + my_readlink + "]"
+ log << species_counter.to_str + ": " + current_species + " [" + my_readlink + "]" + Constants::LINE_DELIMITER
+ species_counter += 1
end
puts " " + seq_name
log << " " + seq_name + Constants::LINE_DELIMITER