File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ bottle do
10+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "df53db303004a937634a3eaa227119f92eac00286bc80df0558dd1db1e5bb314"
11+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "c12dcd41638c9578c39ee0ecb0ec33996ee390690eb95d68b49f56f0f129c608"
12+ sha256 cellar : :any_skip_relocation , arm64_ventura : "eef8d5c492f1e608a796350bd6a1fd0acfd46487c18ce901aeaf7aae8d570607"
13+ sha256 cellar : :any_skip_relocation , sonoma : "b53c13aeff5e16110831413444b3bea8e6bdecbf068950a7431d8e8744f8583b"
14+ sha256 cellar : :any_skip_relocation , ventura : "bf2216ad5cce311a52543ea4e1921a203ca6c1f03ed99057f977d804ed8326c5"
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "8766e41ed4f092c6fc9715603a34309012200a8db2cb2cd0bdea1c40534f64d6"
16+ end
17+
18+ uses_from_macos "vim" => :build # needed for xxd
19+ uses_from_macos "zlib"
20+
21+ on_macos do
22+ depends_on "libomp"
23+ end
24+
25+ def install
26+ args = [ "CXXFLAGS_SIMD=" ]
27+ args << "CXXFLAGSextra=-D'COMPILE_FOR_MAC'" if OS . mac?
28+
29+ cd "source" do
30+ system "make" , "STAR" , *args
31+ bin . install "STAR"
32+ end
33+ end
34+
35+ test do
36+ ( testpath /"test.fasta" ) . write <<~EOS
37+ >U00096.2:1-70
38+ AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
39+ EOS
40+ out = shell_output ( "#{ bin } /STAR --runMode genomeGenerate --genomeFastaFiles test.fasta --genomeSAindexNbases 2" )
41+ assert_match "finished successfully" , out
42+ end
43+ end
You can’t perform that action at this time.
0 commit comments