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

Trouble using honeycomb lattice in cadnano2 using linux terminal #49

Open
nikitan24 opened this issue Jul 31, 2023 · 6 comments
Open

Trouble using honeycomb lattice in cadnano2 using linux terminal #49

nikitan24 opened this issue Jul 31, 2023 · 6 comments

Comments

@nikitan24
Copy link

nikitan24 commented Jul 31, 2023

Hello ,
I have trouble using cadnano2 in ubuntu where it shows the following error when clicking onto honeycomb lattice option.Although firstly it was fine.The error occured today.

Traceback (most recent call last):
File "/home/nikita/virtualenvs/cn24x/lib/python3.10/site-packages/cadnano2/views/sliceview/slicerootitem.py", line 33, in partAddedSlot
partItem = PartItem(modelPart, parent=self)
File "/home/nikita/virtualenvs/cn24x/lib/python3.10/site-packages/cadnano2/views/sliceview/partitem.py", line 51, in init
self._setLattice([], modelPart.generatorFullLattice())
File "/home/nikita/virtualenvs/cn24x/lib/python3.10/site-packages/cadnano2/model/parts/part.py", line 696, in generatorFullLattice
return product(list(range(self._maxRow)), list(range(self._maxCol)))
TypeError: 'str' object cannot be interpreted as an integer
Aborted (core dumped)

@nikitan24 nikitan24 changed the title Trouble using honeycomb lattice in cadnano2 Trouble using honeycomb lattice in cadnano2 using linux terminal Jul 31, 2023
@sdouglas
Copy link
Contributor

sdouglas commented Aug 3, 2023

This is peculiar. Did you happen to change the lattice size in the preferences? It’s complaining that the dimensions are stored as a string value but I am not sure why else it would change from the default int value.

@nikitan24
Copy link
Author

Yes I happen to change some preferences in the lattice when following a tutorial but I after reset it to default preferences. The application version for linux mostly hangs when clicked on any icon after that setting I guess.Tried re-installing it but to no avail.

@sdouglas
Copy link
Contributor

sdouglas commented Aug 3, 2023

You might try deleting the QSettings preferences file that is generated by cadnano. The problem is that I don’t know where that’s stored in Linux, so you might have to track it down. Is this using the latest version of PyQt6, 6.5.2?

@nikitan24
Copy link
Author

Ok sure will try tracking that. Yes, I am using the latest version of PyQt6, 6.5.2

@sdouglas
Copy link
Contributor

sdouglas commented Aug 3, 2023

The other thing if you’re comfortable modifying the source (see development instructions in the readme), is to explicitly cast those values as ints:

self._maxRow = kwargs.get('maxRow', app().prefs.honeycombRows)

becomes

self._maxRow = int(kwargs.get('maxRow', app().prefs.honeycombRows))

and likewise for self._maxCol.

@nikitan24
Copy link
Author

nikitan24 commented Aug 3, 2023

Will surely try both of these options. Thank you very much.

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

2 participants