Skip to content

Commit 5d71b50

Browse files
committed
rna-star 2.7.11b (new formula)
1 parent 119ba12 commit 5d71b50

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Formula/r/rna-star.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
class RnaStar < Formula
2+
desc "RNA-seq aligner"
3+
homepage "https://github.com/alexdobin/STAR"
4+
url "https://github.com/alexdobin/STAR/archive/refs/tags/2.7.11b.tar.gz"
5+
version "2.7.11b"
6+
sha256 "3f65305e4112bd154c7e22b333dcdaafc681f4a895048fa30fa7ae56cac408e7"
7+
license all_of: ["MIT", "BSD-2-Clause"]
8+
9+
uses_from_macos "vim" => :build # needed for xxd
10+
uses_from_macos "zlib"
11+
12+
on_macos do
13+
depends_on "libomp"
14+
end
15+
16+
def install
17+
args = ["CXXFLAGS_SIMD="]
18+
args << "CXXFLAGSextra=-D'COMPILE_FOR_MAC'" if OS.mac?
19+
20+
cd "source" do
21+
system "make", "STAR", *args
22+
bin.install "STAR"
23+
end
24+
end
25+
26+
test do
27+
(testpath/"test.fasta").write <<~EOS
28+
>U00096.2:1-70
29+
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
30+
EOS
31+
out = shell_output("#{bin}/STAR --runMode genomeGenerate --genomeFastaFiles test.fasta --genomeSAindexNbases 2")
32+
assert_match "finished successfully", out
33+
end
34+
end

0 commit comments

Comments
 (0)