X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=binaries%2Fsrc%2Fmafft%2Fextensions%2Fmxscarna_src%2FprobconsRNA%2FMakeGnuPlot.cc;fp=binaries%2Fsrc%2Fmafft%2Fextensions%2Fmxscarna_src%2FprobconsRNA%2FMakeGnuPlot.cc;h=0000000000000000000000000000000000000000;hb=6e0ce943f09b5ac30f3eb8dc0f20bc75114669ce;hp=fe6641a5874470225ab3fb4cd8c446ea42778ce1;hpb=48f0451143441afce738d887b0cde1fb5cdbc02e;p=jabaws.git diff --git a/binaries/src/mafft/extensions/mxscarna_src/probconsRNA/MakeGnuPlot.cc b/binaries/src/mafft/extensions/mxscarna_src/probconsRNA/MakeGnuPlot.cc deleted file mode 100644 index fe6641a..0000000 --- a/binaries/src/mafft/extensions/mxscarna_src/probconsRNA/MakeGnuPlot.cc +++ /dev/null @@ -1,58 +0,0 @@ -///////////////////////////////////////////////////////////////// -// MakeGnuPlot.cc -///////////////////////////////////////////////////////////////// - -#include -#include - -using namespace std; - -int main (int argc, char **argv){ - - if (argc == 1 || argc > 3){ - cerr << "Usage: makegnuplot annotscores [refscores]" << endl; - exit (1); - } - - ifstream data (argv[1]); - - if (data.fail()){ - cerr << "ERROR: Could not open file " << argv[1] << endl; - exit (1); - } - - int x, ct = 0; - while (data >> x) ct++; - data.close(); - - ofstream out ("temporary_gnuplot_script"); - - if (out.fail()){ - cerr << "ERROR: Could not create temporary file." << endl; - exit (1); - } - - out << "set title \"Column Reliability Scores\"" << endl - << "set xlabel \"Alignment Position\"" << endl - << "set ylabel \"Column Reliability\"" << endl - << "set xr [1:" << ct << "]" << endl - << "set term postscript enhanced color" << endl - << "set output \"reliability.ps\"" << endl; - - if (argc == 3){ - out << "set style fill solid 0.5 noborder" << endl - << "plot \"" << argv[2] << "\" title \"actual\" with boxes lt 2, \\" << endl - << " \"" << argv[1] << "\" title \"predicted\" with histeps lt 1 lw 3" << endl; - } - else - out << "plot \"" << argv[1] << "\" title \"predicted\" with histeps lt 1 lw 3" << endl; - - out.close(); - - if (system ("gnuplot temporary_gnuplot_script") == -1){ - cerr << "ERROR: Could not run Gnuplot correctly." << endl; - exit (1); - } - - //system ("rm temporary_gnuplot_script"); -}