ecotyper icon indicating copy to clipboard operation
ecotyper copied to clipboard

EcoTyper does not handle spaces in path names

Open kaizen89 opened this issue 2 years ago • 2 comments

I have a dropbox business account and I'm trying to run EcoTyper example tutorial but I get an error due to the dropbox root folder name containing a space, even when I put the absolute paths between quotes.

kaizen89 avatar Jul 25 '22 12:07 kaizen89

Hi,

Thank you for reporting the issue. The error is likely produced by a bug introduced at the previous commit. The latest version should fix it. Please let us know if you encounter any issues.

Best, The EcoTyper team

BALuca avatar Jul 26 '22 19:07 BALuca

Unfortunately the issue still persists. I tried to input the absolute path name and escaping the space and ( ) but I still get an error

salmon@salmon5820:/mnt/sda3/Dropbox (U932)/myDropbox/Lab/programs/Github_tools/ecotyper$ Rscript EcoTyper_recovery_bulk.R -d Carcinoma -m "/mnt/sda3/Dropbox (U932)/myDropbox/Lab/programs/Github_tools/ecotyper/example_data/bulk_lung_data.txt" -a "/mnt/sda3/Dropbox (U932)/myDropbox/Lab/programs/Github_tools/ecotyper/example_data/bulk_lung_annotation.txt" -c Tissue -o RecoveryOutput
sh: 1: Syntax error: "(" unexpected
Error in RunJobQueue() : 
  EcoTyper failed. Please check the error message above!
Execution halted
salmon@salmon5820:/mnt/sda3/Dropbox (U932)/myDropbox/Lab/programs/Github_tools/ecotyper$ Rscript EcoTyper_recovery_bulk.R -d Carcinoma -m /mnt/sda3/Dropbox\ \(U932\)/myDropbox/Lab/programs/Github_tools/ecotyper/example_data/bulk_lung_data.txt -a "/mnt/sda3/Dropbox\ \(U932\)/myDropbox/Lab/programs/Github_tools/ecotyper/example_data/bulk_lung_annotation.txt" -c Tissue -o RecoveryOutput
Warning message:
In normalizePath(args$annotation) :
  path[1]="/mnt/sda3/Dropbox\ \(U932\)/myDropbox/Lab/programs/Github_tools/ecotyper/example_data/bulk_lung_annotation.txt": No such file or directory
Error: Error: Path to the input annotation file does not exist!
Execution halted

kaizen89 avatar Jul 27 '22 08:07 kaizen89

Hello,

EcoTyper should be able to handle spaces in path names. Please let us know if you encounter any problems with it.

Best, The EcoTyper team

BALuca avatar Apr 05 '23 18:04 BALuca