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

Cookbook: pass full path name in commands_post() #35

Open
bdemchak opened this issue Dec 14, 2020 · 1 comment
Open

Cookbook: pass full path name in commands_post() #35

bdemchak opened this issue Dec 14, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@bdemchak
Copy link
Collaborator

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 bdemchak added the documentation Improvements or additions to documentation label Dec 14, 2020
@bdemchak
Copy link
Collaborator Author

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

No branches or pull requests

1 participant