Closed huizhen-yan closed 10 months ago
Having this same issue with versions 1.1.4
and 1.1.6
.
Bumping this issue as I am having a similar problem:
DAS Tool 1.1.6
Analyzing assembly
Warning message:
In calc_N50(contigTab[, contig_id], contigTab[, contig_length]) :
integer overflow in 'cumsum'; use 'cumsum(as.numeric(.))'
Predicting genes
Annotating single copy genes using diamond
Dereplicating, aggregating, and scoring bins
Error in `[.data.table`(bin_tab_contig, , .(binSize = calc_bins_size(contig_id, :
Column 1 of result for group 2 is type 'double' but expecting type 'integer'. Column types must be consistent for each group.
Calls: cherry_pick -> score_bins -> %>% -> setkey -> [ -> [.data.table
In addition: Warning message:
In calc_N50(contig_id, contig_length) :
integer overflow in 'cumsum'; use 'cumsum(as.numeric(.))'
Execution halted
@cmks I understand that this time of the year is quite busy, but would it be possible to give some attention to this issue for the next version of DAS Tool? Please let us know if there's any way to help.
Many thanks Vini
Hi all, thanks for reporting this bug. I've just pushed a fix but I can't test it as I'm not able to replicate the issue. Can you please re-run your data using the new version and tell me if it is working? You can either install the pre-release: DAS Tool 1.1.7-b.1 or checkout this branch: issue_99
Thank you @cmks, not sure if this is of any help, but I seem to only get this issue with fairly large datasets. It hasn't happened with smaller datasets.
Hi @cmks, coming in to report that the fix seems to have worked. We are no longer getting that error and DAS Tool finished successfully. Thank you for your responsiveness!
BTW, our only struggle was installing from source. We eventually figured it out, but it took some time to find and replace the DAS_Tool.R file in the R library directory (we had a conda-based installation).
Best, Vini
Hi, I ran DAS_Tool and got the following error. `time DAS_Tool -i z1.Contig2bin.tsv,p1.Contig2bin.tsv,p2.Contig2bin.tsv -l z1,p1,p2 -c contigs.fa -t 56 --write_bins -o all_bins_dastool DAS Tool 1.1.6
Analyzing assembly Predicting genes Annotating single copy genes using diamond Dereplicating, aggregating, and scoring bins Error in
[.data.table
(bin_tab_contig, , .(binSize = calc_bins_size(contig_id, : Column 1 of result for group 3421 is type 'double' but expecting type 'integer'. Column types must be consistent for each group. Calls: cherry_pick -> score_bins -> %>% -> setkey -> [ -> [.data.table In addition: Warning message: In calc_N50(contig_id, contig_length) : integer overflow in 'cumsum'; use 'cumsum(as.numeric(.))' Execution haltedreal 158m57.298s user 5466m32.675s sys 10m37.638s $`
Here are the input files.
How to fix it?