]> git.donarmstrong.com Git - function2gene.git/blobdiff - bin/function2gene
handle \r properly
[function2gene.git] / bin / function2gene
index de4915bc4f95ecbdd9c564ffb7de88938658d4c0..b6810e2be8c8ed4eab05cedd73ca50b99e3d6719 100755 (executable)
@@ -192,6 +192,7 @@ if (@{$options{keywords}}) {
               next if /^\s*[#;]/;
               next unless /\w+/;
               chomp;
+              s/\r$//;
               my ($keyword,$weight) = split /\t/, $_;
               $weight = 1 if not defined $weight;
               $state{keyword_weight}{$keyword} = $weight;