Learn R Programming

spgs (version 1.0-4)

Statistical Patterns in Genomic Sequences

Description

A collection of statistical hypothesis tests and other techniques for identifying certain spatial relationships/phenomena in DNA sequences. In particular, it provides tests and graphical methods for determining whether or not DNA sequences comply with Chargaff's second parity rule or exhibit purine-pyrimidine parity. In addition, there are functions for efficiently simulating discrete state space Markov chains and testing arbitrary symbolic sequences of symbols for the presence of first-order Markovianness. Also, it has functions for counting words/k-mers (and cylinder patterns) in arbitrary symbolic sequences. Functions which take a DNA sequence as input can handle sequences stored as SeqFastadna objects from the 'seqinr' package.

Copy Link

Version

Install

install.packages('spgs')

Monthly Downloads

286

Version

1.0-4

License

GPL (>= 2)

Maintainer

Andrew Hart

Last Published

October 3rd, 2023

Functions in spgs (1.0-4)

diffsign.test

the Differents-Sign Test of Statistical Independence
estimateMarkovChain

Fit a first-Order Markov Chain to a Sequence of Finite Symbols
Nanoarchaeum equitans Kin4-M Chromosome

DNA sequence for the Nanoarchaeum equitans Kin4-M Chromosome
markov.test

A Test for First-Order Markovianness
diid.disturbance

Construct feasible Random Noise Generating a Bernoulli Process
disambiguate

Disambiguate a Nucleic Sequence
diid.test

A Test for a Bernoulli Scheme (IID Sequence)
lb.test

The Ljung-Box Test for Uncorrelated Data
ks.unif.test

Using ks.test to test for Uniformity on the Unit Interval
simulateMarkovChain

Simulate a first-Order Markov Chain
markov.disturbance

Construct feasible Random Noise Generating a First-Order Markov Chain
rstochvec

Random Generation of Stochastic (Probability) Vectors
rcspr2mat

Random Stochastic Matrices Complying with Chargaff's Second Parity Rule for Dinucleotides
reverseComplement

Reverse Complement of a DNA/RNA Sequence
rank.test

The Rank Test of Statistical Independence
rstochmat

Random Generation of Stochastic Matrices
oligoProfile

Oligo Profiles and Oligo Profile Correlation Plots of Nucleotide Sequences
Pieris Rapae Granulovirus Genome

DNA sequence for the Pieris Rapae Granulovirus Genome
pair.counts

Count Pairs in Character Vectors
triple.counts

Count Triplets in Character Vectors
spgs-package

tools:::Rd_package_title("spgs")
quadruple.counts

Count Quadruplets in Character Vectors
turningpoint.test

The Turning Point Test of Statistical Independence
agct.test

Test of Purine-Pyrimidine Parity Based on Euclidean distance
chargaff.gibbs.test

Test of CSPR for Dinucleotides Under Gibbs Distribution
array2vector

Convert Arrays and Tables to Vectors with Named Elements
chisq.unif.test

Test of Uniformity Based on Pearsons's Chi-Squared test
complement

Complement of a DNA/RNA Sequence
chargaff2.test

Matrix Test of CSPR for Dinucleotides
cylinder.counts

Count Cylinders (Fixed-Offset Patterns) in Character Vectors
ag.test

Test of Purine-Pyrimidine Parity Based on Purine Count
chargaff1.test

Matrix Test of CSPR for Mononucleotides
chargaff0.test

Vector Test of Chargaff's Second Parity Rule (CSPR) for Mononucleotides