Skip to content

piglet

1.2.0Package record

Program for Inferring Immunoglobulin Allele Similarity Clusters and Genotypes

0packages dependsuggested by 1
2.5Kdownloads / year
–test coverage
12/13flavors OK

Overview

About

Improves genotype inference and downstream Adaptive Immune Receptor Repertoire Sequence data analysis. Inference of allele similarity clusters, an alternative naming scheme and genotype inference for immunoglobulin heavy chain repertoires. The main tools are allele similarity clusters, and allele based genotype. The first tool is designed to reduce the ambiguity within the immunoglobulin heavy chain V alleles. The ambiguity is caused by duplicated or similar alleles which are shared among different genes. The second tool is an allele based genotype, that determined the presence of an allele based on a threshold derived from a naive population. See Peres et al. (2023) doi:10.1093/nar/gkad603.

Changes in 1.2.0

MAJOR CHANGES:

  • Leiden Community Detection: Added support for Leiden algorithm as an alternative to hierarchical clustering. Use clustering_method = "leiden" in inferAlleleClusters(). This is particularly useful for D and J segments with variable-length sequences.
  • Generalized Distance Functions: The new igDistance() function supports multiple distance calculation methods:
  • "decipher": DECIPHER-based distance (default, best for aligned V segments)
  • "hamming": Hamming distance (requires equal-length sequences)
  • "lv": Levenshtein distance (handles variable-length sequences, good for D/J)
  • Multi-locus Support: inferAlleleClusters() now explicitly supports all V/D/J segments with the locus parameter.
  • New Visualization Functions:
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
  • plotTruncatedTree(): Publication-quality circular tree with collapsed subgroups
  • plotCommunityNetwork(): Network visualization of cluster relationships
  • plotSilhouetteOptimization(): Resolution parameter optimization plot
  • plotClusterComparison(): Compare hierarchical and Leiden clustering results

CLASS SYSTEM CHANGES:

  • S4 to S3 Migration: GermlineCluster is now an S3 class instead of S4.
  • Access slots with $ instead of @ (e.g., result$alleleClusterTable)
  • Added print(), summary(), and plot() S3 methods
  • New slots: clusteringMethod, communityObject, graphObject, distanceMatrix, silhouetteScore, resolutionParameter, locus

API CHANGES:

  • ighvDistance() is deprecated in favor of igDistance() (backward compatible wrapper provided)
  • ighvClust() is deprecated in favor of igClust() (backward compatible wrapper provided)
  • inferAlleleClusters() has new parameters but maintains backward compatibility

DEPENDENCIES:

  • Added: igraph, stringdist, cluster, ape
  • Moved to Suggests: ComplexHeatmap, dplyr, ggtree
  • Removed from Imports: dplyr (replaced with data.table operations)

MINOR CHANGES:

  • Improved CRAN compliance with proper Author and Maintainer fields
  • Added test suite using testthat (edition 3)
  • Redesigned Shiny app with modular architecture
  • Added Conda recipe for bioconda distribution

BUG FIXES:

  • Fixed deprecated dplyr::between() calls
  • Fixed deprecated dplyr::bind_rows() calls
  • Replaced deprecated S4 slot access patterns

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORpackage dependenciesr-oldrel-macos-arm64
Package required but not available: ‘DECIPHER’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.

CRAN check page ↗

Slowest check: 12.6 min · r-oldrel-macos-x86_64
Status changes
  • ERROR12 OK, 1 ERRORNow
  • ERROR12 OK, 2 ERROR2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 247 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
44 (6 internal)includes a package overview page
Examples that run
63%12 run in a plain check · 7 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
66%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
11%

Downloads

2.5K
CRAN downloads in the past year
Rank #9,827 · ~7/day · ~206/mo
Daily download trend is not available in this view yet.
32430 days
1K90 days
2.5K1 year
Compare downloads with other packages →
Also on391 r2u

Dependencies

Declared dependencies
30 external dependencies (excludes base and recommended)

Installing piglet adds 80 packages (46 with compiled code, 81 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB. 4 more not on CRAN are not measured.

Depends (1)
R >= 3.5.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 1.0.0 (2023)
Author, Copyright holder
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2026-02-17
  • 1.2.0Latest
    record
    2026-02-17 · current release · diff ↗ ·
    added 10 exports
    detect_communities_leiden, distance_to_graph, igClust, igDistance, new_germline_cluster, optimize_resolution, plotClusterComparison, plotCommunityNetwork, plotSilhouetteOptimization, plotTruncatedTree
  • archivedRemoved from CRAN
    2025-04-23
    issues were not corrected in time Claims OpenMP is not available when it is
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2025-04-09
  • 1.0.7
    record
    2025-04-09 · diff ↗ ·
    added 10 exports
    alleleClusterNames, allele_diff, allele_diff_indices, allele_diff_indices_parallel, allele_diff_indices_parallel2, allele_diff_strings, ighvClust, ighvDistance, inferGenotypeAllele_asc, insert_gaps2_vec
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2023-11-01
    check problems were not corrected in time
  • unarchivedReturned to CRAN
    2023-08-16
  • 1.0.1
    record
    2023-08-16 · diff ↗
  • archivedRemoved from CRAN
    2023-06-27
    issues were not corrected in time Does not use suggested package 'ggmsa' conditionally Does not check Internet sites are accessible
  • 1.0.0
    record
    2023-06-13
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-06-13
Total releases
4 / 3 yrs
License
CC BY-SA 4.0
Minimum R
≥ 3.5.0
Bundled data
38 KB / 4 files
Download size
955 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("piglet")

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

It points to 10.1093/nar/gkad603.

Cite the 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 piglet version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy