Closed mwittep closed 2 years ago
How did you prepare the sequences to run Meme? If you used a custom fasta file, I think what is happening is the sequence header isn't matching an assumption made my runMeme
by default.
To confirm my suspicions, could you try running importMeme()
again but set parse_genomic_coord = TRUE
? I expect this will fail. If this is the case, the solution is to set parse_genomic_coord = FALSE
when you call runMeme
.
The reason this is happening is because runMeme
expects by default that the fasta file being used was generated within R using the get_sequences
function, which creates a specially formatted fasta header that encodes the genomic coordinates of that sequence. MEME itself will report the position of each match it found as a relative coordinate from the start of each sequence entry. In order to be helpful to the user, I convert these relative coordinates to absolute genomic coordinates using the specially formatted fasta headers. This is explained in ?runMeme
under the parse_genomic_coord
parameter, which I'll admit is a bit buried.
I will see if I can get memes
to spit out a more helpful error message in this situation to hint at turning off genomic coordinate parsing so this cryptic error doesn't happen in the future.
Thanks for reporting, and let me know if changing this flag doesn't solve the issue. I'll try to push a fix in the next few days.
It works! They were custom fasta files, so it was the exact problem you described. And now that I read the parse_genomic_coord
part in detail it was explained there, sorry for overlooking that!
Glad that was the fix. I've pushed an update to the current release & devel that prints a more informative error when this happens in the future. Thanks again for reporting!
I have used the command runMeme() to run a MEME analysis from a FASTA file. MEME (v5.4.1) has run, since the output files are produced. However, there seems to be a problem while parsing the exported files, since I get the following error:
I have the latest dplyr version (v1.0.9). Here the sessionInfo:
Nevertheless, the function importMeme works on the exported .txt file without any problem. Which file is parsed by runMeme? the .txt or the XML file?