Hi Alan,
The issue you're encountering is due to some missing values in the slot where rdepth values are stored. We're working on a more general fix, but in the meantime, you can resolve it by assigning a value to the missing entries—here’s a quick workaround:
library(dartRverse)Also, just a quick note about gl.join: it's mainly intended for joining very large datasets, like the kind DArT often delivers in two separate files. If you're trying to join datasets from different orders, there could be issues—like each dataset having a different reference allele—that might bias your analyses. In those cases, we recommend asking DArT to co-analyse the orders (i.e., re-call genotypes from both orders together).
Cheers,
Luis
Hi Alan,
It is possible to “recall” also yourself if that is the only issue, but as luis wrote better to ask dart if possible as they can then also standardise the other loc metrics which are not necessarily to be recalculated. E.g. reproducibility
From: da...@googlegroups.com <da...@googlegroups.com>
On Behalf Of Alan Couch
Sent: Tuesday, 13 May 2025 9:22 AM
To: dartR <da...@googlegroups.com>
Subject: Re: [dartR] gl.report.parent.offspring
Super helpful. Thanks so much. Special thanks for the tip where I might be joining with some risk! I will discuss with Andrzej.
On Tuesday, 13 May 2025 at 09:04:37 UTC+10 luis.m...@gmail.com wrote:
Hi Alan,
The issue you're encountering is due to some missing values in the slot where rdepth values are stored. We're working on a more general fix, but in the meantime, you can resolve it by assigning a value to the missing entries—here’s a quick workaround:
library(dartRverse)
t1 <- readRDS("gl.rds")
# Identify NAs
na_loc <- which(is.na(t1$other$loc.metrics$rdepth))
# Replace NAs with the mean rdepth
t1$other$loc.metrics$rdepth[na_loc] <- mean(t1$other$loc.metrics$rdepth, na.rm = TRUE)
r1 <- gl.report.parent.offspring(t1)
Also, just a quick note about gl.join: it's mainly intended for joining very large datasets, like the kind DArT often delivers in two separate files. If you're trying to join datasets from different orders, there could be issues—like each dataset having a different reference allele—that might bias your analyses. In those cases, we recommend asking DArT to co-analyse the orders (i.e., re-call genotypes from both orders together).
Cheers,
Luis
> To view this discussion visit https://groups.google.com/d/msgid/
> dartr/970eb0af-3759-4536-a172-3d20a2da0e0en%40googlegroups.com <https://
> groups.google.com/d/msgid/dartr/970eb0af-3759-4536-
> a172-3d20a2da0e0en%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dartr+un...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/dartr/18532fc4-ad0d-4bc3-acff-85676b27a88an%40googlegroups.com.