Hi Diego,
I would recommend that you look at our latest protocol paper, Rivera-Colon et al., which recapitulates the procedure in Paris, et al. and gives some more detail (and commands) to get the r80 values from the Stacks output files, in section 2.5.1.
In short, you are proposing to test too many parameters, for example, newer work has shown that -m can be fixed at 3 and -M and -n normally should be set to the same value (see Rivera-Colon for the details).
Best,
julian


Hi Diego,
It is a judgement call when to stop searching the parameter space. Sometimes, particular data sets will never converge/go negative. Regardless, you know from your plots that at or over M=9 you start to see diminishing returns, so you are likely capturing nearly all of the loci at that setting. I would be comfortable setting M to any of those latter values.
Best,
julian
From:
stacks...@googlegroups.com <stacks...@googlegroups.com> on behalf of Diego Caraballo <except.for.me...@gmail.com>
Date: Tuesday, September 12, 2023 at 8:10 AM
To: Stacks <stacks...@googlegroups.com>
Subject: Re: [stacks] Lost in parameter space
Thanks for your reply, Julian. That protocol paper is a real gem!!
I followed the R80 test from M1 to M12 obtaining this result:

I am very close to zero in the change of R80 loci. My original dataset contains ca 5-6 individuals per population, from 7 related grasshopper species (same genus), and an outgroup. The subset with which I ran the R80 test has 20 individuals, from all different species and populations, including the outgroup, with retained reads values close to the mean of the original dataset.
