NAME

Bioconda::Packages::Package - A single Bioconda package record.

SYNOPSIS

my $pkg = $bp->get('samtools');
print $pkg->name, ' ', $pkg->current_version, "\n";
print "removed!\n" if $pkg->is_removed;
my @run = $pkg->dependencies('run');

DESCRIPTION

A thin, read-only wrapper around the hashref stored in the database. It exists so callers get stable accessor methods instead of reaching into hash keys. The underlying data is available via "data" if you need a field without an accessor.

data

Returns the raw underlying hashref.

is_removed

True if the package is no longer present in bioconda-recipes but retained in the database.

recipe_versions

List of recipe versions found in the repo (current plus any pinned version subdirectories).

published_versions

List of versions actually published on anaconda.org (only populated when the database was built with API enrichment).

identifiers

List of external identifiers (e.g. biotools:samtools, doi:...).

outputs

List of package names this recipe produces (for multi-output recipes).

versions

The best available list of versions: published versions when known, otherwise recipe versions.

dependencies

my @run   = $pkg->dependencies('run');     # default is 'run'
my @host  = $pkg->dependencies('host');
my @build = $pkg->dependencies('build');
my @all   = $pkg->dependencies('all');

In list context returns dependency hashrefs ({ name, constraint, platform }). In scalar context returns the count.

dependency_names

As "dependencies" but returns just the names.