Set.dir not working

I am trying to set the input directory as follows:

mothur > set.dir(input=/users/hiraabid/desktop/mothur/M06339_Run_192-Semrau_Soil_Microcosm/)

Mothur’s directories:

inputdir=

/users/hiraabid/desktop/mothur/M06339_Run_192-Semrau_Soil_Microcosm/

After this I entered the command get.current() and still the current working directory is /users/hiraabid/desktop/mothur

I also entered the command system(ls) as follows

mothur > system(ls)

LICENSE

M06339_Run_192-Semrau_Soil_Microcosm

commandScreen.output

fasterq-dump

mothur

mothur.1651078319.logfile

prefetch

uchime

It is still in the mothur file and not going to this file “M06339_Run_192-Semrau_Soil_Microcosm”. I am providing the whole path in set.dir command but still It is unable to access this “M06339_Run_192-Semrau_Soil_Microcosm” file.

Below is a screen shot of mothur file that is opened from desktop. This file “M06339_Run_192-Semrau_Soil_Microcosm” is located in it and mothur is unable to access it. Please tell me if i am missing something.

Hi - the working directory is the directory you are in. Why not use cd to change to the directory you want and run mothur from there?

Pat

1 Like

Thank you for replying. The command is working now.
Regards
Hira

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.