def map_to_genome(df, rgset):
    """Maps dataframe to genome locations
    Parameters
    ----------
    df: dataframe
            Dataframe containing methylation, unmethylation, M or Beta
            values for each sample at each site
    rgset: rg channel set instance
            RG channel set instance related to provided df
    Returns
    -------
    df: dataframe
            Dataframe containing the original values with the addition
            of genomic locations for each site
    """
    if 'Name' in df.columns:
        mani = rgset.manifest
        chromosomes = dict(zip(list(mani['Name'].values), list(mani['CHR'].
            values)))
        strands = dict(zip(list(mani['Name'].values), list(mani['Strand'].
            values)))
        build = dict(zip(list(mani['Name'].values), list(mani[
            'Genome_Build'].values)))
        mapinfo = dict(zip(list(mani['Name'].values), list(mani['MAPINFO'].
            values)))
        df['Chr'] = df['Name'].map(chromosomes)
        df['Strand'] = df['Name'].map(strands)
        df['GenomeBuild'] = df['Name'].map(build)
        df['MapInfo'] = df['Name'].map(mapinfo)
        return df
    else:
        print("No 'Name' column in dataframe.")
        return
