egeulgen / pathfindR

pathfindR: Enrichment Analysis Utilizing Active Subnetworks
https://egeulgen.github.io/pathfindR/
Other
179 stars 25 forks source link

Error in file(con, "wb") : cannot open the connection #170

Closed lucasrocmoreira closed 1 year ago

lucasrocmoreira commented 1 year ago

Hi,

I'm using pathfindR to look at enrichment for different gene expression data sets and have not had problems until now.

I'm running the following command:

output_df <- run_pathfindR(input_df.squirrel_32,
                           gene_sets = "GO-BP",
                           p_val_threshold = 0.05,
                           max_to_plot = 10,
                           output_dir = "fold_change_ANOVA/pathfindR_Results_GO-BP.squirrel_DOWN-32")

and I get the following error:

## Testing input
The input looks OK
## Processing input. Converting gene symbols,
          if necessary (and if human gene symbols provided)
Number of genes provided in input: 616
Number of genes in input after p-value filtering: 616
pathfindR cannot handle p values < 1e-13. These were changed to 1e-13
Could not find any interactions for 3 (0.49%) genes in the PIN
Final number of genes in input: 613
## Performing Active Subnetwork Search and Enrichment
## Processing the enrichment results over all iterations
## Annotating involved genes and visualizing enriched terms
Error in file(con, "wb") : cannot open the connectionpolymerase activity                                                                                                                                                                                                          
In addition: Warning message:
In file(con, "wb") :
  cannot open file 'term_visualizations/positive_regulation_of_DNA-directed_DNA_polymerase.png': No such file or directory

Do you have any idea of what could be causing the problem?

Thanks so much, Lucas

egeulgen commented 1 year ago

Can you update to the latest version of pathfindR? If I’m not mistaken, this issue was fixed. In the latest version, (among other differences) term visualization is not part of the main function but a separate step. Let me know if the issue persists in the latest version by reopening the issue