You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: