Profiling pyani
performance (version 3)
#285
Replies: 3 comments 5 replies
-
What specifically isn't working for you? Can you share any code/a script so I know where to start? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if #288 does; it doesn't seem related, on its face. I think part of the problem is that I was trying to run cProfile on the code from the command line (I'm not used to running either python -m cProfile -o cprofile.log pyani fastani -i ../fastANI/data/ -o fastani.out -l fastani.log IsADirectoryError: [Errno 21] Is a directory: 'pyani' python -m cProfile -o cprofile.log -m pyani fastani -i ../fastANI/data/ -o fastani.out -l fastani.log ImportError: No module named pyani.__main__; 'pyani' is a package and cannot be directly executed python -m cProfile pyani/scripts/subcommands/subcmd_fastani.py -i ../fastANI/data/ -o fastani.out -l fastani.log this produced profiling output, but I don't think it actually ran the comparisons because the database was empty. |
Beta Was this translation helpful? Give feedback.
-
I am also interested in figuring out a way to plot resources used running each method over time. They seem to oscillate between using all of the ones available on my laptop, and using very little. Might help identify bottlenecks, or some other way to make it more efficient. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to get
cProfile
working withpyani
v3? I have tried a few different things, but eithercProfile
seems to work — but the database doesn't get population — orcProfile
doesn't work, throwing one of a handful of errors, depending on how it's been called.I think part of it may be the subcommand structure used by the development version?
Beta Was this translation helpful? Give feedback.
All reactions