Fix problem wit e+06 notation in wig files created by bedtools #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'