spec/cli_spec.rb in lederhosen-0.5.2 vs spec/cli_spec.rb in lederhosen-0.5.4

- old
+ new

@@ -7,10 +7,11 @@ $?.success?.should be_true end it 'should have a version command' do `./bin/lederhosen version `.strip.should == "lederhosen-#{Lederhosen::Version::STRING}" + $?.success?.should be_true end it 'should trim reads' do `./bin/lederhosen trim --reads-dir=spec/data/IL*.txt.gz --out-dir=#{$test_dir}/trimmed` $?.success?.should be_true @@ -41,13 +42,20 @@ $?.success?.should be_true end it 'should filter OTU abundance matrices' do `./bin/lederhosen otu_filter --input=#{$test_dir}/otu_table.csv --output=#{$test_dir}/otu_table.filtered.csv --reads 1 --samples 1` + $?.success?.should be_true end + it 'should split a fasta file into smaller fasta files (optionally gzipped)' do + `./bin/lederhosen split_fasta --input=#{$test_dir}/joined.fasta --out-dir=#{$test_dir}/split/ --gzip true -n 100` + $?.success?.should be_true + end + it 'should split joined.fasta into reads for each cluster' do `./bin/lederhosen split --reads=#{$test_dir}/joined.fasta --clusters=#{$test_dir}/clusters.uc --out-dir=#{$test_dir}/split --min-clst-size=1` + $?.success?.should be_true end it 'should create a fasta file containing representative reads for each cluster' do `./bin/lederhosen rep_reads --clusters=#{$test_dir}/clusters.uc --joined=#{$test_dir}/filtered.fasta --output=#{$test_dir}/representatives.fasta` $?.success?.should be_true