a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
1.02k stars 131 forks source link

Add extras flag for optional imports #248

Open a-r-j opened 1 year ago

a-r-j commented 1 year ago

Some modules reference optional dependencies. These messages are communicated to users via this function:

https://github.com/a-r-j/graphein/blob/840ec27dc82684cce5cab9e3604062ce852ae4aa/graphein/utils/utils.py#L326

We should add an extras arg to this function indicating whether or not the dependency would be installed with:

pip install graphein[extras]