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

Fix problem wit e+06 notation in wig files created by bedtools #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klugem
Copy link

@klugem klugem commented Oct 22, 2015

Fixed Problem with e+06 notation of bedtools in wig files. Fix was already added in line 500 but not in 507!

Without these line I get an error:

[Thu Oct 22 11:07:33 2015] Start Analysis ...
[Thu Oct 22 11:07:33 2015] Loading coverage ...
Traceback (most recent call last):
File "/home/proj/software/DaPars/DaPars_0.9.1/DaPars_main.py", line 548, in
De_Novo_3UTR_Identification_Loading_Target_Wig_for_TCGA_Multiple_Samples_Main(sys.argv)
File "/home/proj/software/DaPars/DaPars_0.9.1/DaPars_main.py", line 154, in De_Novo_3UTR_Identification_Loading_Target_Wig_for_TCGA_Multiple_Samples_Main
All_samples_Target_3UTR_coverages, All_samples_sequencing_depths, UTR_events_dict = Load_Target_Wig_files(All_Sample_files, Annotated_3UTR_file)
File "/home/proj/software/DaPars/DaPars_0.9.1/DaPars_main.py", line 507, in Load_Target_Wig_files
curr_sample_All_chroms_coverage_dict[chrom_name][1].append(int(fields[-1]))
ValueError: invalid literal for int() with base 10: '1.20705e+06'

Fixed Problem with e+06 notation of bedtools in wig files. Fix was already added in line 500 but not in 507!
@klugem klugem changed the title Update DaPars_main.py Fix problem wit e+06 notation in wig files created by bedtools Oct 22, 2015
Copy link

@faricazjj faricazjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This solution fixes the same error seen in my project

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 this pull request may close these issues.

2 participants