Man pages for dartR.base
Analysing 'SNP' and 'Silicodart' Data - Basic Functions

cbind.dartRadjust cbind for dartR
gl2bayesAssConverts a genlight object into bayesAss (BA3) input format
gl2bayescanConverts a genlight object into a format suitable for input...
gl2bppConverts a genlight object into a format suitable for input...
gl2demerelateCreates a dataframe suitable for input to package...
gl2eigenstratConverts a genlight object into eigenstrat format
gl2fastaConcatenates DArT trimmed sequences and outputs a FASTA file
gl2faststructureConverts a genlight object into faststructure format (to run...
gl2gdsConverts a genlight object into gds format
gl2genalexConverts a genlight object into a format suitable for input...
gl2genepopConverts a genlight object into genepop format (and file)
gl2genoConverts a genlight object to geno format from package LEA
gl2giConverts a genind object into a genlight object
gl2hiphopConverts a genlight objects into hiphop format
gl2paup.parsimonyConverts a genlight object to nexus format for parsimony...
gl2paup.svdquartetsConverts a genlight object to nexus format PAUP SVDquartets
gl2phylipCreates a Phylip input distance matrix from a genlight (SNP)...
gl2plinkConverts a genlight object into PLINK format
gl2relatedConverts a genlight object to format suitable to be run with...
gl2saConverts genlight objects to the format used in the SNPassoc...
gl2snapperConverts a genlight object to nexus format suitable for...
gl2structureConverts a genlight object to STRUCTURE formatted files
gl2treemixConverts a genlight object to a treemix input file
gl2vcfConverts a genlight object into vcf format
gl.add.indmetricsAdds metadata into a genlight object
gl.alfCalculates allele frequency of the first and second allele...
gl.allele.freqGenerates percentage allele frequencies by locus and...
gl.amovaPerforms AMOVA using genlight data
gl.check.verbosityChecks the current global verbosity
gl.check.wdChecks the global working directory
gl.colorsReturns a list of colors for use in plots
gl.compliance.checkChecks a genlight object to see if it complies with dartR...
gl.define.popDefines a new population in a genlight object for specified...
gl.diagnostics.hweProvides descriptive stats and plots to diagnose potential...
gl.dist.indCalculates a distance matrix for individuals defined in a...
gl.dist.phyloGenerates a distance matrix from a SNP genlight object taking...
gl.dist.popCalculates a distance matrix for populations with SNP or...
gl.drop.indRemoves specified individuals from a dartR genlight object
gl.drop.locRemoves specified loci from a dartR genlight object
gl.drop.popRemoves specified populations from a dartR genlight object
gl.edit.recode.indCreates or edits individual (=specimen) names, creates a...
gl.edit.recode.popCreates or edits and applies a population re-assignment table
gl.fdsimEstimates the rate of false positives in a fixed difference...
gl.filter.allnaFilters loci that are all NA across individuals and/or...
gl.filter.callrateFilters loci or specimens in a genlight {adegenet} object...
gl.filter.excess.hetFilters excessively-heterozygous loci from a genlight object
gl.filter.factorloadingsFilters loci based on factor loadings for a PCA or PCoA
gl.filter.hammingFilters loci based on pairwise Hamming distance between...
gl.filter.heterozygosityFilters individuals with average heterozygosity greater than...
gl.filter.hweFilters loci that show significant departure from...
gl.filter.ldFilters loci based on linkage disequilibrium (LD)
gl.filter.locmetricFilters loci on the basis of numeric information stored in...
gl.filter.mafFilters loci on the basis of minor allele frequency (MAF) or...
gl.filter.monomorphsFilters monomorphic loci, including those with all NAs
gl.filter.overshootFilters loci for which the SNP has been trimmed from the...
gl.filter.paFilters loci that contain private (and fixed alleles) between...
gl.filter.rdepthFilters loci based on counts of sequence tags scored at a...
gl.filter.reproducibilityFilters loci in a genlight {adegenet} object based on average...
gl.filter.secondariesFilters loci that represent secondary SNPs in a genlight...
gl.filter.taglengthFilters loci in a genlight {adegenet} object based on...
gl.fixed.diffGenerates a matrix of fixed differences and associated...
gl.fst.popCalculates a pairwise Fst values for populations in a...
gl.HeEstimates expected Heterozygosity
gl.HoEstimates observed Heterozygosity
gl.hwe.popPerforms Hardy-Weinberg tests over loci and populations
gl.imputeImputes missing data
gl.joinCombines two dartR genlight objects
gl.keep.indRemoves all but the specified individuals from a dartR...
gl.keep.locRemoves all but the specified loci from a genlight object
gl.keep.popRemoves all but the specified populations from a dartR...
gl.loadLoads an object from compressed binary format produced by...
gl.mahal.assignAssigns individuals to populations with an associated...
gl.make.recode.indCreates a proforma recode_ind file for reassigning individual...
gl.make.recode.popCreates a proforma recode_pop_table file for reassigning...
gl.map.interactiveCreates an interactive map (based on latlon) from a genlight...
gl.merge.popMerges two or more populations in a dartR genlight object...
gl.pcoaOrdination applied to genotypes in a genlight object (PCA),...
gl.pcoa.plotBivariate or trivariate plot of the results of an ordination...
gl.plot.heatmapRepresents a distance matrix as a heatmap
gl.print.historyPrints history of a genlight object
gl.prop.sharedCalculates a similarity (distance) matrix for individuals on...
gl.randomize.snpsRandomly changes the allocation of 0's and 2's in a genlight...
gl.read.csvReads SNP data from a csv file into a genlight object
gl.read.dartImports DArT data into dartR and converts it into a dartR...
gl.read.fastaReads FASTA files and converts them to genlight object
gl.read.PLINKReads PLINK data file into a genlight object
gl.read.silicodartImports presence/absence data from SilicoDArT to genlight...
gl.read.vcfConverts a vcf file into a genlight object
gl.reassign.popAssigns an individual metric as pop in a genlight {adegenet}...
gl.recalc.metricsRecalculates locus metrics when individuals or populations...
gl.recode.indRecodes individual (=specimen = sample) labels in a genlight...
gl.recode.popRecodes population assignments in a genlight object
gl.rename.popRenames a population in a genlight object
gl.report.allelerichReport allelic richness per population from a genlight object
gl.report.allnaReports loci that are all NA across individuals and/or...
gl.report.basesReports summary of base pair frequencies
gl.report.basicsBasic statistics for a genlight object
gl.report.callrateReports summary of Call Rate for loci or individuals
gl.report.diversityCalculates diversity indexes for SNPs
gl.report.excess.hetReport loci with excess of heterozygosity
gl.report.factorloadingsReports factor loadings for a PCA or PCoA
gl.report.fstatReports various statistics of genetic differentiation between...
gl.report.hammingCalculates the pairwise Hamming distance between DArT trimmed...
gl.report.heterozygosityReports observed, expected and unbiased heterozygosities and...
gl.report.hweReports departure from Hardy-Weinberg proportions
gl.report.ldCalculates pairwise population based Linkage Disequilibrium...
gl.report.ld.mapCalculates pairwise linkage disequilibrium by population
gl.report.locmetricReports summary of the slot $other$loc.metrics
gl.report.mafReports minor allele frequency (MAF) for each locus in a SNP...
gl.report.monomorphsReports monomorphic loci
gl.report.overshootReports loci for which the SNP has been trimmed from the...
gl.report.paReports private alleles (and fixed alleles) per pair of...
gl.report.polyploid_heterozygosityReports observed, expected and unbiased heterozygosities and...
gl.report.rdepthReports summary of Read Depth for each locus
gl.report.replicatesIdentify replicated individuals
gl.report.reproducibilityReports summary of RepAvg (repeatability averaged over both...
gl.report.secondariesReports loci containing secondary SNPs in sequence tags and...
gl.report.shannonReport SNP diversity from a genlight object, with reference...
gl.report.taglengthReports summary of sequence tag length across loci
gl.sampleSamples individuals from populations
gl.saveSaves an object in compressed binary format for later rapid...
gl.select.colorsSelects colors from one of several palettes and outputs as a...
gl.select.shapesSelects shapes from the base R shape palette and outputs as a...
gl.set.verbositySets the default verbosity level
gl.set.wdSets the default working directory
gl.sim.crossGenerates random crosses between fathers and mothers
gl.sim.genotypesGenerate random genotypes
gl.smearplotSmear plot
gl.sortSorts genlight objects
gl.subsample.indSubsample individuals from a genlight object
gl.subsample.locSubsample loci from a genlight object
gl.subsample.lociSubsamples n loci from a genlight object and return it as a...
gl.test.heterozygosityTests the difference in heterozygosity between populations...
gl.tree.fitchGenerates a distance phylogeny
gl.tree.njOutputs a tree to summarize genetic similarity among...
gl.write.csvWrites out data from a genlight object to csv file
rbind.dartRadjust rbind for dartR
sub-dartR-ANY-ANY-ANY-methodindexing dartR objects correctly...
theme_dartRDefault theme for dartR plots
utils.basic.statsCalculates mean observed heterozygosity, mean expected...
utils.check.datatypeUtility function to check the class of an object passed to a...
utils.collapse.matrixCollapses a distance matrix calculated for individuals to a...
utils.dart2genlightAn internal function to converts DarT to genlight.
utils.dist.binaryCalculates a distance matrix for individuals defined in a...
utils.dist.ind.snpCalculates a distance matrix for individuals defined in a...
utils.flag.startA utility script to flag the start of a script
utils.hammingCalculates the Hamming distance between two DArT trimmed DNA...
utils.het.popAn internal function that calculates expected mean...
utils.imputeAn internal script [Custodian to provide a title]
utils.is.fixedAn internal function to tests if two populations are fixed at...
utils.jackknifeAn internal function to conducts jackknife resampling using a...
utils.n.var.invariantAn internal utility function to calculate the number of...
utils.plink.runRuns PLINK from within R
utils.plot.saveAn internal function to save a ggplot object to disk in RDS...
utils.read.dartUtility to import DarT data to R
utils.read.fastaAn internal script to read a fastA file into a genlight...
utils.read.pedAn internal script [Custodian to provide a title]
utils.recalc.avgpicA utility function to recalculate intermediate locus metrics
utils.recalc.callrateA utility script to recalculate the callrate by locus after...
utils.recalc.freqhetsA utility script to recalculate the frequency of the...
utils.recalc.freqhomref#' An internal utility function to recalculate the frequency...
utils.recalc.freqhomsnpA utility function to recalculate the frequency of the...
utils.recalc.mafA utility function to recalculate the minor allele frequency...
utils.reset.flags#' An internal utility function to reset to FALSE (or TRUE)...
utils.transposeAn internal utility function to transpose a genlight object.
utils.vcfr2genlight.polyploidUtility function to convert polyploid vcfR object as genlight
zzzSetting up the package Setting theme, colors and verbosity
dartR.base documentation built on April 4, 2025, 2:45 a.m.