-
Notifications
You must be signed in to change notification settings - Fork 9
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
ValueError: Error when checking input: expected input_1 to have 4 dimensions, but got array with shape (0, 1) #17
Comments
G'day Stefan. The issue here seems to be the array fed to the classifier isn't being populated. Was there any other output? did it process any files and just fail part way through? there should be some messages letting the user know that reads are being segmented, and then they go through classification. Let me know any more info you can give me. Trying to figure out if it's struggling to read the fast5 files from that very long, non-linux friendly path, or if it's something else. Cheers, |
Hey, There was no other output in the terminal, and also the output.tsv file was empty (a table has been created though with no entries).. Cheers, |
Ahh, okay. Are the fast5 files using vbz compression (not compatible yet, though there is a pull request that adds it)? does the same error occur when using
|
So the same error occurs when using the Yes to the vbz! I just recently upgraded my MinKNOW GUI to 4.3.20, with MinKNOW version 21.06.0 and in the release not it is stated that "VBZ and Gzip new compression defaults". Thank you! |
ooh, yea, that's the issues. I have not had a chance to test the pull request just yet, but if you have the skill to merge and run that pull request, it should work. Leszek knows what he's doing, so I'm betting it will work fine. Let me know how it goes, or if you need me to give an ETA on the pull request review (working on something else at the moment that is almost done). |
Thank you for hinting me towards the problem, I would definitely like to try the work of Leszek. |
Okay, i've reviewed the merge and tested it, and now accepted and merged it. If you do a Let me know how it goes :) |
Hey, thank you for this software. I have just install it, but I got the same error when running this command:
The output is: Using TensorFlow backend. The output file output.tsv contains only a header: fast5 ReadID Barcode Confidence Interval P_bc_1 P_bc_2 P_bc_3 P_bc_4 Is there a solution to this issue? |
Hello, was solution for this error found? i'm currently dealing with the exact issue. |
Hello, I'll see if I can solve this particular issue. It looks like the data isn't getting through the model.predict call as x isn't the correct shape. I'll have a look at it this week and see what I can do. James |
Minor update, this has spurred Martin and I to get a student to update Deeplexicon as a project. I'll still look at this issue though. |
Thanks for picking that up. We are considering doing a new release for RNA004, in which case I'll re-write this whole thing to be more stable (and waaaaay faster). Just trying to see what ONT is doing to see if it's worth it or not. |
Hi @N-damo and @rpeiro, can you please try running Deeplexicon through the masterOfPores nextflow workflow and see if the error persists? Please note that DeePlexiCon works only with CUDA version 10, if using GPU mode (see DeePlexiCon dependencies here ). Thanks! |
Hey,
thank you for developing this tool, very excited to use it.
I wanted to run the following script on my fast5_pass files:
(Deeplexicon) beckmannlab-arch% python3 deeplexicon.py -p ~/"run/user/1005/gvfs/afp-volume:host=XXX.XX.XX.XX,user=stefan,volume=beckmannlab/stefan/Data (not complete)/read files DeePlexiCon/DeePlexiCon test 1/fast5_pass/fast5_pass" -f multi -m /home/beckmannlab/deeplexicon/models/resnet20-final.h5 > output.tsv
When running this script, I get the following:
I installed all packages in the versions given in the "Additional Information" section and am using Linux. I also tried it on a Mac using conda, but also could not get the script running (here with different Errors).
Hope I was able to state my problem and hope one can help me!
Bests,
stefan.
The text was updated successfully, but these errors were encountered: