homebrew-core/Formula/picard-tools.rb
Igor Kapkov 91a202bda7
picard-tools 2.19.0
Closes #38277.

Signed-off-by: Igor Kapkov <igasgeek@me.com>
2019-03-26 12:49:31 +11:00

25 lines
744 B
Ruby

class PicardTools < Formula
desc "Tools for manipulating HTS data and formats"
homepage "https://broadinstitute.github.io/picard/"
url "https://github.com/broadinstitute/picard/releases/download/2.19.0/picard.jar"
sha256 "f97fc3f7a73b55cceea8b6a6488efcf1b2fbf8cad61d88645704ddd45a8c5950"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install "picard.jar"
bin.write_jar_script libexec/"picard.jar", "picard"
end
test do
(testpath/"test.fasta").write <<~EOS
>U00096.2:1-70
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCT
CTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
EOS
cmd = "#{bin}/picard NormalizeFasta I=test.fasta O=/dev/stdout"
assert_match "TCTCTG", shell_output(cmd)
end
end