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

for protein file it shows as 'IFeatureOmegaGui' object has no attribute 'proteinKNN' #1

Open
Sathya1007 opened this issue Jul 28, 2023 · 5 comments

Comments

@Sathya1007
Copy link

Whenever i try to open a protein sequence file it always shows a error as this
Traceback (most recent call last):
File "C:\Users\sathy\anaconda3\envs\gui\lib\site-packages\iFeatureOmegaGUI\iFeatureOmegaGUI.py", line 2274, in get_fasta_file_name
self.check_protein_descriptors()
File "C:\Users\sathy\anaconda3\envs\gui\lib\site-packages\iFeatureOmegaGUI\iFeatureOmegaGUI.py", line 2258, in check_protein_descriptors
self.proteinKNN.setDisabled(True)
AttributeError: 'IFeatureOmegaGui' object has no attribute 'proteinKNN'

i installed everything that is given in the manual.

I look forward from hearing from you soon.

@soulorlong
Copy link

me too

2 similar comments
@Iamzhangzixin
Copy link

me too

@AmamiyaHoshie
Copy link

me too

@DaniloVFreire
Copy link

I am having the same issue

@DaniloVFreire
Copy link

I have found a simple workaround. I don't know why those lines are commented out, but if you uncomment them, the protein feature extraction will work.

Please uncomment lines 634 to 638 in the iFeatureOmegaGUI.py file:

# self.proteinKNN = QTreeWidgetItem(self.Protein)
# self.proteinKNN.setText(0, 'KNN')
# self.proteinKNN.setText(1, 'K-nearest neighbor')
# self.proteinKNN.setCheckState(0, Qt.Unchecked)
# self.proteinKNN.setToolTip(1, 'The KNN descriptor depicts how much one query sample resembles other samples.')

Just remove the # at the beginning of each line, and everything should work fine!

After that, just run python iFeatureOmegaGUI.py with all the required packages installed.

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

5 participants