rdinnager / slimr

Run and Analyse SLiM Population Genetics Forward Simulations from R.
https://rdinnager.github.io/slimr
Other
7 stars 1 forks source link

slim_extract_genlight issues #61

Closed PetaLHill closed 1 year ago

PetaLHill commented 2 years ago

Hi Russell, when extracting data into a genlight object there are some slots in the @other that functions in the dartr package don't like. Bernd wrote a workaround for me so we can use various dartr functions to analyse our genlight objects: ot <- as.data.frame(gl@other) gl@other<-list() gl <- gl.compliance.check(gl,verbose = 0) gl@other$loc.metrics$mut_type <- ot$mut_type gl@other$loc.metrics$prevalence <- ot$prevalence

I wonder if this could be added into the slim_extract_genlight function? ps Bernd says "Hi" :-)

rdinnager commented 1 year ago

I think a bug fix for another issue ended up fixing this issue. If it crops up again, please reopen this issue.