def getSampleName(x):
    """ Parses sample name from fastqc path. """
    name = x.split("/")
    name = name[-2]
    name = name.replace("_R1_001_fastqc", "")
    name = name.replace("_R1_fastqc", "")
    return name