Package: strataG 2.5.5

Eric Archer

strataG: Summaries and Population Structure Analyses of Genetic Data

A toolkit for analyzing stratified population genetic data. Functions are provided for summarizing and checking loci (haploid, diploid, and polyploid), single stranded DNA sequences, calculating most population subdivision metrics, and running external programs such as structure and fastsimcoal. The package is further described in Archer et al (2016) <doi:10.1111/1755-0998.12559>.

Authors:Eric Archer [aut, cre], Paula Adams [aut], Brita Schneiders [aut], Sarina Fernandez [aut], Warren Asfazadour [aut]

strataG_2.5.5.tar.gz
strataG_2.5.5.zip(r-4.7)strataG_2.5.5.zip(r-4.6)strataG_2.5.5.zip(r-4.5)
strataG_2.5.5.tgz(r-4.6-x86_64)strataG_2.5.5.tgz(r-4.6-arm64)strataG_2.5.5.tgz(r-4.5-x86_64)strataG_2.5.5.tgz(r-4.5-arm64)
strataG_2.5.5.tar.gz(r-4.7-arm64)strataG_2.5.5.tar.gz(r-4.7-x86_64)strataG_2.5.5.tar.gz(r-4.6-arm64)strataG_2.5.5.tar.gz(r-4.6-x86_64)
strataG_2.5.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
strataG/json (API)

# Install 'strataG' in R:
install.packages('strataG', repos = c('https://zkamvar.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ericarcher/stratag/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

dna-sequencesgeneticslocus-summariesmicrosatellitespopulation-geneticspopulation-genomicspopulation-structuresnp-datasnpscpp

7.51 score 26 stars 392 scripts 13 downloads 157 exports 123 dependencies

Last updated from:d25223781a. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK281
linux-devel-x86_64OK303
source / vignettesOK329
linux-release-arm64OK291
linux-release-x86_64OK307
macos-release-arm64OK185
macos-release-x86_64OK450
macos-oldrel-arm64OK164
macos-oldrel-x86_64OK353
windows-develOK242
windows-releaseOK274
windows-oldrelOK252
wasm-releaseOK198

Exports:alleleFreqsalleleSplitallelicRichnessarlequinReadarlequinWritearp2gtypesas.data.frameas.matrixas.multidnabaseFreqsclumppcreateConsensusdf2gtypesdiagnosabilitydupGenotypesevannoexpandHaplotypesexpectedNumAllelesfixedDifferencesfixedSitesfreq2GenDatafsc2gtypesfscBlock_dnafscBlock_freqfscBlock_microsatfscBlock_snpfscBlock_standardfscCleanupfscDemefscEstParamfscEventfscReadArpfscReadParamEstfscReadSFSfscRunfscSettingsDeffscSettingsDemesfscSettingsEstfscSettingsEventsfscSettingsGeneticsfscSettingsMigrationfscTutorialfscWritefstToNmfusFsgelatogelatoPlotgenepopgenepopWritegenind2gtypesgenlight2gtypesgetAlleleNamesgetDescriptiongetIndNamesgetLociNamesgetNumIndgetNumLocigetNumStratagetOthergetPloidygetSchemesgetSequencesgetStratagetStrataNamesgtypes2genindgtypes2genlightgtypes2locigtypes2phyDatgtypes2rfDFgtypesRFheterozygosityhweTestis.gtypesisTiisTviupacCodeiupacMatjackHWEjackInfluentiallabelHaplotypeslandscape2dflandscape2gtypesLDgenepopldNeloci2gtypeslowFreqSubsmafmafftmaverickRunmicrohaplot2rubiasmostDistantSequencesmostRepresentativeSequencesmRationeiDanucleotideDivergencenucleotideDiversitynumAllelesnumGenotypednumGensEqnumMissingoverallTestpairwiseMatrixpairwiseSummarypairwiseTestpermuteStrataphasephaseFilterphasePosteriorphaseReadPairphaseReadSamplephaseWritephyDat2gtypesprivateAllelespropSharedLocipropUniqueAllelesqual2probread.arlequinread.fastaread.megareadGenDataremoveUnusedSequencessequence2gtypessequenceLikelihoodssequenceRFsetDescription<-setOther<-setSchemes<-setStrata<-sfssharedAllelesshowsimGammaHapsstrataSplitstratifystructurePlotstructureReadstructureRunstructureWritesubTypesummarizeAllsummarizeIndssummarizeLocisummarizeSeqssummarytajimasDthetaTiTvRatiotrimNsvalidIupacCodesvariableSiteswrightFstwrite.arlequinwrite.fastawrite.megawrite.nexus.snappwriteGtypeszygosity

Dependencies:abindade4adegenetADGofTestapeapexbase64encbootbslibcachemclassclassIntcliclueclustercolorspacecommonmarkcopulacpp11data.tableDBIdeldirdigestdplyre1071farverfastmapfastmatchfBasicsfontawesomefsgenepopgenericsggplot2ggrepelgluegridExtragslgssgtableHDIntervalhtmltoolshttpuvigraphisobandjquerylibjsonliteKernSmoothkknnlabelinglaterlatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemodeestmvtnormnlmenumDerivotelpcaPPpegaspermutephangornpillarpixmappkgconfigplyrpolyclippromisesproxypsplinepurrrquadprogR6rappdirsRColorBrewerRcppRcppArmadilloRcppProgressreshape2rlangrmutilrparts2S7sassscalessegmentedseqinrsfshinysourcetoolsspspatialspatstat.dataspatstat.geomspatstat.univarspatstat.utilssprexstablestablediststatipstringistringrswfscMisctibbletidyrtidyselecttimeDatetimeSeriesunitsutf8vctrsveganviridisLitewithrwkxtable

Creating and Manipulating gtypes Objects

Rendered fromgtypes.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2025-05-12
Started: 2015-07-18

Genotype and sequence summaries

Rendered fromsummaries.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2025-05-12
Started: 2015-07-18

Installing External Programs

Rendered fromexternal.programs.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2025-05-12
Started: 2016-03-22

Working With Sequences

Rendered fromsequences.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2025-05-12
Started: 2015-07-18

Readme and manuals

Help Manual

Help pageTopics
Summaries and population structure analyses of DNA sequence genotypic datastrataG-package strataG
Allele FrequenciesalleleFreqs
Split Alleles For Diploid DataalleleSplit
Allelic RichnessallelicRichness
Read and Write Arlequin Filesarlequin arlequinRead arlequinWrite arp2gtypes read.arlequin write.arlequin
Convert 'gtypes' to data.frame or matrixas.data.frame as.data.frame,gtypes-method as.data.frame.gtypes as.matrix as.matrix,gtypes-method as.matrix.gtypes
Convert to multidnaas.multidna
Base FrequenciesbaseFreqs
Bowhead Whale SNP Genotype Groupsbowhead.snp.position
Bowhead Whale SNP Genotypesbowhead.snps
Run CLUMPPclumpp
Consensus SequencecreateConsensus
Convert a data.frame to gtypesdf2gtypes
Diagnosabilitydiagnosability
Dolphin dLoop gtypes Objectdloop.g
Dolphin mtDNA Haplotype Sequencesdolph.haps
Dolphin Microsatellite Genotypesdolph.msats
Dolphin mtDNA D-loop Sequencesdolph.seqs
Dolphin Genetic Stratification and Haplotypesdolph.strata
Duplicate GenotypesdupGenotypes
Run Evanno Method on STRUCTURE Resultsevanno
Expand HaplotypesexpandHaplotypes
Read and Write FASTAfasta read.fasta write.fasta
Fixed DifferencesfixedDifferences
Fixed SitesfixedSites
Convert Haplotype Frequency Matricesfreq2GenData
Input functions for fastsimcoal parametersfsc.input fscBlock_dna fscBlock_freq fscBlock_microsat fscBlock_snp fscBlock_standard fscDeme fscEstParam fscEvent fscSettings fscSettingsDef fscSettingsDemes fscSettingsEst fscSettingsEvents fscSettingsGenetics fscSettingsMigration
Read fastsimcoal outputfsc2gtypes fscRead fscReadArp fscReadParamEst fscReadSFS
Run fastsimcoalfscCleanup fscRun fscTutorial
Write fastsimcoal2 input filesfscWrite
Fu's FsfusFs
GELATo - Group ExcLusion and Assignment Testgelato gelatoPlot
Run GENEPOPgenepop genepopWrite
'gtypes' Classgtypes gtypes-class
'gtypes' Accessorsaccessors getAlleleNames getAlleleNames,gtypes-method getDescription getDescription,gtypes-method getIndNames getIndNames,gtypes-method getLociNames getLociNames,gtypes-method getNumInd getNumInd,gtypes-method getNumLoci getNumLoci,gtypes-method getNumStrata getNumStrata,gtypes-method getOther getOther,gtypes-method getPloidy getPloidy,gtypes-method getSchemes getSchemes,gtypes-method getSequences getSequences,gtypes-method getStrata getStrata,gtypes-method getStrataNames getStrataNames,gtypes-method gtypes.accessors index setDescription setDescription<- setDescription<-,gtypes-method setOther setOther<- setOther<-,gtypes-method setSchemes setSchemes<- setSchemes<-,gtypes-method setStrata setStrata<- setStrata<-,gtypes-method subset [,gtypes,ANY,ANY,ANY-method
Convert Between 'gtypes' And 'genind' objects.genind2gtypes gtypes2genind
Convert Between 'gtypes' And 'genlight' objects.genlight2gtypes gtypes2genlight
Convert Between 'gtypes' And 'loci' objects.gtypes2loci loci2gtypes
Convert Between 'gtypes' And 'phyDat' objects.gtypes2phyDat phyDat2gtypes
Create Sequence Data.Framegtypes2rfDF
gtype Random ForestgtypesRF
Heterozygosityheterozygosity
Hardy-Weinberg EquilibriumHWE hwe hweTest
'gtypes' Constructorgtypes.initialize initialize,gtypes-method initialize.gtypes new
Test if object is 'gtypes'is.gtypes
IUPAC Codesiupac iupacCode iupacMat validIupacCodes
Find and label haplotypeslabelHaplotypes labelHaplotypes.character labelHaplotypes.default labelHaplotypes.gtypes labelHaplotypes.list
Convert Rmetasim landscapelandscape2df landscape2gtypes
Linkage DisequlibriumLDgenepop
ldNeldNe
Low Frequency SubstitutionslowFreqSubs
Minor Allele Frequenciesmaf
MAFFT Alignmentmafft
Run MavericKmaverickRun
Read and Write MEGAMEGA mega mega, read.mega write.mega
Convert MicroHaplot file to rubias formatmicrohaplot2rubias
Most Distant SequencesmostDistantSequences
Representative SequencesmostRepresentativeSequences
M ratiomRatio
Dolphin Microsatellite gtypes Objectmsats.g
Nei's DaneiDa
Nucleotide DivergencedA nucleotideDivergence
Nucleotide DiversitynucleotideDiversity
Number of AllelesnumAlleles
Number of Individuals GenotypednumGenotyped
Number Missing DatanumMissing
Permute stratapermuteStrata
PHASEphase phaseFilter phasePosterior phaseReadPair phaseReadSample phaseWrite
Population Genetics EquationsexpectedNumAlleles fstToNm numGensEq popGenEqns wrightFst
Population Structure TestsoverallTest pairwiseMatrix pairwiseSummary pairwiseTest popStructTest
Private AllelesprivateAlleles
Proportion Unique AllelespropUniqueAlleles
Convert FASTQ quality scores to base probabilityqual2prob
Read Genetic DatareadGenData
Remove Unused SequencesremoveUnusedSequences
Convert Sequences To 'gtypes'sequence2gtypes
Sequence LikelihoodssequenceLikelihoods
Sequence Random ForestsequenceRF
Site Frequency Spectrumsfs
Shared LocipropSharedLoci sharedAlleles sharedLoci
Show a gtypes objectshow,gtypes-method
Simulate HaplotypessimGammaHaps
Split StratastrataSplit
Stratify gtypesstratify
STRUCTUREstructure structureRead structureRun structureWrite
Plot STRUCTURE ResultsstructurePlot
Summarize Genotypes and SequencessummarizeAll
Individual SummariessummarizeInds
Locus SummariessummarizeLoci
Sequence SummariessummarizeSeqs
Summarize gtypes Objectsummary summary,gtypes-method summary.gtypes
Tajima's DtajimasD
Thetatheta
Transition / Transversion RatioisTi isTv subType TiTvRatio
Trim N's From SequencestrimNs
Variable SitesvariableSites
Write NEXUS File for SNAPPwrite.nexus.snapp
Write 'gtypes'writeGtypes
Identify zygosity across locizygosity