Hi @hakyim ,
Inside the python script, the PrediXcanAssociation.R is called "./PrediXcanAssociation.R" which assumes that the rscript is located in the current directory where the python script is running. But this is not true in all cases. If the user calls the python script from a different directory, the script will throw an error "no such file or directory." Hence, it's better to specify the location of the Rscript explicitly. I have added two lines of code to capture the directory of python script and added that path variable to rscript.
Hi @hakyim , Inside the python script, the PrediXcanAssociation.R is called "./PrediXcanAssociation.R" which assumes that the rscript is located in the current directory where the python script is running. But this is not true in all cases. If the user calls the python script from a different directory, the script will throw an error "no such file or directory." Hence, it's better to specify the location of the Rscript explicitly. I have added two lines of code to capture the directory of python script and added that path variable to rscript.