Permalink
Browse files

Original command was always returning md5sum of 1. Fixed it.

  • Loading branch information...
jaredbischof committed Dec 19, 2012
1 parent eba71db commit e817a5a0b26a3cc35f0df02827620d822e2c4c8e
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/compute_sequence_statistics.pl
@@ -107,7 +107,9 @@
push @stats, "sequence_content\t$seq_content";
# md5sum
- my $file_md5 = `md5sum '$dir/$file'` =~ /^(\S+)/;
+ my $file_md5 = `md5sum '$dir/$file'`;
+ chomp $file_md5;
+ $file_md5 =~ s/^(\S+).*/$1/;
push @stats, "file_checksum\t$file_md5";
# tech guess

0 comments on commit e817a5a

Please sign in to comment.