Skip to content

Flipkin: Add binary command detection for reduce, probe, and prekin.#8

Open
jaredsampson wants to merge 1 commit into
rlabduke:masterfrom
jaredsampson:flipkin-binary-detection
Open

Flipkin: Add binary command detection for reduce, probe, and prekin.#8
jaredsampson wants to merge 1 commit into
rlabduke:masterfrom
jaredsampson:flipkin-binary-detection

Conversation

@jaredsampson

Copy link
Copy Markdown

For users without a PHENIX installation, hard-coding phenix.xxx paths in the flipkin script (added in 7c39436) is problematic and requires either tinkering with the source or installing an outdated version.

To remedy this, I patched Flipkin to check the shell PATH for standalone and PHENIX-associated executables (e.g. reduce and phenix.reduce) in that order, and use the first one found to execute the program calls. If neither option is found, it now dies with an error asking to please install the program in question.

@jaredsampson jaredsampson changed the title Add binary command detection for reduce, probe, and prekin. Flipkin: Add binary command detection for reduce, probe, and prekin. Jan 11, 2017
Check for standalone and PHENIX-associated executables (e.g. 'reduce' and 'phenix.reduce') in that order, and uses the first one found to execute the program calls.  If neither option is found, dies with an error.
@jaredsampson jaredsampson force-pushed the flipkin-binary-detection branch from 0a68e65 to 44006a4 Compare July 25, 2017 03:39
@jaredsampson

Copy link
Copy Markdown
Author

Hi MolProbity devs - Have you considered incorporating this change (or one like it) to allow flipkin to use standalone (i.e. non-Phenix) versions of reduce, probe, and prekin? In writing the PyMOLProbity plugin (MolProbity-style visualization for PyMOL), I wanted to allow people to use the plugin without installing all of Phenix, so I patched Flipkin and linked to my fork in the installation instructions. It'd be nice to be able to point them to the official distribution instead. Let me know if you have any concerns or suggestions...Perl isn't my native language... @rlabduke @bhintze @chrissciwilliams

@rfenwickab rfenwickab left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems sensible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants