Skip to main content

StrucGAP

Structural and site-specific Glycoproteomics Analysis Platform

StrucGAP is a modular toolkit for downstream analysis of glycoproteomics data. It includes support for preprocessing, glycan structure analysis, quantification, network visualization, functional annotation, and more.

View the documentation for more information.

Installation

pip install strucgap

Troubleshooting

StrucGAP works successfully on Python 3.7, 3.8, 3.9, 3.10,
but for stability we recommend Python 3.9 or 3.10.

Most errors are caused by incompatible versions of NumPy and pandas.

  • For Python 3.7 and 3.8 → use NumPy 1.18.1
  • For Python 3.9 and 3.10 → use NumPy 1.26.4
  • For all Python versions → use pandas 1.3.5

Q1: ModuleNotFoundError: No module named 'statsmodels'

A1:

pip install statsmodels

Q2: ImportError: Missing optional dependency 'openpyxl'

A2:

pip install openpyxl

Q3: TypeError: loop of ufunc does not support argument 0 of type float which has no callable log2 method

A3:

pip install numpy==1.26.4
pip install pandas==1.3.5

Q4: ModuleNotFoundError: No module named 'importlib.metadata'

Cause: This package is included in the Python standard library only since version 3.8.

A4:

pip install importlib-metadata==6.7.0

Q5: During installation, I see errors mentioning Rust or Cargo. Do StrucGAP or gseapy depend on Rust?

Cause: Neither StrucGAP nor gseapy requires Rust directly. However, in some environments pip may try to compile dependencies from source (instead of using pre-built wheels). When that happens, Rust may be required if the dependency’s source build involves it.

A5: Alternatively, ensure that your environment has access to the official Python package index (PyPI) so wheels can be downloaded.
If compilation still occurs, you may need to install Rust temporarily, but this is not normally required.

Q6: TypeError: loop of ufunc does not support argument 0 of type float which has no callable log2 method

A6:

pip install pandas==1.3.5

Q7: ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall when execute pip install strucgap.

A7:

pip install --ignore-installed llvmlite

Q8: OSError: no library called "cairo-2" was found no library called "cairo" was found no library called "libcairo-2" was found cannot load library 'libcairo.so.2': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2' cannot load library 'libcairo.2.dylib': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.2.dylib' cannot load library 'libcairo-2.dll': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo-2.dll' when execute pip install strucgap.

A8:

conda install -c conda-forge cairo

If your problem is not listed here, please open a GitHub Issue with your error message and environment details (Python version, OS, and package versions).

Metadata

Release files for strucgap 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strucgap 1.1.7
File Size Uploaded
strucgap-1.1.7.tar.gz 185.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strucgap 1.1.7
File Interpreter ABI Platform
strucgap-1.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 375.4 kB

Release files / strucgap-1.1.7.tar.gz

Download URL strucgap-1.1.7.tar.gz
Size 185.4 kB
Tags Source
SHA-256 checksum
How to use checksums
06fc541a588cbc1596d7f93cb5eaa972c73ed226fd3a2f33a972213e17843b57
BLAKE2b-256 checksum
How to use checksums
19d16a43e096af239f307dc3fc144594f1bfbf8b8aec30f0785f17198f175353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / strucgap-1.1.7-py3-none-any.whl

Download URL strucgap-1.1.7-py3-none-any.whl
Size 190.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0a24821724f687873b633814cd85f173f2414b6923b4574afa3b30f057c8879
BLAKE2b-256 checksum
How to use checksums
70fc96cccd7128322a3c2214be45658915bcf404768014590491f33ff47009df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page