py4cytoscape icon indicating copy to clipboard operation
py4cytoscape copied to clipboard

Cookbook: pass full path name in commands_post()

Open bdemchak opened this issue 4 years ago • 1 comments

I used p4c.commands_post() to import a network file that has source, target, and interaction columns that need identification. I could not use import_network_from_file() because it has no provisions for skipping rows, specifying a header row or identifying column meanings. Additionally, this meant that I had to specify the full path to the file by determining the sandbox folder path and appending the file name. For import_network_from_file(), py4cytoscape would have hidden this. This problem occurs whenever commands_post() must pass a file name, and is a useful enough pattern that it should exist in documentation or a cookbook.

Recommendation: Add cookbook example showing how to pass a full path name in commands_post() calls.

bdemchak avatar Dec 14 '20 20:12 bdemchak