ValueError: invalid literal for int() with base 10: '1.00995e+06'

64 views
Skip to first unread message

cheungx...@gmail.com

unread,
Nov 1, 2018, 5:24:52 AM11/1/18
to DaPars
Hi Zheng,
I have two files ,one is the input data and the other is IP data,they were trans into bedgragh format by genomeCoverageBed.
Then,I run :
python ./DaPars_main.py configure_file
and the log is:
-------------------------------------------------------
[Thu Nov 1 17:14:23 2018] Start Analysis ...
[Thu Nov 1 17:14:23 2018] Loading coverage ...
Traceback (most recent call last):
File "/DaPars_main.py", line 548, in <module>
De_Novo_3UTR_Identification_Loading_Target_Wig_for_TCGA_Multiple_Samples_Main(sys.argv)
File "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 "src/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.00995e+06'


----------------------------------------
I don't know how to deal with it,Do you know?

Thank you.


ZXT

孙海峰

unread,
Nov 20, 2018, 12:09:41 PM11/20/18
to DaPars
HI ZXT:
 I meet the same problem with u,and i'm so anxious。have you solved it ? any help will be greatful! thanks very much !
Sun Haifeng

在 2018年11月1日星期四 UTC+8下午5:24:52,cheungx...@gmail.com写道:
Message has been deleted

habo...@uci.edu

unread,
Jul 9, 2019, 4:15:11 PM7/9/19
to DaPars
Hello,

I am encountering the same issue. Have you identified the problem?

Thanks!

ZhengXia

unread,
Jul 9, 2019, 7:13:41 PM7/9/19
to cheungx...@gmail.com, haife...@gmail.com, DaPars
Did you try the github version?
https://github.com/ZhengXia/dapars/tree/master/src

The 507 line should look like this:
curr_sample_All_chroms_coverage_dict[chrom_name][1].append(int(float(fields[-1])))

Thanks,
Zheng


Thanks,
Zheng


--
You received this message because you are subscribed to the Google Groups "DaPars" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dapars+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

habo...@uci.edu

unread,
Jul 10, 2019, 3:18:34 PM7/10/19
to DaPars
Thanks for the response,

I had downloaded from github version 0.9.1 which I thought was the newest version (https://github.com/ZhengXia/dapars/releases/download/v0.9.1/dapars_0.9.1.zip) but had to correct that line as well.


I also had the following issue:
File "/data/apps/python/2.7.15/lib/python2.7/site-packages/rpy2/robjects/packages.py", line 214, in __fil$
raise LibraryError(msg)
$thon symbol (format.perc -> format_perc while there is already format_perc)

which was corrected with the following in DaPars_main.py:
##Filtering
stats = importr('stats', robject_translations = {"format.perc": "format_perc2"})

Reply all
Reply to author
Forward
0 new messages