hakyim / TO-DELETE-PrediXcan

Code for the in-dev PrediXcan Project
MIT License
28 stars 83 forks source link

Location of the PrediXcanAssociation.R #18

Closed drveera closed 8 years ago

drveera commented 8 years ago

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.