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

generate_report_from_template writes to path where package is installed #13

Open
agitter opened this issue Nov 29, 2023 · 0 comments
Open

Comments

@agitter
Copy link

agitter commented Nov 29, 2023

If I'm reading the source code correctly, generate_report_from_template calls format_script and writes to a file path relative to where DOMINO is installed:

report_file_name=format_script(os.path.join(os.path.dirname(os.path.abspath(__file__)),'../data', "graph.html"), NUM_OF_GENES=len([x for x in cy if not "source" in x["data"] and len(x["data"]["modules"])>0]), HG_REPORT=[], MODULES_SUMMARY=[], DISEASE_GENES=[], DATA=json.dumps(cy))

I'm attempting to run DOMINO inside a Singularity container where I don't have write permission to create files at that location. The package was installed by root when the image was created, and now I am running as my user.

Making the file paths configurable or using Python's temporary directories would avoid this problem.

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

1 participant