Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query_pan_genome 'Cant access file' error (Non-Working-Directory inputs) #421

Closed
SomeoneInParticular opened this issue Sep 24, 2018 · 4 comments

Comments

@SomeoneInParticular
Copy link

SomeoneInParticular commented Sep 24, 2018

Hello Developers,

I have been trying to run roary as part of a Snakemake workflow, and was trying to use query_pan_genome to identify the core genome of subsets of samples in the run.
Trying to run

'query_pan_genome -a intersection -o path/to/output -g run_tag/annotations/roary/clustered_proteins run_tag/annotations/prokka/file1.gff,run_tag/annotations/prokka/file2.gff'

Results in the following error:

Error: Cant access file run_tag/annotations/prokka/file1.gff,run_tag/annotations/prokka/file2.gff

All of the paths are relative to the working directory of the pipeline, and a double checked that they all existed and were formatted correctly for the program.

The files in the roary and prokka directories were generated by roary and prokka, respectively, and I have not deleted any of the files they produced (though I did move the roary files into their appropriate directory to bypass issue #404, using the standard bash 'mv' command)

Let me know if you need any other details or information regarding this issue!

Best Regards,

Kalum

P.S. Forgot to mention I had also tried providing full, explicit paths for all directories (rather than paths relative to the working directory); this also did not work.

@tseemann
Copy link
Contributor

@SomeoneInParticular I don't think roary works with relative or absolute pths, the gff files need to be in the current directory.

@SomeoneInParticular
Copy link
Author

Ah, alright. Would the program work with soft linked files then @tseemann?

@tseemann
Copy link
Contributor

I think symlinks work yes - i have to do this in Nullarbor to make roary work.

@SomeoneInParticular
Copy link
Author

I just tried it out; as long as all the symlinks for the gff files are in the same folder it will work happilly. The roary protein_cluster file can be in a different directory, however, which is a bit unusual.

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants