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

Variable name breaks vcf2fasta #16

Closed
antunderwood opened this issue Jun 18, 2016 · 1 comment
Closed

Variable name breaks vcf2fasta #16

antunderwood opened this issue Jun 18, 2016 · 1 comment

Comments

@antunderwood
Copy link
Contributor

When I run vcf2fasta.py I get the following error

Traceback (most recent call last):
File "/home/anthony.underwood/galaxy/tool_dependencies/phephenix/1.0/ulfschaefer/package_phephenix_1_0/214560c61f1d/scripts/phenix.py", line 96, in
exit(main())
File "/home/anthony.underwood/galaxy/tool_dependencies/phephenix/1.0/ulfschaefer/package_phephenix_1_0/214560c61f1d/scripts/phenix.py", line 91, in main
return vcf2fasta.main(args)
File "/home/anthony.underwood/galaxy/tool_dependencies/phephenix/1.0/ulfschaefer/package_phephenix_1_0/214560c61f1d/scripts/vcf2fasta.py", line 471, in main
if sample == "reference":
UnboundLocalError: local variable 'sample' referenced before assignment

I think the variable name in line 471 should be sample_name not sample.

https://github.com/phe-bioinformatics/PHEnix/blob/master/scripts/vcf2fasta.py#L471

@alexjironkin
Copy link

Fixed

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

2 participants