Skip to content

Error message: wrong number of summary statistics in statobs file. #156

Open

Description

@rachelghester

Hello,

I was wondering if anyone has run into this issue when running DIYABC-RF? I am running the GUI as a shiny app on Mac (R4.2.1 and have also tried newer versions). The training set simulation has worked and all output files have been created. However, when I try to run the RF analysis, I get the below error message:

read reftable done.
wrong number of summary statistics in statobs file.

I have checked the statobs file and checked it in Excel to ensure it contains the correct number of summary stats (130), which it does. Has anyone had this issue before with statobsRF.txt? Thanks in advance!

Activity

  1. beeul25 commented on Apr 16, 2024

    @beeul25

    It seems I solve that problem.

    I checked 'abcranger' can only handle numbers with 8 decimal places.
    So, when all numbers in statobsRF.txt are converted to 8 decimal places, you can run Random Forest analysis with no error.

    good luck.

  2. GiulianoColosimo commented on Jun 18, 2024

    @GiulianoColosimo

    Had the same "wrong number of summary statistics in statobs" issue . Manually removed some decimal place as per @beeul25 from my summary statistics and that issue was overridden.

    Now I do get a segmentation fault, but that's another story :-(

  3. gdurif commented on Aug 30, 2024

    @gdurif
    Collaborator

    Hi, I am really sorry for the very late reply.

    Due to work overload, the development, support and maintenance for the project diyabcGUI is currently paused. Feel free to contact us (by submitting an issue) if you want to take over the development for this project. Pull request are also welcome to fix bug or implement missing functionalities.

    I have updated the README file to announce this. This is the official announcement to clarify a situation that has been going on for quite some time.

    You can still use the command line version of the software which is still maintained/supported. Check the documentation page here.

    All my apologies for the trouble,
    Best regards

  4. weeds23 commented on Mar 31, 2025

    @weeds23

    For anyone else experiencing this error, editing the number of decimal places in the statobsRF.txt file did not work for me. But it appears this issue has been fixed in the newest command line version of abcranger. So just install the latest abcranger (v1.16.69) and use your data, headerRF.txt, statobsRF.txt and reftableRF.bin files from the GUI version as inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions