def single_file_output(in_file):
    """
    Extract sample name from file ie. /path/to/test.fa --> test
    :param in_file: path/to/file (str)
    :return: extracted sample name (str)
    """

    return in_file.split('/')[-1].split('.')[-2]