def faidx_length(line):
    """
    Get the base length for a contig from a fai file.

    Parameters
    ----------
    line: str
        A fai file line.

    Returns
    -------
    int
        The number of bases in the contig.

    """
    return float(line.split('\t')[1])