Closed bguo068 closed 2 months ago
Just found it's under sim
(sim.treeSeqSimplify()
). Closing it now.
Yes, "functions" are called independently (like, say, sum()
), whereas "methods" are called on an object of a particular class (like sim.treeSeqSimplify()
). If you look in the doc you can find out whether something is a function or a method, what type of object a method needs to be called on, etc.
I apologize for not reading it carefully. Thank you for the explanation. Happy 4th of July!
Hi @bhaller,
I am working on sampling some ancestors from 2000 generations before the last generation during a forward simulation in SLiM. According to the SLiM Manual (v4.2.2) and SLiMgui Help, one can disable SLiM's auto-simplification by setting
simplificationRatio=INF
in theinitializeTreeSeq()
function and then manually calling thetreeSeqSimplify()
method. However, it seems that SLiM does not recognize thetreeSeqSimplify
function. Below is my SLiM script:It generates error message below:
Any suggestions?