Bandage icon indicating copy to clipboard operation
Bandage copied to clipboard

command line Bandage: --names --lengths --depth only draws black rectangels

Open sovp opened this issue 4 years ago • 2 comments

I run: Bandage image assembly.gfa assembly.png and get: assembly-1

Then I run: Bandage image assembly.gfa assembly.png --names --lengths --depth and get: assembly-2

What went wrong?

sovp avatar Aug 19 '20 12:08 sovp

If you're running this on a remote server, then can you try connecting with ssh -X instead of just ssh? It's a strange issue that I don't really understand, but Qt seems to want X11 forwarding to render text.

rrwick avatar Aug 26 '20 00:08 rrwick

Thank you very much for the answer @rrwick

I have checked that X11 forwarding is activated. It has been on all the time.

For background info to others is here some extra info on what I have tried:

I keep getting this error with command line Bandage with the labels “--names --lengths --depth”:

Bandage image assembly.gfa assembly_bandage_image_with_labels.png --names --lengths --depth

”QXcbConnection: Could not connect to display”

When I run command line Bandage without the labels, then I get the desired .png

Bandage image assembly.gfa assembly_bandage_image.png

I am on Ubuntu 16.04 LTS on a google webserver.

I have installed the depencies:

qt5-default

build-essential

git

qtbase5-dev

libqt5svg5-dev

I have tried installing both the static and dynamic Pre-built Bandage binaries.

I have built Bandage from source.

I have used the docker image nanozoo/bandage with the specified '--env="DISPLAY" --net=host'

All installs works without the labels parameters, but gives the ”QXcbConnection: Could not connect to display” error, when I specify “--names --lengths --depth”.

sovp avatar Aug 26 '20 07:08 sovp