Permalink
Browse files

Merge pull request #60 from jaredbischof/master

Fixed md5sum command in compute_sequence_statistics.pl
  • Loading branch information...
2 parents 5947c3a + e817a5a commit 25d2e70fda8a1c939c4e7f63ba2a095df583e4c7 @jaredbischof jaredbischof committed Dec 19, 2012
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 25d2e70

Please sign in to comment.