ReadBouncer icon indicating copy to clipboard operation
ReadBouncer copied to clipboard

Follow up on issue #59

Open edidah opened this issue 2 years ago • 6 comments

Hi Jens-Uwe, I hade raised an issue on MinKnow not connecting correctly: I have attached link below, https://github.com/JensUweUlrich/ReadBouncer/issues/59#issue-1418263480 We haven't resolve yet any further assistance we be of much help.

Thank you

edidah avatar Oct 23 '22 03:10 edidah

Sorry, I thought you resolved the issue by using port 9504. So usually you should be able to connect to MinKNOW using port 9502, which is the port to connect to the MK connection manager. Can you please tell me which version of MinKNOW you have installed on your machine? When you start MinKNOW, do you see the simulated device MS0000?

JensUweUlrich avatar Oct 24 '22 07:10 JensUweUlrich

Sorry for the late response. The Minknow version is MiKnow v.22.05.7. We haven't edited settings to get the simulated device MS0000 for fear of interrupting other sequencing activities. Can the run be done minus the simulated device?

edidah avatar Oct 26 '22 07:10 edidah

Then that's the issue here. For your understanding: ReadBouncer connects to port 9502, which is the MinKNOW manager port. ReadBouncer than asks for the port of the given device name. So in our use case with a simulated device, it asks for the port of device MS00000. Since you did not set up the simulated device, MinKNOW manager does not return a valid port and thus we cannot connect to the device.

JensUweUlrich avatar Oct 27 '22 10:10 JensUweUlrich

Hi Jens, I am still stuck on the simulated device. We have installed the ReadBouncer on GridION device which runs MinKnow. Is the simulated device a virtual machine beside the GridION? And do you have guidelines to setup the simulated device?

edidah avatar Nov 03 '22 06:11 edidah

Hi

you can create a simulated device by providing the minknow manager with the dedicated parameter. Therefore you first need to modify the following file /lib/systemd/system/minknow.service and edit the following lines

[Service]
ExecStart=/opt/ont/minknow/bin/mk_manager_svc --simulated-integrated-devices 1

Then you need to reload the daemon via sudo systemctl daemon-reload and restart the MinKNOW service via sudo service minknow restart (In some cases you need to reboot your operating system). Your MinKNOW instance will now show a simulated device named MS00000 that will playback the bulkfile rather than live sequencing.

We also explained how to setup the testing with a simulated device here

JensUweUlrich avatar Nov 03 '22 10:11 JensUweUlrich

Thank you Jens, I will try this. I was wondering what happens when I want to do a real adaptive sampling experiment using the software. Do I still need the simulated device or how do I go about setting it up?

edidah avatar Nov 04 '22 00:11 edidah

@edidah

No, you don't need the simulated device for a real adaptive sampling run. In a real experiment, you enter the flowcell into the sequencing device, and MinKNOW will display the name of the flowcell immediately. Instead of MS00000 you only need to tell ReadBouncer the name/ID of the flowcell.

JensUweUlrich avatar Nov 09 '22 08:11 JensUweUlrich

We have been struggling to set up an adaptive sampling run that uses the ReadBouncer for a while now. Despite us feeding the Flow cell ID to the MinKnow the ReadBouncer still doesn't prompt us to start sequencing; see the attached image. Should one start the run from the MinKnow? If yes how should I setup the run parameters and at what step will I integrate the ReadBouncer? Kindly outline for us the steps needed to start adaptive sampling using the ReadBouncer especially from starting the ReadBouncer, setting the run parameters, starting the run on the MinKnow.

Thanks, Edidah

edidah avatar Nov 11 '22 03:11 edidah

Just to make sure: Are you using the latest ReadBouncer version or version 1.1? ReadBouncer 1.1 is not compatible with MinKNOW version 5.

JensUweUlrich avatar Nov 11 '22 07:11 JensUweUlrich

We have 1.2.1 version

edidah avatar Nov 11 '22 10:11 edidah

Are you able to start a run on the simulated device? Can you also confirm that the device MS00000 is displayed in your MinKNOW GUI? I forgot, that you are running a GridION and maybe the device/flowcell name is different than with the MinION. Another possibility is that MinKNOW blocks the grpc connection. Can you please open /opt/ont/minknow/conf/app_conf file and post the values for

"local_connection_only": "all_open",
"guest_access_default": "local_only"

JensUweUlrich avatar Nov 11 '22 11:11 JensUweUlrich

Hi Jens, we ran the GridION with the suggested values. However, from the output we are not still able to establish a successful connection to the MinKnow: kindly find the attached screenshots for further assistance.

MicrosoftTeams-image Screenshot 2022-11-15 at 16 17 29

edidah avatar Nov 15 '22 13:11 edidah

ok, so it's not the grpc server that refuses the connection. Could it be that the simulated device is named something like XS1 instead of MS00000. Maybe you could provide me with screenshots of your MinKNOW GUI when you try to start a run on the suimulated device.

JensUweUlrich avatar Nov 15 '22 13:11 JensUweUlrich