X-Git-Url: https://git.donarmstrong.com/?p=function2gene.git;a=blobdiff_plain;f=bin%2Ffunction2gene;h=b6810e2be8c8ed4eab05cedd73ca50b99e3d6719;hp=de4915bc4f95ecbdd9c564ffb7de88938658d4c0;hb=ad648ff8ab8c675513d4ae80be9cd73ee0c64551;hpb=c2f4a7dcc79e54adb1cebc4b76ff27a72932d062 diff --git a/bin/function2gene b/bin/function2gene index de4915b..b6810e2 100755 --- a/bin/function2gene +++ b/bin/function2gene @@ -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;