diff options
| author | Lance Parsons | 2012-01-20 18:53:34 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-21 21:36:09 -0500 |
| commit | 4c6bc7bcb9438e8e02c4ec448776ad450800fe5d (patch) | |
| tree | 10c4fae80d62ff1bbf4a11a1543b112a87cda664 /Library/Formula/fastx_toolkit.rb | |
| parent | f30d35b1f8a153d9202e2ee6455721dcd064a9b4 (diff) | |
| download | homebrew-4c6bc7bcb9438e8e02c4ec448776ad450800fe5d.tar.bz2 | |
New formula: fastx_toolkit
The FASTX-Toolkit is a collection of command line tools for Short-Reads
FASTA/FASTQ files preprocessing that are well suited for processing High
Throughput Sequencing data
Closes #9697.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/fastx_toolkit.rb')
| -rw-r--r-- | Library/Formula/fastx_toolkit.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/fastx_toolkit.rb b/Library/Formula/fastx_toolkit.rb new file mode 100644 index 000000000..21c627c93 --- /dev/null +++ b/Library/Formula/fastx_toolkit.rb @@ -0,0 +1,32 @@ +require 'formula' + +class FastxToolkit < Formula + homepage 'http://hannonlab.cshl.edu/fastx_toolkit/' + url 'http://hannonlab.cshl.edu/fastx_toolkit/fastx_toolkit-0.0.13.tar.bz2' + md5 '6d233ff4ae3d52c457d447179f073a56' + + depends_on 'pkg-config' => :build + depends_on 'libgtextutils' + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + end + + def test + fixture = <<-EOS.undent + >MY-ID + AAAAAGGGGG + CCCCCTTTTT + AGCTN + EOS + expect = <<-EOS.undent + >MY-ID + AAAAAGGGGGCCCCCTTTTTAGCTN + EOS + actual = `echo "#{fixture}" | #{bin}/fasta_formatter` + actual == expect + end +end |
