ma-compbio / Phylo-HMGP

MIT License
3 stars 1 forks source link

Problem specifying root path #1

Open gavrielm opened 4 years ago

gavrielm commented 4 years ago

I am not able to specify a custom root path using the "--root_path" option. Each time I try using it, I get the following error message: there is no such file input_example/sig.feature.1.txt

I looked at the phylo_hmgp.py script and line 1445 shows the following: filename1 = "input_example/sig.feature.1.txt"

I see similar code for inputting the other data files.

Does this mean that the script is hardcoded to read in the example data files? If so, can this be changed to allow the user to input his/her own data files?

Thank you

yangymargaret commented 4 years ago

Hi @gavrielm, Thank you very much for finding this problem. I do apologize for the delay of my reply. I am sorry that the original script did not use 'root_path' correctly. I have updated the code accordingly. The user can input his/her own data files using a specified directory. Please see if the updated code works. Please let me know if there are any other questions. Many thanks!

Best regards! Yang Yang