From ab45910fddb77f698a16131f2b8fc3a3cf3867a1 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 4 May 2011 11:08:27 +0000 Subject: [PATCH] added --clean to assemble_seq_idba git-svn-id: http://biopieces.googlecode.com/svn/trunk@1366 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/assemble_seq_idba | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bp_bin/assemble_seq_idba b/bp_bin/assemble_seq_idba index 812fe5f..f3a29af 100755 --- a/bp_bin/assemble_seq_idba +++ b/bp_bin/assemble_seq_idba @@ -41,6 +41,7 @@ casts << {:long=>'count_min', :short=>'c', :type=>'uint', :mandatory=>false, casts << {:long=>'cover', :short=>'C', :type=>'uint', :mandatory=>false, :default=>0, :allowed=>nil, :disallowed=>nil} casts << {:long=>'pairs_min', :short=>'p', :type=>'uint', :mandatory=>false, :default=>5, :allowed=>nil, :disallowed=>nil} casts << {:long=>'prefix_len', :short=>'P', :type=>'uint', :mandatory=>false, :default=>3, :allowed=>nil, :disallowed=>nil} +casts << {:long=>'clean', :short=>'x', :type=>'flag', :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil} bp = Biopieces.new @@ -86,6 +87,9 @@ unless File.size(file_fasta) == 0 end end +FileUtils.remove_entry_secure options[:directory] if options[:clean] + + # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -- 2.39.5