Skip to content

FIle not found error when updating maxatac_data_path in constants.py #151

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

Closed
Pirhhot opened this issue May 1, 2025 · 1 comment · May be fixed by #152
Closed

FIle not found error when updating maxatac_data_path in constants.py #151

Pirhhot opened this issue May 1, 2025 · 1 comment · May be fixed by #152

Comments

@Pirhhot
Copy link

Pirhhot commented May 1, 2025

Hello everyone and thank you for this very much user friendly tool,

I found an error in the code as I wanted to install the maxatac data somewhere and followed the recommendations to update the default maxatac_data_path in constants.py.

However, the default path for chrom sizes and blacklist did not seem to update.

Error: Can't open genome file 
Error: The requested genome file (<myhome>/opt/maxatac/data/hg38/hg38.chrom.sizes) could not be opened. Exiting!<myhome>/opt/maxatac/data/hg38/hg38.chrom.sizes
. Exiting...
Error: Unable to open file <myhome>/opt/maxatac/data/hg38/hg38_maxatac_blacklist.bed. Exiting

After a bit of searching in the code I found that the error lied in the update_reference_genome_paths function in system.tools.py.

Indeed, the maxatac_data_path is redefined without taking into account the maxatac_data_path in constants.py.

To correct it, I only needed to remove the line and import maxatac_data_path from constants.py.

@ANRudrapatna
Copy link
Collaborator

Thank you for letting us know! We appreciate it!

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

Successfully merging a pull request may close this issue.

2 participants