-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/aertslab/CREsted
- Loading branch information
Showing
8 changed files
with
664 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
from loguru import logger | ||
|
||
from ._contribution_scores import contribution_scores | ||
from ._modisco_results import modisco_results, create_clustermap | ||
|
||
|
||
def _optional_function_warning(*args, **kwargs): | ||
logger.error( | ||
"The requested functionality requires the 'tfmodisco' package, which is not installed. " | ||
"Please install it with `pip install crested[tfmodisco]`.", | ||
) | ||
|
||
|
||
try: | ||
from ._modisco_results import create_clustermap, modisco_results | ||
except ImportError: | ||
modisco_results = _optional_function_warning | ||
create_clustermap = _optional_function_warning | ||
|
||
if modisco_results is not None: | ||
__all__ = ["contribution_scores", "modisco_results", "create_clustermap"] | ||
else: | ||
__all__ = ["contribution_scores"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.