Skip to content
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

Memory request? #7

Open
XinWang19 opened this issue Oct 9, 2020 · 4 comments
Open

Memory request? #7

XinWang19 opened this issue Oct 9, 2020 · 4 comments

Comments

@XinWang19
Copy link

Hi,
A really nice work! I have tried your software on our cluster with 64 GB available memory. But the program interrupted with this error:
########
Traceback (most recent call last):
File "simulate.py", line 7, in
sim.build_graph("input_file_taregts.csv", "input_file_regs.csv")
File "/lustre1/cxu_pkuhpc/wx/test/sergio/sergio.py", line 233, in build_graph
self.find_levels_(self.graph_) # make sure that this modifies the graph
File "/lustre1/cxu_pkuhpc/wx/test/sergio/sergio.py", line 281, in find_levels_
self.level2verts_[currLayer] = []
MemoryError
pkurun: error: c13b02n03: task 0: Exited with exit code 1
########
The parameters I set were:
########
number_genes=210, number_bins=13, number_sc=50, noise_params=0.2,
noise_type="dpd", decays=0, dynamics=False
########
Could you give me some suggestions about the memory requests under certain parameters?

@PayamDiba
Copy link
Owner

It's really weird that this setting of parameters results in memory error. I can imagine simulating 13 bins with ~1000 single-cell for each bin could results in memory error (that can be resolved easily for example by repeating simulation 10 times for 100 cell), but this setting should not give memory error. Can you try it on a PC with python 3 and let me know if you get error again? You don't need to compete the simulation on the PC, just check if simulations start, and please let me know.

@XinWang19
Copy link
Author

Hi,
I tried on PC with python3. There was still something wrong.
###################
sim = sergio(number_genes=210, number_bins=13, number_sc=50, noise_params=0.2,noise_type="dpd", decays=0, dynamics=False)
sim.build_graph("input_file_taregts.csv", "input_file_regs.csv")
Traceback (most recent call last):
File "C:\Users\dell\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
sim.build_graph("input_file_taregts.csv", "input_file_regs.csv")
File "D:\project201019\sergio.py", line 233, in build_graph
self.find_levels_(self.graph_) # make sure that this modifies the graph
File "D:\project201019\sergio.py", line 281, in find_levels_
self.level2verts_[currLayer] = []
MemoryError

@PayamDiba
Copy link
Owner

Do you mind sharing with me the input files you are using?

@XinWang19
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants