iFeatureOmega-GUI icon indicating copy to clipboard operation
iFeatureOmega-GUI copied to clipboard

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

Open Sathya1007 opened this issue 2 years ago • 5 comments

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.

Sathya1007 avatar Jul 28 '23 05:07 Sathya1007

me too

soulorlong avatar Sep 18 '23 13:09 soulorlong

me too

Iamzhangzixin avatar Aug 16 '24 08:08 Iamzhangzixin

me too

AmamiyaHoshie avatar Oct 12 '24 01:10 AmamiyaHoshie

I am having the same issue

DaniloVFreire avatar Oct 19 '24 21:10 DaniloVFreire

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.

DaniloVFreire avatar Oct 27 '24 16:10 DaniloVFreire