@@ -971,7 +971,7 @@ extract_genotypes_metadata <- function(
971
971
# ' baddly generated. It will say you have Read and allele Depth info, but you don't.
972
972
# ' Default: \code{stacks.haplo.check = FALSE}.
973
973
# ' @param dart.check (optional, logical) DArT have different reporting for coverage
974
- # ' information.
974
+ # ' information. Will no longer report the average coverage stats from 1 and 2-rows DArT format.
975
975
# ' Default: \code{dart.check = FALSE}.
976
976
# @keywords internal
977
977
# ' @export
@@ -1000,15 +1000,21 @@ check_coverage <- function(gds, genotypes.metadata.check = FALSE, stacks.haplo.c
1000
1000
# DArT count and 1 and 2 rows have different information...
1001
1001
if (dart.check && " dart" %in% data.source ) {
1002
1002
if (any(c(" 2rows" , " 1row" ) %in% data.source )) {
1003
- got.coverage <- extract_markers_metadata(
1004
- gds ,
1005
- markers.meta.select = c(" AVG_COUNT_REF" , " AVG_COUNT_SNP" ),
1006
- whitelist = TRUE
1007
- )
1008
- if (! is.null(got.coverage )) {
1009
- got.coverage <- c(" AVG_COUNT_REF" , " AVG_COUNT_SNP" )
1010
- return (got.coverage )
1011
- }
1003
+ # got.coverage <- extract_markers_metadata(
1004
+ # gds,
1005
+ # markers.meta.select = c("AVG_COUNT_REF", "AVG_COUNT_SNP"),
1006
+ # whitelist = TRUE
1007
+ # )
1008
+ # if (!is.null(got.coverage)) {
1009
+ # got.coverage <- c("AVG_COUNT_REF", "AVG_COUNT_SNP")
1010
+ # return(got.coverage)
1011
+ # }
1012
+ message(" Coverage statistics information for 2rows and 1row DArT format is ignored" )
1013
+ message(" \n radiator cannot generate coverage statistics from source\n potential blacklisted individuals bias the statistics generated by DArT" )
1014
+ message(" \n request DArT count format from DArT" )
1015
+
1016
+ got.coverage <- NULL
1017
+ return (got.coverage )
1012
1018
}# End DART 1row and 2 rows
1013
1019
}
1014
1020
@@ -2162,7 +2168,7 @@ generate_stats <- function(
2162
2168
# subsample = variant.select
2163
2169
# exhaustive = FALSE
2164
2170
# force.stats = TRUE
2165
- # # path.folder = NULL
2171
+ # path.folder = NULL
2166
2172
# plot = TRUE
2167
2173
# digits = 6
2168
2174
# # file.date = NULL
@@ -2562,7 +2568,7 @@ generate_stats <- function(
2562
2568
}
2563
2569
2564
2570
if (individuals ) {
2565
- # changing the margin doesnt work with seqarray, the GDS needs to be optimized by sample
2571
+ # changing the margin doesn't work with seqarray, the GDS needs to be optimized by sample
2566
2572
# this operation is very costly in both time and disk space.
2567
2573
# faster to do matrix calculations by rows and sums
2568
2574
# Note to myself: the huge speed gain by using other packages robustbse, Rfast, etc.
@@ -2791,11 +2797,11 @@ generate_stats <- function(
2791
2797
# NOTE TO MYSELF need to work on including that one with DArT files...--------
2792
2798
# DArT 1 row and 2rows --------------------------------------------------------
2793
2799
# if ("dart" %in% data.source && any(c("2rows", "1row") %in% data.source)) {
2794
- # depth <- extract_markers_metadata(
2795
- # gds,
2796
- # markers.meta.select = c("AVG_COUNT_REF", "AVG_COUNT_SNP"),
2797
- # whitelist = TRUE
2798
- # )
2800
+ # depth <- extract_markers_metadata(
2801
+ # gds,
2802
+ # markers.meta.select = c("AVG_COUNT_REF", "AVG_COUNT_SNP"),
2803
+ # whitelist = TRUE
2804
+ # )
2799
2805
# markers <- ind <- FALSE
2800
2806
#
2801
2807
# if (is.null(depth)) return(NULL)
0 commit comments