RaisD and the sfs_code2ms converter

90 views
Skip to first unread message

demetris taliadoros

unread,
Mar 19, 2021, 8:26:40 AM3/19/21
to OmegaPlus
Hi Niko, Pavlo, and community,

I am trying to assess the false positive rate for my dataset using SFS_CODE to simulate data with background selection, under the best demographic model that I have previously inferred.

I have used the tool "convertSFS_CODE" to convert the SFS_CODE output to ms format.
The problem is that when I am trying to run RaisD on the converted ms-format file I get the following error message:

RAiSD: sources/RAiSD.c:256: main: Assertion `(uint64_t)RSDDataset->setSNPs==RSDDataset->preLoadedsetSNPs' failed.
Aborted (core dumped)

I suspect that there is something wrong with the file. however, I couldn't identify the difference by comparing  it with files produced by ms. Maybe you have an idea about what might be causing this problem.

Best regards
Demetris

Nikolaos Alachiotis

unread,
Mar 19, 2021, 10:30:29 AM3/19/21
to OmegaPlus
Hello Demetris,
Can you please send me the input file that is causing this error?
Which version are you using?
Best regards,
Nikos A.
> --
> You received this message because you are subscribed to the Google Groups "OmegaPlus" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to omegaplus+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/omegaplus/70bf8aa4-9d93-4bed-b6a1-32e237770176n%40googlegroups.com.



--
Nikolaos Alachiotis

demetris taliadoros

unread,
Mar 19, 2021, 12:48:34 PM3/19/21
to OmegaPlus
Hi Nikos,

Thank you for helping.
I am using RaisD v. 2.8.
I was not subscribed to the group and it would not let me upload my file. Please find a test simulated dataset in this dropbox link: https://www.dropbox.com/sh/csddbawnbx87k3g/AAA1J3trt2TcEs7yAdYuzWKZa?dl=0
However, I think that after this message this issue will be resolved and I will be able to upload the file here as well.

Best regards
Demetris

demetris taliadoros

unread,
Mar 19, 2021, 12:52:48 PM3/19/21
to omeg...@googlegroups.com
Hi again! Now I am able to upload the test file here as well so maybe it is just more convenient to have it here.

Best regards
Demetris

You received this message because you are subscribed to a topic in the Google Groups "OmegaPlus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omegaplus/ywUukpjijrU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omegaplus+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omegaplus/a094a276-9fa8-42ca-9f91-2b9c11a044e9n%40googlegroups.com.
test_sfs_code_ms.out

Nikolaos Alachiotis

unread,
Mar 22, 2021, 7:41:26 AM3/22/21
to OmegaPlus
Hello Demetris,
It seems that there are monomorphic columns in your file, and this is
what is causing the assertion to fail.
RAiSD discards such sites in VCF and FASTA files but not in ms (I can
also implement this in the next version, but it is not going to be
very soon). Is it possible to generate your file without including
monomorphic files?
Best regards,
Nikos A.

On Fri, Mar 19, 2021 at 5:52 PM demetris taliadoros
> To view this discussion on the web visit https://groups.google.com/d/msgid/omegaplus/CALSjJV%3DREjQuihcW3MMffNOqc81kiPswmnyTTiqyx7shMBOu9A%40mail.gmail.com.



--
Nikolaos Alachiotis

demetris taliadoros

unread,
Mar 22, 2021, 11:54:38 AM3/22/21
to OmegaPlus
Hello Nikos,

Thanks again. A quick solution I found now is to convert the SFS_CODE output to fasta format instead of ms. This can be easily done with the same "convertSFS_CODE" tool, provided with the sfs_code software!

Have a great week.
Best regards
Demetris

Mariia Selifanova

unread,
May 7, 2022, 10:34:28 PM5/7/22
to OmegaPlus

Hello! 

I am getting the same error ( "RAiSD: sources/RAiSD.c:256: main: Assertion `(uint64_t)RSDDataset->setSNPs==RSDDataset->preLoadedsetSNPs' failed.") while trying to asses FPR with my data. My simulations were generated using Slim3 and I don't have monomorphic columns in my file (https://drive.google.com/file/d/1-fkTPCYBcnnou8-ws7Nx27Oseydq5el1/view?usp=sharing).  What could be the problem? Thank you! 

Best regards, 

Masha



понедельник, 22 марта 2021 г. в 19:54:38 UTC+4, demetris....@gmail.com:

Nikolaos Alachiotis

unread,
May 9, 2022, 8:54:35 AM5/9/22
to omeg...@googlegroups.com
Hello Masha,
I checked your file and there are monomorphic columns. RAiSD assumes
that ms files do not contain monomorphic columns. You can remove this
check by removing lines 255 and 256 in RAiSD.c file and then
recompile.
Best regards,
Nikos A.
> To view this discussion on the web visit https://groups.google.com/d/msgid/omegaplus/aa9be487-f350-48e2-80ce-ad7b9951aedcn%40googlegroups.com.



--
Nikolaos Alachiotis
Reply all
Reply to author
Forward
0 new messages