Clone of and fixes for bioconductor package motifRG