BBVersion

Script: bbversion.sh Package: driver Class: BBVersion.java

Prints the BBTools version number. Add an argument to print the version name too.

Basic Usage

bbversion.sh

This simple utility displays the current BBTools version. With no arguments, it prints only the version number. With any argument, it also displays the version name.

Parameters

This tool accepts optional arguments to control output format:

Optional Arguments

[any argument]
When any argument is provided (such as "name" or "verbose"), the tool will print both the version number and version name instead of just the version number.

Examples

Display Version Number Only

bbversion.sh

Output: 39.33

This displays only the numerical version of BBTools currently installed.

Display Version Number and Name

bbversion.sh name

Output:

39.33
Bump33

This displays both the version number (39.33) and the version name (Bump33) on separate lines.

Use Any Argument for Verbose Output

bbversion.sh verbose
bbversion.sh anything
bbversion.sh 1

Any of these commands will produce the same verbose output showing both version number and name. The specific argument doesn't matter - any argument triggers the extended display.

Integration in Scripts

# Store version in variable
VERSION=$(bbversion.sh)
echo "Running BBTools version: $VERSION"

# Check if specific version
if [[ $(bbversion.sh) == "39.33" ]]; then
    echo "Correct version detected"
fi

Useful for version checking in bioinformatics pipelines and scripts.

Algorithm Details

BBVersion is a minimal utility that provides version information for the BBTools suite:

Implementation

Version Information System

The version system in BBTools uses centralized constants in the shared.Shared class:

Use Cases

Performance Characteristics

Technical Notes

Version Format

BBTools uses a decimal version format (X.XX) rather than semantic versioning (X.Y.Z). This provides:

Release Names

Each version includes a release name (like "Bump33") that:

Integration

The bbversion tool integrates seamlessly with:

Support

For questions and support: