/usr/share/perl5/KronaTools/scripts/ImportXML.pl is in radiant 2.7+dfsg-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | #!/usr/bin/env perl
# Copyright © 2011, Battelle National Biodefense Institute (BNBI);
# all rights reserved. Authored by: Brian Ondov, Nicholas Bergman, and
# Adam Phillippy
#
# See the LICENSE.txt file included with this software for license information.
use strict;
BEGIN
{
use File::Basename;
use Cwd 'abs_path';
use lib dirname(abs_path($0)) . "/../lib";
use KronaTools;
}
setOption('out', 'xml.krona.html');
my @options =
qw(
out
url
);
getKronaOptions(@options);
if
(
@ARGV < 1
)
{
my $scriptName = getScriptName();
printHeader("KronaTools $KronaTools::version - $scriptName");
print
'Creates a Krona chart from xml data describing each node and how the chart
should look.
';
printHeader('Usage');
print
"$scriptName [options] <XML_file>
";
printColumns
(
' XML_file',
'A file containing XML tags that specify chart attributes and describe the node
hierarchy. An XML header is not necessary. For a complete description of XML
tags, see: https://sourceforge.net/p/krona/wiki/KronaTools/'
);
printOptions(@options);
exit;
}
my ($xmlFile) = @ARGV;
my $outFile = getOption('out');
print "Writing $outFile...\n";
open OUT, ">$outFile";
print OUT htmlHeader();
open IN, "<$xmlFile" or die $!;
while ( <IN> )
{
print OUT $_;
}
close IN;
print OUT htmlFooter();
close OUT;
|