Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpretation of gnuplot #15

Open
HTaekOppa opened this issue Jan 24, 2019 · 6 comments
Open

Interpretation of gnuplot #15

HTaekOppa opened this issue Jan 24, 2019 · 6 comments

Comments

@HTaekOppa
Copy link

Dear MashMap,

Thank you for the great program. It was really easy to use.
I have a quick questions about the outcome of gun plot (plot dot graph).

out

If you look at the png file, it shows a different colours (light blue and purple) and and direction (vertically and/or inverted).

Could you please provide me a bit more explanation about this?

Many thanks in advance!

Cheers,

Taek

@cjain7
Copy link
Contributor

cjain7 commented Jan 25, 2019

Hi, each color dot/line indicates match between your ref. and query. We use two different colors to differentiate the strands (+ve/ -ve). Inverted lines indicate inversions.
You can also use the interactive terminal output format to zoom into various locations...

@HTaekOppa
Copy link
Author

Hi,

Thank you for the answer.
Re interactive terminal output format to zoom, could you please tell me more about this? Is it required any specific mode and/or output file format? I used "png" mode to generate the plot.

Re other modes, I also used "x11" and "postscript" but did not work. It failed generating plot. What is the difference (output file/format) between "png" and "x11 & postscrpt"?

Rendering plot out
gnuplot -geometry 700x700+0+0 -title mashmap-dotplot out.gp
WARNING: Unable to query clipboard with xclip
unrecognized option -geometry
"700x700+0+0", line 0: Cannot open script file '700x700+0+0'

Can't find PostScript prologue file prologue.ps
loadpath is empty
gnuplotrc is read from /anaconda/envs/_build/share/gnuplot/5.0
Please copy prologue.ps to one of the above directories
or set the environmental variable GNUPLOT_PS_DIR
or set the loadpath appropriately
"out.gp", line 909: Plot failed!

Apart from this, is there any chance I could generate a circulus plot using the current output from MashMap?

Cheers,

Taek

@cjain7
Copy link
Contributor

cjain7 commented Feb 5, 2019

Can you retry the "x11" option with the most recent version of generateDotPlot script ? I made a minor update to the script to work with gnuplot 5+.

We don't have support for circular visualization. You can try the popular circos tool; however the output of mashmap will need to be modified into its format.

@cjain7 cjain7 changed the title Interpretation of gun plot Interpretation of gnuplot Feb 6, 2019
@macarima
Copy link

macarima commented Apr 18, 2019

In my case, same problem was happened.

ArimaMini:Genome_assembly_comparsion_mashmap

macarima$ ./generateDotPlot.pl postscript medium mashmap.out
gnuplot 5.2 patchlevel 6
Reading mashmap file mashmap.out
Writing plot files out.fplot, out.rplot
Writing gnuplot script out.gp
Rendering plot out.ps
gnuplot out.gp

set terminal postscript color solid "Courier" 8 enhanced font 'Courier,8'
^
"out.gp" line 1: extraneous argument in set terminal postscript

WARNING: Unable to run 'gnuplot out.gp', Inappropriate ioctl for device

I cannot use postscript or x11 mode, too.
I use gnuplot 5.2 patchlevel 6 on osx and linux.

@cjain7
Copy link
Contributor

cjain7 commented Apr 21, 2019

@macarima, after you run the script, can you remove the text enhanced font 'Courier,8' from the file out.gp , and try running gnuplot out.gp ?
Please try with three modes and let me know if it helps.

@cjain7
Copy link
Contributor

cjain7 commented Apr 21, 2019

I wonder if your gnuplot installation supports png. You can check by opening your terminal, and typing gnuplot, followed by set terminal to see all available options.

It seems like gnuplot needs to be installed properly to enable png support. This is a useful link on how to do it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants