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

ValueError: invalid literal for int() with base 10: '6,6' #1

Closed
evayfang2019 opened this issue Aug 18, 2023 · 5 comments
Closed

ValueError: invalid literal for int() with base 10: '6,6' #1

evayfang2019 opened this issue Aug 18, 2023 · 5 comments

Comments

@evayfang2019
Copy link

Hi, farhangus
when i ran:
python3 sniffles2_plots.py -i ./tmp_samples/sample_merged.vcf -o ./test
then reported:
./tmp_samples/sample_merged
Traceback (most recent call last):
File "xxx/sniffle2_plot/vcf_visulaizer.py", line 31, in
main()
File "xxx/sniffle2_plot/vcf_visulaizer.py", line 26, in main
multi_visulaizer(input_vcf_file, output_path)
File "xxx/sniffle2_plot/src/multi_vcf_visualizer.py", line 19, in multi_visulaizer
SV_site.sv_sites_per_genome()
File "xxx/sniffle2_plot/src/sv_sites_per_genome.py", line 36, in sv_sites_per_genome
obj = VCFLineSVPopulation(line)
File "xxx/sniffle2_plot/src/vcf_line_parser.py", line 213, in init
self.get_genotype(FORMAT, sample_header_names)
File "xxx/sniffle2_plot/src/vcf_line_parser.py", line 267, in get_genotype
sample_gt.set_dr(gt_value)
File "xxx/sniffle2_plot/src/vcf_line_parser.py", line 148, in set_dr
self.dr = int(this_dr)
ValueError: invalid literal for int() with base 10: '6,6'

Sniffle2_plot might not be suitable for handling my VCF file at the moment, although it was also generated via sniffles.

@farhangus
Copy link
Owner

farhangus commented Aug 18, 2023 via email

@evayfang2019
Copy link
Author

Hi, farhangus
Thanks for your reply. Please check the vcf file.
Best regards
evayfang2019.zip

@farhangus
Copy link
Owner

farhangus commented Aug 20, 2023 via email

@evayfang2019
Copy link
Author

Dear Farhang,
I've rerun the program and it's running smoothly.
Thank you and your outstanding works.
Best regards,
Evay

@farhangus
Copy link
Owner

farhangus commented Aug 22, 2023 via email

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