-
Notifications
You must be signed in to change notification settings - Fork 57
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
Stuck at the simulation step #210
Comments
I think your simulation is stuck in an infinite loop here: Can you add the |
@HLHsieh , please checkout the changes in my branch: |
Hi @kmnip, Thank you for your suggestions. First, I tried to add
When the Secondly, I applied the latest script which was changed two days ago. Here is the log:
But, it was still stuck until the time limit. Best, |
Thank you @HLHsieh for your interest in using NanoSim and reporting this issue and thank you @kmnip for your solution. I am currently away from work with limited access to internet. I will look into it deeper once I return in about 2 weeks. For now, what I can say is that the root of the problem (based on your log file provided) comes down to the following line of the code:
Where it tries to create an array with X (X here is the number of sequences you are trying to simulate, say 27,737 as in your first post) log-normally distributed samples based on a median of 10,000 and a standard deviation of 2 (based on your first post). From what I see, the problem does not look like an infinite loop, it is rather related to the NumPy function and I suspect that it might be an environment and version issue. It could be that there is a memory limitation or a bug in the version of NumPy you are using. Ensure that you are using a recent version of NumPy and that your environment has sufficient memory available. (You can update NumPy using pip install NumPy --upgrade.) It could also be a memory problem since creating a huge NumPy array might break your code. Make sure your system isn’t running out of memory when this operation is performed. To further look into it, if you are comfortable with Python coding, write a print function just before line 1239 to check the values for Now, there is obviously room for improvement on the code to avoid such problems and I might look into this once I have free time as I mentioned earlier. Since the log file you created does not contain Warning messages Ka Ming incorporated in the patch mode, I suspect again that it is not a infinite loop problem (At least by looking into the log file you just provided). Thanks and I will keep you updated. |
Hi @SaberHQ , Thank you for taking the time to look into my issue. Additionally, I found something strange. I executed the previous
After executing for 6 hours, there were no changes to these files, and I found it can not generate the 650001th reads.
Many thanks, |
Hi there,
Thank you for developing this handy tool; I've been using it for a long time. Recently, I wanted to perform a more challenging test on my tool by adjusting the read length of the simulated reads as follows:
However, it took about five days and still failed. I noticed that it got stuck at the simulation step. I then tried the following command, which completed the entire process in just 10 minutes:
I am seeking your suggestions for optimizing my workflow. Additionally, is there any parameter or recommendation for controlling the mean read length instead of the median?
PS. My version is 3.1.0.
Best regards,
Hsin
The text was updated successfully, but these errors were encountered: