spec/cli_spec.rb in lederhosen-1.1.1 vs spec/cli_spec.rb in lederhosen-1.2.0
- old
+ new
@@ -22,10 +22,12 @@
$?.success?.should be_true
end
it 'can cluster reads using usearch' do
`./bin/lederhosen cluster --input #{$test_dir}/trimmed/ILT_L_9_B_001.fasta --database #{$test_dir}/test_db.udb --identity 0.95 --output #{$test_dir}/clusters.uc`
+ $?.success?.should be_true
+ File.exists?(File.join($test_dir, 'clusters.uc')).should be_true
end
it 'should build abundance matrices for each level' do
levels = "domain phylum class order FAMILY genus Species"
`./bin/lederhosen otu_table --files=spec/data/test.uc --prefix=#{$test_dir}/otu_table --levels=#{levels}`
@@ -43,9 +45,13 @@
end
it 'should split a fasta file into smaller fasta files (optionally gzipped)' do
`./bin/lederhosen split_fasta --input=#{$test_dir}/trimmed/ILT_L_9_B_001.fasta --out-dir=#{$test_dir}/split/ --gzip true -n 100`
$?.success?.should be_true
+ end
+
+ it 'should print representative sequences from uc files' do
+ `./bin/lederhosen get_reps --input=#{$test_dir}/clusters.uc --database=#{$test_dir}/trimmed/ILT_L_9_B_001.fasta --output=#{$test_dir}/representatives.fasta`
end
it 'should create a fasta file containing representative reads for each cluster'
end