# Path: mirtop/gff/gff_versions.py



from mirtop.gff import gff_versions as version
import mirtop.libs.logger as mylog
"""Helpers to define the header fo the GFF file"""

logger = mylog.getLogger(__name__)


def create(samples, database, custom, filter=None):
    """Create header for GFF file.

    Args:
        *samples (list)*: character list with names for samples

        *database (str)*: name of the database.

        *custom (str)*: extra lines.

        *filter (list)*: character list with filter definition.

    Returns:
        *header (str)*: header string.
    """
    header = ""
    header += get_gff_version()
    header += _get_database(database)
    header += custom
    header += _get_samples(samples)
    return header


def get_gff_version():
    return ("## mirGFF3. VERSION"

# Path: mirtop/gff/gff_versions.py



# Path: mirtop/gff/header.py
from mirtop.gff import gff_versions as version
import mirtop.libs.logger as mylog

"""Helpers to define the header fo the GFF file"""

logger = mylog.getLogger(__name__)


def create(samples, database, custom, filter=None):
    """Create header for GFF file.

    Args:
        *samples (list)*: character list with names for samples

        *database (str)*: name of the database.

        *custom (str)*: extra lines.

        *filter (list)*: character list with filter definition.

    Returns:
        *header (str)*: header string.
    """
    header = ""
    header += get_gff_version()
    header += _get_database(database)
    header += custom
    header += _get_samples(samples)
    return header


def get_gff_version():
    return ("## mirGFF3. VERSION"

            " %s\n" % version.current)