Commit 66df9df4 authored by Penom Nom's avatar Penom Nom
Browse files

get version for splitbc.pl

parent 06420674
......@@ -245,6 +245,7 @@ print_results unless $quiet;
sub parse_command_line {
my $help;
my $doc;
my $version;
pod2usage(1) if (scalar @ARGV==0);
......@@ -265,12 +266,14 @@ sub parse_command_line {
"radTAG=s"=> \$radTAG,
"TAG_mismatch=i"=> \$TAG_mm,
"help" => \$help,
"doc" => \$doc
"doc" => \$doc,
"version" => \$version
) ;
pod2usage(1) if ($help);
doc() if ($doc);
version() if ($version);
die "Error: barcode file not specified (use '--bcfile [FILENAME]')\n" unless defined $barcode_file;
die "Error: prefix path/filename not specified (use '--prefix-r1 [PATH]%.fq')\n" unless defined $newfile_prefix_r1;
# If a read2 file is provided
......@@ -876,3 +879,8 @@ EOF
exit 1;
}
sub version()
{
print STDOUT "1.0";
}
\ No newline at end of file
......@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os
import os, subprocess
from jflow.iotypes import OutputFileList,OutputFile, InputFile, InputFileList, Formats
from ng6.analysis import Analysis
......@@ -97,7 +97,10 @@ class Splitbc (Analysis):
def get_version(self):
return "1.0"
proc = subprocess.Popen( self.get_exec_path("splitbc.pl") + ' --version' , shell=True, stdout = subprocess.PIPE )
stdout, stderr = proc.communicate()
return stdout
def define_analysis(self):
self.name = "Demultiplexing"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment