read_meme fails when alphabet is DNA/RNA/AA-LIKE or custom
snystrom opened this issue · comments
Spencer Nystrom commented
> read_meme("dreme.txt")
Error in strsplit(alph, "\\s+")[[1]] : subscript out of bounds
This happens when the ALPHABET string defines a DNA/RNA/AA-LIKE or custom alphabet.
A few outcomes could happen here:
- Throw informative error for both *-LIKE alphabets and custom alphabets
- use *-LIKE Alphabets as DNA/RNA/AA
- throw an error for custom alphabets
- fully support custom alphabets
4 is quite the undertaking, so I've implemented 2 & 3. PR incoming.