R Observatory
Search
install.packages("pedtools")
CRAN 30-day downloads, method
1,073+12.2% up on the 30 days before, the better direction
Test coverage, method
57%of lines run by tests

A comprehensive collection of tools for creating, manipulating and visualising pedigrees and genetic marker data. Pedigrees can be read from text files or created on the fly with built-in functions.

Full description

A comprehensive collection of tools for creating, manipulating and visualising pedigrees and genetic marker data. Pedigrees can be read from text files or created on the fly with built-in functions. A range of utilities enable modifications like adding or removing individuals, breaking loops, and merging pedigrees. An online tool for creating pedigrees interactively, based on 'pedtools', is available at <https://magnusdv.shinyapps.io/quickped>. 'pedtools' is the hub of the 'pedsuite', a collection of packages for pedigree analysis. A detailed presentation of the 'pedsuite' is given in the book 'Pedigree Analysis in R' (Vigeland, 2021, ISBN:9780128244302).

Maintainer
Magnus Dehli Vigeland
Licence
GPL-3
Latest release
19 Jun 2026
First release
11 Oct 2019

Compare with another package

More details
Releases
27
Needs compilation
No
Needs R
>= 4.2
Config/roxygen2/version
8.0.0
Language
en-GB
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("pedtools")

The package provides a citation file, so citation() returns the authors' own entry.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for pedtools version 2.11.0 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.11.0
    Time taken
    142 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.11.0
    Time taken
    100 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.11.0
    Time taken
    118 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.11.0
    Time taken
    95 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    165 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.11.0
    Time taken
    40 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    125 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    200 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    132 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    133 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.11.0
    Time taken
    36 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    128 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.11.0
    Time taken
    163 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
1,094+8.5% up on the 30 days before, the better directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

3,534 of 26,530

CRAN

1,073 downloads in the last 30 days

Rank
3,534 of 26,530
Change
+12.2% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

14 downloads in the last 30 days

Rank
5,640 of 30,526
Change
−65% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

7 downloads in the last 30 days

Rank
6,587 of 29,212
Change
−41.7% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
2
Dependent packages
20
Suggested by
1
Needs (2)
Installing it adds
9 packages, 1.8 MB of source
Of those, need compilation
4
Optional extras (4)
Dependent packages (20)
PackageTitleDownloads in 30 days
forrelForensic Pedigree Analysis and Relatedness Inference1,009
pedprobrProbability Computations on Pedigrees757
ribdPedigree-based Relatedness Coefficients709
ibdsim2Simulation of Chromosomal Regions Shared by Family Members590
dvirDisaster Victim Identification489
pedbuildrPedigree Reconstruction437
verbalisrDescribe Pedigree Relationships in Words428
mispitoolsMissing Person Identification Tools402
ibdfindrHMM Toolkit for Inferring IBD Segments from SNP Data389
famnesiaAnonymising Familias Files324
pedFamiliasImport and Export 'Familias' Files321
KLINKKinship Analysis with Linked Markers316
paramlink2Parametric Linkage Analysis284
pedsuiteEasy Installation of the 'pedsuite' Packages for Pedigree Analysis277
relMixRelationship Inference for DNA Mixtures273
KinMixLiteInference About Relationships from DNA Mixtures271
segregatrSegregation Analysis for Variant Interpretation245
numberofallelesCompute the Probability Distribution of the Number of Alleles in a DNA Mixture211
forensicolorsForensic Colors179
ibdsegmentsIdentity by Descent Probability in Pedigrees172
Functions
317
Public exports
164
Lines of R code
13,308
Median complexity
4
Functions (317)
Size and composition

Lines by kind (20,893)

KindLinesShare
R code13,30864%
Tests2,14310%
Documentation4,99424%
Guides4482%

Lines by language

LanguageLinesShare
R15,45174%
Rd4,99424%
Vignettes4482%

Languages are counted from file extensions.

Files
147
R functions
317
Object systems
S3: 73 methods
Complexity
Median
4
Mean
6.23
Highest
38
Median lines per function
17
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
317
Calls
942
Unconnected
26
Groups
3
Growth (27 releases)
Total lines by release
11,214 on 11 Oct 201920,893 on 19 Jun 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
56.6%
Expressions run by tests
56.7%
Test cases
177
Exports named in tests
59.8%
Coverage by file (44)
Coverage run
Lines counted
5,544
Lines the tests ran
3,138
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
177
Lines of tests
2,143
Test lines per line of code
0.16
Exports documented
100%
Arguments documented
91.5%
Return value documented
91.2%
Help pages with examples
90.2%
Examples run in checks
100%
Guides (1)
Other documentation
README
Yes, 239 words
Release notes file
Yes
Help pages
61
Lines of documentation
4,994

magnusdv / pedtools on github.com

Stars
29no change on 30 days ago
Forks
7
Open issues
1
Last commit
16 Oct 2026
Activity
Commits
893
Open pull requests
0
Tagged releases
25
Latest tagged release
v2.11.0, 20 Jun 2026
In development
Default branch at 2.11.1, ahead of CRAN 2.11.0 (checked 2026-10-25)
Issues closed in
11 days (median)
Pull requests closed in
1 day (median)
Pull requests merged
67%
Created
23 Jun 2018
Licence file reads as
GPL-3.0
Development practices (3)
KindFound
Continuous integrationGitHub Actions
Docs sourceREADME.Rmd
Lint, format, editorRStudio project

Method, repository practices

Across magnusdv

R releases
  • On CRAN
  • Release
VersionReleasedR
2.11.0 current19 Jun 20264.6.0
2.10.01 Feb 20264.5.2
2.9.028 Oct 20254.5.1
2.8.213 Jul 20254.5.1
2.8.129 Apr 20254.5.0
2.8.025 Jan 20254.4.2
2.7.18 Sep 20244.4.1
2.7.028 Jun 20244.4.1
Earlier versions (19)
VersionReleasedR
2.6.031 Mar 20244.3.3
2.5.05 Nov 20234.3.2
2.4.02 Oct 20234.3.1
2.3.124 Aug 20234.3.1
2.2.025 May 20234.3.0
2.1.15 Jan 20234.2.2
2.0.03 Nov 20224.2.2
1.3.07 Jun 20224.2.0
1.2.030 Mar 20224.1.3
1.1.08 Dec 20214.1.2
1.0.122 Jun 20214.1.0
0.9.710 Feb 20214.0.3
0.9.614 Nov 20204.0.3
0.9.54 Aug 20204.0.2
0.9.418 Jun 20204.0.0
0.9.321 Mar 20203.6.3
0.9.23 Feb 20203.6.2
0.9.12 Dec 20193.6.1
0.9.011 Oct 20193.6.1
Release notes (2.11.0)

New features

  • The loop breaking algorithm has been revamped and extended to allow founders to act as loop breakers, and to use the same individual as loop breaker for several loops. This enables loop breaking (and therefore likelihood calculations etc.) in many pedigrees that were previously intractable. The new algorithm is also faster than the previous one, especially in large pedigrees. Awaiting updates in downstream packages, the new loop breaking methods are disabled by default, but may be activated by breakLoops(x, allowFounder = TRUE, allowRepeated = TRUE).
  • The ped() constructor now always checks for the presence of loops, ignoring the previous argument detectLoops, which is now deprecated. The previous internal loop detection algorithm, which was optional because it was slow in large pedigrees, has been replaced by a faster one which scales better.
  • Several methods have been revised and made more efficient, including randomPed(), peelingOrder(), connectedComponents().
  • New function children2(), similar to children() but requiring both parents as input.
  • children() gains argument bySpouse, which if TRUE gives a list of children for each spouse, instead of a single vector with all children.

Other

  • Fix bug in summary.list() handling ped lists.
  • Handle NULLs in the internal split_genotype_cols().
  • Various vector code cleanups.