homebrew-core/Formula/picard-tools.rb
Igor Kapkov 8ea08a590b
picard-tools 2.18.22
Closes #35614.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-01-02 13:24:16 +08:00

25 lines
745 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.18.22/picard.jar"
sha256 "e6002ebb385f5f996c0c18a50ce9a864362714b55c22965dd4cbea7863132532"
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