Get query seqeunces from the BED file
    step#4

    :param cfg: configuration dict

def dalignbed2dalignbedqueries(cfg):
    """
    Get query seqeunces from the BED file
    step#4

    :param cfg: configuration dict
    """
    datatmpd=cfg['datatmpd']
    dalignbed=del_Unnamed(pd.read_csv(cfg['dalignbedp'],sep='\t'))
    dqueries=set_index(del_Unnamed(pd.read_csv(cfg['dqueriesp'],sep='\t')),'query id')
    
#     if the error in human, use: `cut -f 1 data/alignment.bed.sorted.bed | sort| uniq -c | grep -v CHR | grep -v GL | grep -v KI`
    dalignbedqueriesp=cfg['dalignbedqueriesp']
    logging.info(basename(dalignbedqueriesp))
    if not exists(dalignbedqueriesp) or cfg['force']:
        dalignbed=pd.merge(dalignbed,dqueries,on='query id',suffixes=('', '.1'))
        dalignbed.to_csv(dalignbedqueriesp,'\t')
    return cfg