Skip to content

Commit 22c6cb3

Browse files
# radiator 1.3.7 2025-06-17
* Improved DArT file import and filtering * Several functions were not handling generating folder names and numbers inside nested function. Presently working on an overhaul. VCF and DArT files are impacted by this one.
1 parent a19cada commit 22c6cb3

293 files changed

Lines changed: 2918 additions & 1958 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

2 KB
Binary file not shown.

DESCRIPTION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: radiator
22
Type: Package
33
Title: RADseq Data Exploration, Manipulation and Visualization using R
4-
Version: 1.3.6
5-
Date: 2025-04-15
4+
Version: 1.3.7
5+
Date: 2025-06-17
66
Encoding: UTF-8
77
Authors@R: c(
88
person("Thierry", "Gosselin", email = "thierrygosselin@icloud.com", role = c("aut", "cre")),
@@ -53,7 +53,8 @@ Suggests:
5353
tidyr (>= 1.1.0),
5454
tidyselect,
5555
utils,
56-
vctrs
56+
vctrs,
57+
vroom
5758
License: GPL-3
5859
LazyLoad: yes
5960
VignetteBuilder:

NAMESPACE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export(filter_snp_number)
7474
export(filter_snp_position_read)
7575
export(filter_whitelist)
7676
export(folder_prefix)
77-
export(folder_short)
7877
export(gds2tidy)
7978
export(generate_filename)
8079
export(generate_folder)
@@ -93,6 +92,7 @@ export(gt_recoding)
9392
export(haplotype_reconstruction)
9493
export(hwe_analysis)
9594
export(ibdg_fh)
95+
export(id_qc_helper)
9696
export(import_dart_geno)
9797
export(ind_total_reads)
9898
export(individual_het)
@@ -225,6 +225,7 @@ export(write_maverick)
225225
export(write_pcadapt)
226226
export(write_plink)
227227
export(write_rad)
228+
export(write_radiator_tsv)
228229
export(write_related)
229230
export(write_rubias)
230231
export(write_snprelate)

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# radiator 1.3.7 2025-06-17
2+
3+
* Improved DArT file import and filtering
4+
* Several functions were not handling generating folder names and numbers inside
5+
nested function. Presently working on an overhaul.
6+
VCF and DArT files are impacted by this one.
7+
8+
19
# radiator 1.3.6 2025-04-15
210

311
* Speed improvements for some functions

R/clean.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ clean_ind_names <- function(x) {
4848
#' Used internally in \href{https://github.com/thierrygosselin/radiator}{radiator}
4949
#' and might be of interest for users.
5050
#' @param x (character string) Population character string.
51+
#' @param factor (logical) Default: \code{factor = TRUE}. Will also keep or transform the factor levels.
5152
#' @rdname clean_pop_names
5253
#' @export
53-
clean_pop_names <- function(x) {
54+
clean_pop_names <- function(x, factor = TRUE) {
5455
clean_pop <- function(x) {
5556
stringi::stri_replace_all_fixed(
5657
str = as.character(x),
@@ -65,5 +66,6 @@ clean_pop_names <- function(x) {
6566
pop.levels <- clean_pop(as.character(unique(x)))
6667
}
6768
x <- clean_pop(as.character(x))
68-
x <- factor(x, levels = pop.levels)
69+
if (factor) x <- factor(x, levels = pop.levels)
70+
return(x)
6971
}#End clean_pop_names

0 commit comments

Comments
 (0)