-
Notifications
You must be signed in to change notification settings - Fork 59
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
'dict_ref_structure' is not defined #63
Comments
Hi @StanislasF Thanks for bringing this up. I will update the script for seq_len.keys() thing as you mentioned so that it is compatible in Python 3.7. As for your second question, as you said, that dictionary is very well defined before. Would you mind to write down the exact code you are running with all input variables you use? Thanks. |
Yes, sure. I'm running with python 3.7.3, HTSeq 0.11.2, nump 1.16.4, pybedtools 0.8.0, pysam 0.15.2, scipy 1.3.0, scikit-learn 0.21.2, genometools 1.2.1 (you did'nt mentionned genometools in your requirement file but it was needed for me). All my reference come from Ensembl database. I ran step by step
All the output are okay except for the simulation, it give me only unaligned reads. It break after 'start simulation of random reads' and give me the 'dict_keys' error |
Dear @StanislasF Thanks for providing more info. Actually, it seems like an input requirement bug and I fixed it now. The reference genome and the annotation file are not necessary unless you are willing to model Intron retention events as well. There was a bug in which that dictionary you just mentioned did not create when using --no_model_ir option. It is now fixed. I also improved the speed a lot and added a new option as well. So please check the new pre-release here: https://github.com/bcgsc/NanoSim/releases/tag/v2.4-beta Let me know if I can provide more help. Please feel free to contact me if you have any questions. |
Dear @SaberHQ You did a great job with your new pre-release. I tried with and without the --no_model_ir option and find only one little issue : for your --uracile option in simulator.py you use Thank you for your help ! |
Hi,
I'm using human transcriptome ONT data and want to simulate reads. I first had the error message 'DivisionByZero' so I'm actually running with the 2.3-beta version of NanoSim. I reached the simulation stage and I ran into this error :
I identify the problem : with Python 3.7, seq_len.keys() is an object and not a list. We can easily fix the problem by changing
key = random.choice(seq_len.keys())
into
key = random.choice(list(seq_len.keys()))
And now I get this error :
And I don't understand why. 'dict_ref_structure' is well defined before, in global and line 321.
Can you help me ?
The text was updated successfully, but these errors were encountered: