dartR.base
Analysing 'SNP' and 'Silicodart' Data - Basic Functions
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
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)
package dependencies
Packages required but not available: 'SNPRelate', 'snpStats' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual.
package dependencies
Packages required but not available: 'SNPRelate', 'snpStats' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual.
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
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 ...