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

fingerprint.py: UnboundLocalError: local variable 'prefix' referenced before assignment #36

Open
your-highness opened this issue Feb 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@your-highness
Copy link

UnboundLocalError is raised because prefix unset when --genome-release is specified

if genome_release:
logger.info("Using genome release from command line: %s", genome_release)
else:
if samfile_chrom_lens == CHROM_LENS_GRCH37:
genome_release = "GRCh37"
prefix = ""
elif samfile_chrom_lens == CHROM_LENS_HG19:
genome_release = "GRCh37"
prefix = "chr"
elif samfile_chrom_lens == CHROM_LENS_GRCH38:
genome_release = "GRCh38"
prefix = "chr"
else:
raise Exception("")
logger.info("Guessing genome release to be %s", genome_release)

@xiamaz xiamaz added the bug Something isn't working label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants