Skip to content
Roman Chernyatchik edited this page Jul 25, 2019 · 6 revisions

About

SnakeCharm is a plugin for PyCharm / IntelliJ Platform IDEs which adds support for Snakemake workflows language

Installation

See README.md

Setup Snakemake support

To enable all code insight features (e.g. code completion for directory, touch etc methods) please configure Python SDK with installed snakemake package.

Otherwise not all smart code insight features will be enabled and you could see errors like Unresolved reference for all snakemake specific methods.

In PyCharm:

  • Open PyCharm | Preferences | Project: <name> | Project Interpreter

    alt text

  • Press gear icon and choose 'Add..'

  • Select Python Interpreter, e.g. Conda Environment | Existing environment | Interpreter: some conda env with snakemake package installed. Press OK.

    alt text

  • Ensure that project interpreter is set. Press OK.

    alt text

  • Wait until indexing and updating python library skeletons has finished

    alt text

Example: Snakemake support is configured:

Code completion works for Snakemake specific methods and usages of these methods not highlighted with Unresolved reference error.

alt text

Example: Interpreter with snakemake not configured:

In this case not all smart code insight features are enabled and you could see errors like Unresolved reference for all snakemake specific methods.

alt text