Skip to content

Network Analyzer Fails with JSONDecodeError if network name contains escape #114

@WeiJun428

Description

@WeiJun428

When analyzing a network with the analyze_network function in py4cytoscape, the command fails with the following error if the network name contains an escape character:

'analyze_network' exception JSONDecodeError('Invalid \\escape: line 3 column 45 (char 58)')

For example, the subnetwork name attr_name_in_^(Cyto|S\ cape)$ triggers this error. The same network runs analyzer successfully in the GUI, indicating that the issue is specific to py4cytoscape’s command module, which interacts with Cytoscape via cyREST.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions