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-x86_64)strataG_2.5.5.zip(r-4.7-arm64)strataG_2.5.5.zip(r-4.6-x86_64)strataG_2.5.5.zip(r-4.6-arm64)strataG_2.5.5.zip(r-4.5-x86_64)
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✨
DESCRIPTION
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.76 score 26 stars 440 scripts 63 downloads 156 exports 112 dependencies

Last updated from:c7cc8ea357. Checks:4 ERROR, 11 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR230
linux-devel-x86_64ERROR240
source / vignettesOK341
linux-release-arm64OK227
linux-release-x86_64OK280
macos-release-arm64OK247
macos-release-x86_64OK473
macos-oldrel-arm64OK282
macos-oldrel-x86_64OK501
windows-devel-arm64ERROR378
windows-devel-x86_64ERROR296
windows-release-arm64OK387
windows-release-x86_64OK258
windows-oldrel-x86_64OK259
wasm-releaseOK179

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

Dependencies:abindade4adegenetADGofTestapeapexbase64encbootbslibcachemclassclassIntcliclustercolorspacecommonmarkcopulacpp11data.tableDBIdeldirdigestdplyre1071farverfastmapfastmatchfontawesomefsgenepopgenericsggplot2ggrepelgluegridExtragslgtableHDIntervalhtmltoolshttpuvigraphisobandjquerylibjsonliteKernSmoothkknnlabelinglaterlatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemvtnormnlmenumDerivotelpcaPPpegaspermutephangornpillarpixmappkgconfigplyrpolyclippromisesproxypsplinepurrrquadprogR6rappdirsRColorBrewerRcppRcppArmadilloRcppProgressreshape2rlangs2S7sassscalessegmentedseqinrsfshinysourcetoolsspspatstat.dataspatstat.geomspatstat.univarspatstat.utilssprexstablediststringistringrswfscMisctibbletidyrtidyselectunitsutf8vctrsveganviridisLitewithrwkxtable

Creating and Manipulating gtypes Objects
gtypes objects | Genotypic Data | Sequence Data | Stratification schemes | Creating a gtypes object (df2gtypes) | Creating a gtypes object directly from sequences (sequence2gtypes) | Conversions from other packages | Accessor functions | Subsetting/Indexing | Stratifying samples | Exporting

Last update: 2026-11-05
Started: 2015-07-18

Genotype and sequence summaries
Individual summaries | Allelic diversity

Last update: 2026-11-05
Started: 2015-07-18

Working with sequences

Last update: 2026-11-05
Started: 2015-07-18

Population structure
Population differentiation measures

Last update: 2026-11-05
Started: 2016-03-22

Installing External Programs

Last update: 2026-11-05
Started: 2016-03-22

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 iupacCodes iupacMat
Find and label haplotypeslabelHaplotypes labelHaplotypes.character labelHaplotypes.default labelHaplotypes.gtypes labelHaplotypes.list
Convert Rmetasim landscapelandscape2df landscape2gtypes
Linkage DisequilibriumLDgenepop
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
Theta from Expected HeterozygositythetaH
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