You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you so much for creating such an awesome tool! I am quite new to coding especially in python and encountered several errors when running the NSForest function. I am not sure if these problems were specific to my object but I thought I would post them here in case someone else has the same issues. I have tried to fix some of the errors and have gotten the function to finish but I'm not 100% sure if the output is correct.
#---------------------------------------------------------------------------------------------------------------------------------------
The first error was in line 167 of the source code:
"AttributeError: Can only use .cat accessor with a 'category' dtype"
I changed this:
#----------------------------------------------------------------------------------------------------------------------------------------------
The second error was in line 172:
"ValueError: Shape of passed values is (49211, 1), indices imply (49211, 31002)" which I think is because the input to create the pandas data frame was in the wrong format.
#------------------------------------------------------------------------------------------------------------------------------------------------
A similar problem in line 121 of the source code:
When running:
Another error was in line 94 of the source code:
"IndexError: Index dimension must be <= 2"
X = x_train[:, None]
I don't think this code is actually necessary so I commented it out which seemed to fix the problem.
#----------------------------------------------------------------------------------------------------------------------------------------------
Then I also got several errors in the last section and I couldn't quite figure out what the problems were but I changed the code from this:
the clusters are already grouped together and all the gene names are already unique??
Couldn't get around the last problem so ended up just commenting out those lines of code and now I am not sure if my output files are what they should be. Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Hi there, I was just trying to test NS-Forest 3.0 on a Seurat dataset I have. Sadly, I got at least 2 of the very same errors, and applied your fixes. They worked ok... so, thanks for posting! But afterwards I got another different error (key 'cells' not found). I'm not so patience as to fix it... Anyway, I just wanted to comment on this... for the record.
Hi there,
Thank you so much for creating such an awesome tool! I am quite new to coding especially in python and encountered several errors when running the NSForest function. I am not sure if these problems were specific to my object but I thought I would post them here in case someone else has the same issues. I have tried to fix some of the errors and have gotten the function to finish but I'm not 100% sure if the output is correct.
#---------------------------------------------------------------------------------------------------------------------------------------
The first error was in line 167 of the source code:
"AttributeError: Can only use .cat accessor with a 'category' dtype"
I changed this:
to this:
which seemed to work
#----------------------------------------------------------------------------------------------------------------------------------------------
The second error was in line 172:
"ValueError: Shape of passed values is (49211, 1), indices imply (49211, 31002)" which I think is because the input to create the pandas data frame was in the wrong format.
When I changed this:
to this:
it seemed to work.
#------------------------------------------------------------------------------------------------------------------------------------------------
A similar problem in line 121 of the source code:
When running:
I get this error "ValueError: Shape of passed values is (113957, 1), indices imply (113957, 0)"
But I changed this:
to this:
and it seemed to work.
#-------------------------------------------------------------------------------------------------------------------------------------
Another error was in line 94 of the source code:
"IndexError: Index dimension must be <= 2"
I don't think this code is actually necessary so I commented it out which seemed to fix the problem.
#----------------------------------------------------------------------------------------------------------------------------------------------
Then I also got several errors in the last section and I couldn't quite figure out what the problems were but I changed the code from this:
to this:
It seems that in this line of code:
the column name in the Binary_score_store dataframe was incorrect
And in this line of code:
the clusters are already grouped together and all the gene names are already unique??
Couldn't get around the last problem so ended up just commenting out those lines of code and now I am not sure if my output files are what they should be. Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered: