Gets scores for queries
    step#7

    :param cfg: configuration dict

def dalignbedqueriesseq2dalignbedstats(cfg):
    """
    Gets scores for queries
    step#7

    :param cfg: configuration dict
    """
    datatmpd=cfg['datatmpd']
    dalignbedqueriesseq=del_Unnamed(pd.read_csv(cfg['dalignbedqueriesseqp'],sep='\t'))
    
    dalignbedstatsp=cfg['dalignbedstatsp']  
    logging.info(basename(dalignbedstatsp))
    if not exists(dalignbedstatsp) or cfg['force']:
        df=dalignbedqueriesseq.apply(lambda x: align(x['query sequence'],x['aligned sequence'],
                                                    psm=2,pmm=0.5,pgo=-3,pge=-1,),
                           axis=1).apply(pd.Series)
        print(df.head())
        df.columns=['alignment','alignment: score']
        dalignbedstats=dalignbedqueriesseq.join(df)
        del df
        dalignbedstats.to_csv(dalignbedstatsp,sep='\t')
    return cfg