File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-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+ 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
You can’t perform that action at this time.
0 commit comments