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

Stats not saved in output file #178

Open
trinidadmartin opened this issue Feb 28, 2023 · 3 comments
Open

Stats not saved in output file #178

trinidadmartin opened this issue Feb 28, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@trinidadmartin
Copy link

Hello!
I am having some issues saving the stats generated after a search.

To Reproduce:
In Nextflow process

pysradb search -q ${sra_query} -s -g --saveto ${sra_query_out_file}.sra

In my output file I get the results of the search, the plots are perfectly generated but the stats are nowhere
Am I doing something wrong?

Desktop (please complete the following information):
OS: macOS Big Sur Version 11.1
python: Python 3.9.1

Thanks a lot for the help!!
Trini

@trinidadmartin trinidadmartin added the bug Something isn't working label Feb 28, 2023
@saketkc
Copy link
Owner

saketkc commented Feb 28, 2023

The stats are not outputted, but you can use the API to access them as in this notebook: https://colab.research.google.com/drive/1EIXwL31aqnIjfSZXKbm3SdE7K1ULQQ54?usp=sharing

@saketkc saketkc added enhancement New feature or request and removed bug Something isn't working labels Feb 28, 2023
@saketkc saketkc changed the title [BUG] Stats not saved in output file Stats not saved in output file Feb 28, 2023
@trinidadmartin
Copy link
Author

Thanks for replying so fast!
I checked the notebook and yes, it is possible within a python script but, would it be possible to do the same via command line, I mean, to separate pysradb search -q "query" , save the results to a file and then launch the -s option without doing the search again to save the stats in a different file?

Thanks a lot again??

@saketkc
Copy link
Owner

saketkc commented Feb 28, 2023

It is possible, but I currently do not have the bandwidth to do it. I think working through the API would be the best approach for now.

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

No branches or pull requests

2 participants