Skip to content

dartR.base

Analysing 'SNP' and 'Silicodart' Data - Basic Functions

v1.2.3 · Mar 19, 2026 · GPL (>= 3)

Description

Facilitates the import and analysis of 'SNP' (single nucleotide 'polymorphism') and 'silicodart' (presence/absence) data. The main focus is on data generated by 'DarT' (Diversity Arrays Technology), however, data from other sequencing platforms can be used once 'SNP' or related fragment presence/absence data from any source is imported. Genetic datasets are stored in a derived 'genlight' format (package 'adegenet'), that allows for a very compact storage of data and metadata. Functions are available for importing and exporting of 'SNP' and 'silicodart' data, for reporting on and filtering on various criteria (e.g. 'callrate', 'heterozygosity', 'reproducibility', maximum allele frequency). Additional functions are available for visualization (e.g. Principle Coordinate Analysis) and creating a spatial representation using maps. 'dartR.base' is the 'base' package of the 'dartRverse' suits of packages. To install the other packages, we recommend to install the 'dartRverse' package, that supports the installation of all packages in the 'dartRverse'. If you want to cite 'dartR', you find the information by typing citation('dartR.base') in the console.

Downloads

1.6K

Last 30 days

3095th

3.5K

Last 90 days

13.4K

Last year

Trend: +51.7% (30d vs prior 30d)

CRAN Check Status

3 ERROR
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 ERROR
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 ERROR
r-release-windows-x86_64 OK
Check details (3 non-OK)
ERROR r-oldrel-macos-arm64

package dependencies

Packages required but not available: 'SNPRelate', 'snpStats'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-release-macos-arm64

package dependencies

Packages required but not available: 'SNPRelate', 'snpStats'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-release-macos-x86_64

examples

Running examples in ‘dartR.base-Ex.R’ failed
The error most likely occurred in:

> ### Name: gl.filter.ld
> ### Title: Filters loci based on linkage disequilibrium (LD)
> ### Aliases: gl.filter.ld
> 
> ### ** Examples
> 
> if ((requireNamespace("snpStats", quietly = TRUE)) & (requireNamespace("fields", quietly = TRUE))) {
+ test <- gl.filter.callrate(platypus.gl, threshold = 1)
+ test <- gl.filter.monomorphs(test)
+ report <- gl.report.ld.map(test)
+ res <- gl.filter.ld(x=test,ld.report = report)
+ }
Starting gl.filter.callrate 
  Processing genlight object with SNP data
  Warning: data include loci that are scored NA across all individuals.
  Consider filtering using gl <- gl.filter.allna(gl)
  Warning: Data may include monomorphic loci in call rate 
                    calculations for filtering
  Recalculating Call Rate
  Removing loci based on Call Rate, threshold = 1 
Completed: gl.filter.callrate 
Starting gl.filter.monomorphs 
  Processing genlight object with SNP data
  Identifying monomorphic loci
  Removing monomorphic loci and loci with all missing 
                       data
Completed: gl.filter.monomorphs 
Starting gl.report.ld.map 
  Processing genlight object with SNP data
  There is no information in the chromosome/position slot of the genlight object.
      Assigning the same chromosome ('1') to all the SNPs in the dataset.
      Assigning a sequence from 1 to n loci as the position of each SNP.
      Calculating LD for all possible SNP pair combinations  Calculating pairwise LD in population SEVERN_ABOVE 

 *** caught segfault ***
address 0x1, cause 'memory not mapped'

Traceback:
 1: snpStats::ld(genotype_loci, genotype_loci, stats = ld.stat)
 2: gl.report.ld.map(test)
An irrecoverable exception occurred. R is aborting now ...

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 12, 2026
ERROR r-release-macos-x86_64

examples

Running examples in ‘dartR.base-Ex.R’ failed
The error most likely occurred in:

> ### Name: gl.filter.ld
> ### Title: Filters loci based on linkage disequilibrium (LD)
> ### Aliases: gl.filter.ld
> 
> ### ** Examples
> 
> if ((requireNamespace("snpS
...[truncated]...
opulation SEVERN_ABOVE 

 *** caught segfault ***
address 0x1, cause 'memory not mapped'

Traceback:
 1: snpStats::ld(genotype_loci, genotype_loci, stats = ld.stat)
 2: gl.report.ld.map(test)
An irrecoverable exception occurred. R is aborting now ...
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (6)

suggests

Dependency Network

Dependencies Reverse dependencies ggplot2 dplyr dartR.data adegenet ape crayon data.table foreach gridExtra patchwork plyr reshape2 SNPRelate StAMPP stringr +6 more dependencies dartR.captive dartR.popgen dartR.sexlinked dartR.sim dartR.spatial dartRverse dartR.base

Version History

updated 1.2.3 ← 1.2.2 diff Mar 20, 2026
updated 1.2.2 ← 1.0.7 diff Mar 12, 2026
new 1.0.7 Mar 10, 2026
updated 1.0.7 ← 1.0.5 diff Sep 30, 2025
updated 1.0.5 ← 0.98 diff Mar 3, 2025
updated 0.98 ← 0.65 diff Sep 18, 2024
updated 0.65 ← 0.49 diff Nov 16, 2023
new 0.49 Aug 11, 2023