Closed NathanHarmston closed 3 months ago
Hi @NathanHarmston - did you try to set the RNGseed
parameter of the SerialParam
/MulticoreParam
instance set for the BPPARAM
argument? See the Details section of ?calcBinnedMotifEnrR
:
genome : sequences randomly sampled from the genome (or the intervals defined in genome.regions if given) [...] In order to make the sampling deterministic, a seed number needs to be provided to the RNGseed parameter in SerialParam or MulticoreParam when creating the BiocParallelParam instance in BPPARAM.
figured I was being a muppet! Thanks
Hi,
So I am using calcBinnedMotifEnrR to calculate enrichment for a set of regions compared to the genome. However, the results are not reproducible between different runs of the same piece of code.
As an example one time - I get argfx, lin54, zic2 as significant, the next time only argfx appears as significant.
It seems that sampling from genome.regions does not consider the call to set.seed - is there anyway to fix this issue?