Skip to content

Commit

Permalink
* works with latest R 4.3.3
Browse files Browse the repository at this point in the history
* remove rland dependecies with integers
  • Loading branch information
thierrygosselin committed Apr 24, 2024
1 parent 899436d commit cae66c8
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 47 deletions.
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: radiator
Type: Package
Title: RADseq Data Exploration, Manipulation and Visualization using R
Version: 1.3.1
Date: 2024-04-23
Date: 2024-04-24
Encoding: UTF-8
Authors@R: c(
person("Thierry", "Gosselin", email = "[email protected]", role = c("aut", "cre")),
Expand All @@ -12,7 +12,7 @@ Authors@R: c(
Maintainer: Thierry Gosselin <[email protected]>
Description: RADseq Data Exploration, Manipulation and Visualization using R.
Depends:
R (>= 4.0)
R (>= 4.3)
biocViews:
Imports:
carrier,
Expand Down Expand Up @@ -51,7 +51,8 @@ Suggests:
tibble,
tidyr (>= 1.1.0),
tidyselect,
utils
utils,
vctrs
License: GPL-3
LazyLoad: yes
VignetteBuilder:
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# radiator 1.3.1 2024-04-23
# radiator 1.3.1 2024-04-24

* works with R 4.3.3
* Updated DArT code that use COUNT files to check more for problematic markers usually stemming from merged projects


Expand Down
8 changes: 0 additions & 8 deletions R/filter_individuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,6 @@ filter_individuals <- function(
variant.select <- subsample <- NULL
subsample.markers.stats <- 1

# id.stats <- generate_id_stats(
# gds = data,
# subsample = variant.select,
# path.folder = path.folder,
# file.date = file.date,
# parallel.core = parallel.core,
# verbose = verbose)

id.stats <- generate_stats(
gds = data,
individuals = TRUE,
Expand Down
22 changes: 0 additions & 22 deletions R/filter_rad.R
Original file line number Diff line number Diff line change
Expand Up @@ -920,28 +920,6 @@ filter_rad <- function(
verbose = verbose
)

# id.stats <- generate_id_stats(
# gds = gds,
# # subsample = variant.select,
# path.folder = path.folder,
# file.date = file.date,
# parallel.core = parallel.core,
# verbose = verbose
# ) %$% info

# Markers stats
# markers.stats <- generate_stats(
# gds = gds,
# individuals = FALSE,
# path.folder = path.folder,
# filename = NULL,
# file.date = file.date,
# parallel.core = parallel.core,
# verbose = verbose
# # ,
# # subsample = variant.select
# ) %$% info

# genomic_converter-----------------------------------------------------------
if (verbose) message("\nTransferring data to genomic converter...")
res$output <- genomic_converter(
Expand Down
3 changes: 2 additions & 1 deletion R/genlight.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ tidy_genlight <- function(
if (is.null(data@position)) {
if (verbose) message(" POS: no")
pos.info <- FALSE
data@position <- rlang::as_integer(seq(from = 1, to = n.markers, by = 1))
# data@position <- rlang::as_integer(seq(from = 1, to = n.markers, by = 1))
data@position <- vctrs::vec_cast(x = seq(from = 1, to = n.markers, by = 1), to = integer())
} else {
if (verbose) message(" POS: yes")
pos.info <- TRUE
Expand Down
1 change: 0 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ version <- gsub(" ", "", gsub("Version:", "", grep("Version:", description, valu
<!-- badges: start -->
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://tidyverse.org/lifecycle/#maturing)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![minimal R version](https://img.shields.io/badge/R%3E%3D-`r rvers`-6666ff.svg)](https://cran.r-project.org/)
[![packageversion](https://img.shields.io/badge/Package%20version-`r version`-orange.svg)](commits/master)
[![Last-changedate](https://img.shields.io/badge/last%20change-`r gsub('-', '--', Sys.Date())`-brightgreen.svg)](/commits/master)
[![R-CMD-check](https://github.com/thierrygosselin/radiator/workflows/R-CMD-check/badge.svg)](https://github.com/thierrygosselin/radiator/actions)
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
[![Project Status: Active – The project has reached a stable, usable
state and is being actively
developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![minimal R
version](https://img.shields.io/badge/R%3E%3D-NA-6666ff.svg)](https://cran.r-project.org/)
[![packageversion](https://img.shields.io/badge/Package%20version-1.3.1-orange.svg)](commits/master)
[![Last-changedate](https://img.shields.io/badge/last%20change-2024--04--23-brightgreen.svg)](/commits/master)
[![Last-changedate](https://img.shields.io/badge/last%20change-2024--04--24-brightgreen.svg)](/commits/master)
[![R-CMD-check](https://github.com/thierrygosselin/radiator/workflows/R-CMD-check/badge.svg)](https://github.com/thierrygosselin/radiator/actions)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3687060.svg)](https://doi.org/10.5281/zenodo.3687060)
<!-- badges: end -->
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/get_started.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/life_cycle.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/rad_genomics_computer_setup.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ articles:
get_started: get_started.html
life_cycle: life_cycle.html
rad_genomics_computer_setup: rad_genomics_computer_setup.html
last_built: 2024-04-23T22:04Z
last_built: 2024-04-24T14:02Z

0 comments on commit cae66c8

Please sign in to comment.