bioawk: import from homebrew/science
Closes #22544. Signed-off-by: ilovezfs <ilovezfs@icloud.com>master
parent
23a9f553b4
commit
6f0ba3f37d
|
@ -0,0 +1,25 @@
|
|||
class Bioawk < Formula
|
||||
desc "AWK modified for biological data"
|
||||
homepage "https://github.com/lh3/bioawk"
|
||||
url "https://github.com/lh3/bioawk/archive/v1.0.tar.gz"
|
||||
sha256 "5cbef3f39b085daba45510ff450afcf943cfdfdd483a546c8a509d3075ff51b5"
|
||||
|
||||
def install
|
||||
# Fix make: *** No rule to make target `ytab.h', needed by `b.o'.
|
||||
ENV.deparallelize
|
||||
|
||||
system "make"
|
||||
bin.install "bioawk"
|
||||
man1.install "awk.1" => "bioawk.1"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.fasta").write <<~EOS
|
||||
>U00096.2:1-70
|
||||
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCT
|
||||
CTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
|
||||
EOS
|
||||
cmd = "#{bin}/bioawk -cfastx '{print length($seq)}' test.fasta"
|
||||
assert_equal "70", shell_output(cmd).chomp
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue