cyto to gis is a small package to convert .cyjs files from Cytoscape to .geojson Objects.
Project description
Cyto to GIS
Convert Cytoscape .cyjs files to GeoJSON objects
Overview
Cyto to GIS is a Python package that facilitates the conversion of Cytoscape .cyjs files into GeoJSON objects to use in QGIS. It provides functionality to extract node and edge data from Cytoscape JSON representations and transform them into GeoJSON features for geographical information systems (GIS) applications.
Usage
Example for Using cyto_to_qgis:
from cytogis import GISManager
# Configure your input and output paths
CONFIG = {
"cyto_path": "YOUR_PATH_TO_cyjs_FILE",
"coord_path": "YOUR_PATH_TO_COORDINATES_CSV",
"out_path_nodes": "YOUR_PATH_TO_OUTPUT_NODES",
"out_path_edges": "YOUR_PATH_TO_OUTPUT_EDGES",
"lat_long_cols": ("your column name for latitude", "your column name for longitude"),
"cols_to_drop": ["your", "cols", "to", "drop"] # optional
}
# Instantiate GIS Manager
gis = GISManager(CONFIG)
# Process edges
edges_collection = gis.create_features_edges()
edges_collection.save_geojson(CONFIG["out_path_edges"])
# Process nodes
nodes_collection = gis.create_features_nodes()
nodes_collection.save_geojson(CONFIG["out_path_nodes"])
Contributing
Contributions are welcome!
Bug Reports and Feature Requests
If you encounter any issues or have ideas for improvements, please open an issue.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cytogis-0.1.0.tar.gz
.
File metadata
- Download URL: cytogis-0.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e607630f9f1ecec50c1a4bf5c1fbcfefa641b53194b737a8962e6cd00d4c9811 |
|
MD5 | 1c849e654d05f292c0843981db6b5595 |
|
BLAKE2b-256 | 704e81239d93fb534d77ae146c05b3edb53c05c26981e4c5813e7a8616a7d812 |
File details
Details for the file cytogis-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: cytogis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9964824ee820d569418de1da9af38384aad799b21e154d369696bd26c731c7fb |
|
MD5 | 0e2ce514411e3a2f9d992d4077dcdd9f |
|
BLAKE2b-256 | 353a6fbf1311dffc0bd9c45d396edb938ec30e276c3f2cc5adbf20b2091e8c02 |