dasper
dasper copied to clipboard
[BUG] megadepth fails with paths containing spaces
Hello
Thanks for developing dasper.
I have an issue with coverage_norm
function, where it fails with megadepth.
Essentially, the quotes around the path of the input bigwig file are stripped, so space characters in that path are now interpreted as breaks in the command, and it fails.
Although I submit my list of bigwig files using properly formed paths (with quotes), these quotes are stripped from the megadepth command that is run.
There are a few space characters in the path. My working directory is on OneDrive with a path I cannot change. I have no issues with running other R commands at that location, as a matter of fact the said bigwig files are made with GenomicAlignemnts::coverage and saved there with rtracklayer::export.bw.
I should also mention that I took the megadepth command echoed in the error message, I added the quotes that had been stripped, and I ran that in a command prompt window and it ran fine, yielding a temp file with name ending in _coverage.annotation.tsv
So my questions are: -what would be the fix to avoid the stripping of the quotes? Where is the line of code that forms this command? -I don't mind issuing the megadepth commands separately, but how would I go about picking up from there afterwards?
Thanks in advance for your help.
Alex