Package: haplotypes 1.1.3.1

haplotypes: Manipulating DNA Sequences and Estimating Unambiguous Haplotype Network with Statistical Parsimony

Provides S4 classes and methods for reading and manipulating aligned DNA sequences, supporting an indel coding methods (only simple indel coding method is available in the current version), showing base substitutions and indels, calculating absolute pairwise distances between DNA sequences, and collapses identical DNA sequences into haplotypes or inferring haplotypes using user provided absolute pairwise character difference matrix. This package also includes S4 classes and methods for estimating genealogical relationships among haplotypes using statistical parsimony and plotting parsimony networks.

Authors:Caner Aktas

haplotypes_1.1.3.1.tar.gz
haplotypes_1.1.3.1.zip(r-4.5)haplotypes_1.1.3.1.zip(r-4.4)haplotypes_1.1.3.1.zip(r-4.3)
haplotypes_1.1.3.1.tgz(r-4.4-any)haplotypes_1.1.3.1.tgz(r-4.3-any)
haplotypes_1.1.3.1.tar.gz(r-4.5-noble)haplotypes_1.1.3.1.tar.gz(r-4.4-noble)
haplotypes_1.1.3.1.tgz(r-4.4-emscripten)haplotypes_1.1.3.1.tgz(r-4.3-emscripten)
haplotypes.pdf |haplotypes.html
haplotypes/json (API)

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

Peer review:

Bug tracker:https://github.com/cnrakt/haplotypes/issues

Datasets:
  • dna.obj - Example DNA sequence data

On CRAN:

3.41 score 1 stars 52 scripts 453 downloads 1 mentions 59 exports 28 dependencies

Last updated 1 years agofrom:b4bf6e0818. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-winNOTENov 16 2024
R-4.5-linuxNOTENov 16 2024
R-4.4-winOKNov 16 2024
R-4.4-macOKNov 16 2024
R-4.3-winOKNov 16 2024
R-4.3-macOKNov 16 2024

Exports:alltestappendas.data.frameas.dnaas.DNAbinas.listas.matrixas.networkas.networxas.phyDatbasecompboot.dnacalcclustclustersGcontrdistanceext.nodesfillendgapsfillnageodist.corrgroupinghaplohaplotypehapreordhas.cyclehomopolyimageindelcoderindtestncolnrowpairneipairneidistpairPhiSTpairPhiSTdistparsimnetparsnetpegas.amovapielegendpieplotplotpolymorpread.fasrecdistGremove.gapsren.duplirownamesrownames<-showsicsteplimitsubstolowertouppertryconnecttryconnectGuniquevalidityxhaps

Dependencies:apeclicodacpp11digestfansifastmatchgenericsglueigraphlatticelifecyclemagrittrMatrixnetworknlmephangornpillarpkgconfigplotrixquadprogRcpprlangsnastatnet.commontibbleutf8vctrs

Readme and manuals

Help Manual

Help pageTopics
Manipulating DNA Sequences and Estimating Unambiguous Haplotype Network with Statistical Parsimonyhaplotypes-package haplotypes
Extract or replace parts of an object of class 'Dna'[,Dna,ANY,ANY,ANY-method [,Dna-method [-methods [<-,Dna,ANY,ANY,ANY-method [<-,Dna-method
Combines two 'Dna' objectsappend,Dna-method append-methods
Coerces a 'Dna' object to a data.frameas.data.frame,Dna-method as.data.frame-methods
Coerces an object to a 'Dna' objectas.dna as.dna,character-method as.dna,data.frame-method as.dna,DNAbin-method as.dna,Haplotype-method as.dna,list-method as.dna,matrix-method as.dna,phyDat-method as.dna-methods
Coerces an object to a 'DNAbin' objectas.DNAbin as.DNAbin,Dna-method as.DNAbin-methods
Methods for function 'as.list' in the Package 'haplotypes'as.list,Dna-method as.list,Haplotype-method as.list,Parsimnet-method as.list-methods
Methods for function 'as.matrix' in the Package 'haplotypes'as.matrix,Dna-method as.matrix-methods
Coerces an object to a 'network' objectas.network as.network,Parsimnet-method as.network-methods
Coerces an object to a 'networx' objectas.networx as.networx,Parsimnet-method as.networx-methods
Coerces a 'Dna' object to a numeric matrixas.numeric,Dna-method as.numeric-methods
Coerces an object to a 'phyDat' objectas.phyDat as.phyDat,Dna-method as.phyDat-methods
Calculates base compositionbasecomp basecomp,Dna-method basecomp-methods
Generates single bootstrap replicateboot.dna boot.dna,Dna-method boot.dna-methods
Calculates absolute pairwise character difference matrix using a 'Dna' objectdistance distance,Dna-method distance-methods
Class '"Dna"' in the Package 'haplotypes'Dna Dna-class
Example DNA sequence datadna.obj
Groups haplotypes according to the grouping variable (populations, species, etc.)grouping grouping,Haplotype-method grouping-methods
Class '"Haplotype"' in the Package 'haplotypes'Haplotype Haplotype-class
Methods for function 'haplotype' in the package 'haplotypes'haplotype haplotype,dist-method haplotype,Dna-method haplotype,matrix-method haplotype-methods
Reorders haplotypes according to the ordering factorhapreord hapreord,Haplotype-method hapreord-methods
Provides the list of homoplastic indels and substitutionshomopoly homopoly,Dna-method homopoly-methods
Display DNA Sequenceimage,Dna-method image-methods
Codes gapsindelcoder indelcoder,Dna-method indelcoder-methods
Methods for function 'length' in the package 'haplotypes'length,Dna-method length,Haplotype-method length,Parsimnet-method length-methods
Function to get or set names of a 'Dna' object or 'Parsimnet' objectnames,Dna-method names,Parsimnet-method names-methods names<-,Dna-method names<-,Parsimnet-method names<--methods
Returns the length of the longest DNA sequencencol,Dna-method ncol-methods
Returns the number of DNA sequencesnrow,Dna-method nrow-methods
Provides the average number of pairwise Nei's (D) differences between populationspairnei pairnei,dist-method pairnei,Dna-method pairnei,matrix-method pairnei-methods
Provides the pairwise PhiST between populationspairPhiST pairPhiST,dist-method pairPhiST,Dna-method pairPhiST,matrix-method pairPhiST-methods
Class '"Parsimnet"' in the Package 'haplotypes'Parsimnet Parsimnet-class
Estimates gene genealogies using statistical parsimonyparsimnet parsimnet,dist-method parsimnet,Dna-method parsimnet,matrix-method parsimnet-methods
Add Legends to Plotspielegend pielegend,Parsimnet,Haplotype-method pielegend-methods
Plots pie charts on statistical parsimony networkpieplot pieplot,Parsimnet,Haplotype-method pieplot-methods
Methods for function 'plot' in the package 'haplotypes'plot,Parsimnet,missing-method plot,Parsimnet-method plot-methods
Displays polymorphic sites (base substitutions and indels) between two sequencespolymorp polymorp,Dna-method polymorp-methods
Returns the minimum and maximum lengths of the DNA sequencesrange,Dna-method range-methods
Read sequences from a file in FASTA formatread.fas
Removing gaps from 'Dna' objectremove.gaps remove.gaps,Dna-method remove.gaps-methods
Retrieve or set the row namesrownames,Dna-method rownames,Parsimnet-method rownames-methods rownames<-,Dna-method rownames<-,Parsimnet-method rownames<--methods
Methods for function 'show' in the package 'haplotypes'show,Dna-method show,Haplotype-method show,Parsimnet-method show-methods
Displays base substitutionssubs subs,Dna-method subs-methods
Convert sequence characters from upper to lower case or vice versatolower,Dna-method tolower-methods toupper,Dna-method toupper-methods
Extract Unique Sequencesunique,Dna,ANY-method unique,Dna-method unique-methods