FeGenie icon indicating copy to clipboard operation
FeGenie copied to clipboard

Permission denied when moving files

Open aidanfoo96 opened this issue 2 years ago • 6 comments

Hi Arkadiy, thanks very much for developing this great tool :)

I'm trying to implement FeGenie, however, near the end of the analysis this error is raised:

`Pre-processing of final outout file Counting heme-binding motifs mv: cannot move '../results/fegenie/FeGenie-summary-blasthits.csv/FeGenie-summary-blasthits.csv' to '../results/fegenie/FeGenie-summary-blasthits.csv/FeGenie-summary.csv': Permission denied Final processing of output

Traceback (most recent call last): File "/home/fooa/miniconda3/envs/fegenie/bin/FeGenie.py", line 3020, in main() File "/home/fooa/miniconda3/envs/fegenie/bin/FeGenie.py", line 1641, in main infile = open(outDirectory + "/FeGenie-summary.csv") FileNotFoundError: [Errno 2] No such file or directory: '../results/fegenie/FeGenie-summary-blasthits.csv/FeGenie-summary.csv'`

I still get the cluster.csv file but the summary.csv file is empty. I have a feeling this might be due to the server I'm using at my uni, but wondering if this is a problem you've encountered before or might have a solution for?

Thanks

Aidan

aidanfoo96 avatar Mar 24 '22 16:03 aidanfoo96

Hi Aidan,

Thanks for your interest in FeGenie! This looks like an interesting error, which I've never encountered before.

It looks like a permissions thing, so if you try running on this a personal machine, then you might avoid running into this. In any case, could you please paste into chat the command that you used for this run.

Thanks! Arkadiy

Arkadiy-Garber avatar Mar 24 '22 18:03 Arkadiy-Garber

Hi! I am having nearly the exact same issue except I am on my personal laptop and not a cluster. I don't know what's wron g here exactly so any help would be appreciated!!!

DrRumble avatar May 04 '22 12:05 DrRumble

Thanks DrRumble, could you please share the command that you used for your FeGenie run?

Arkadiy-Garber avatar May 05 '22 01:05 Arkadiy-Garber

Hi,

I am facing a similar issue. In the FeGenie-heatmap-data I can see that there are many missing values in cases that there were multiple hits according to the individual hmmer searches. The error messages that I get in the end is:

mv: cannot move '/Desktop/FeGenie/output/AC-MGN_MB.9.faa-HMM' to /Desktop/FeGenie/output/HMM_results/AC-MGN_MB.9.faa-HMM': Permission denied Writen summary to file: /Desktop/FeGenie/output/FeGenie-geneSummary-clusters.csv for visual inspection Writen summary to file: /Desktop/FeGenie/output/FeGenie-geneSummary.csv for downstream parsing and analyses Writing heatmap-formatted output file: /Desktop/FeGenie/output/FeGenie-heatmap-data.csv

The command that I used is: FeGenie.py -bin_dir /Desktop/FeGenie/FeGenietest/ -bin_ext faa -out /Desktop/FeGenie/output --orfs -t 4

anestiskos avatar Jul 04 '24 15:07 anestiskos

Hi, thanks for following up on this issue.

based on your command above, it looks like the issue is arising from the fact that you are instructing FeGenie to write files in the root directory of your system, where it might not have the correct permissions.

If I am interpreting your command correctly, because your output path /Desktop/FeGenie/FeGenietest/ begins with a forward slash /, it is attempting to create files in the incorrect place. I believe the correct filepath should be instead: ~/Desktop/FeGenie/FeGenietest/ and ~/Desktop/FeGenie/output, that should correctly place the results in your home directory, not the root.

Let me know if that works! Arkadiy

Arkadiy-Garber avatar Jul 04 '24 22:07 Arkadiy-Garber

Hi Arkadiy,

I followed your recommendations. The analysis went through, but it still was not able to compile the final file with the stats. I tackled it by saving the temporary summary file and then used it to make the heatmap data.

Thanks a lot, Kostas

anestiskos avatar Jul 05 '24 15:07 anestiskos