Skip to content

samtools version checking #136

@rcorty

Description

@rcorty

HLA-LA/HLA-LA.pl

Lines 215 to 218 in 42fe1d4

unless($samtools_version_major > 1 or ($samtools_version_major == 1 and $samtools_version_minor >= 3))
{
die "I need samtools >=1.3";
}

This fails for the current version of samtools (1.21)

Could replace with something that looks only at minor version like

if ($samtools_version =~ /^1\.(\d+)/) {
    my $minor = $1;
    if ($minor < 3) {
        die "I need samtools >=1.3 (found 1.$minor)";
    }
}

But I am not much of a perl programmer so there may be a better fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions