Skip to content

WIP: Motif search - #1549

Open
mkonstanty wants to merge 11 commits into
prody:mainfrom
mkonstanty:motif_search
Open

WIP: Motif search#1549
mkonstanty wants to merge 11 commits into
prody:mainfrom
mkonstanty:motif_search

Conversation

@mkonstanty

Copy link
Copy Markdown

This feature adds possibility to search for a MOTIF using Prody package.

@jamesmkrieger jamesmkrieger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this new functionality. It sounds good. I still need to look through it properly though.

In the meantime, if you could reverse all the unrelated formatting changes, that would be make it much easier to follow. Thanks

Comment thread prody/sequence/__init__.py Outdated
Comment thread prody/sequence/motif.py Outdated
Comment thread docs/conf.py Outdated
Comment thread prody/database/__init__.py Outdated
Comment thread prody/utilities/__init__.py Outdated
Comment thread prody/utilities/helpers.py Outdated
Comment thread prody/database/refseq.py Outdated
Comment thread prody/database/refseq.py Outdated
@jamesmkrieger

Copy link
Copy Markdown
Contributor

Everything look much better now. Thanks.

Still if you could replace f strings with older types of formatting, that would be great. We need compatibility with python 2.7 for building the prody website.

@jamesmkrieger
jamesmkrieger self-requested a review July 28, 2026 14:04
@jamesmkrieger
jamesmkrieger marked this pull request as ready for review July 28, 2026 14:04
Comment thread prody/sequence/motif.py
@@ -0,0 +1,491 @@
# -*- coding: utf-8 -*-

"""This module prase protein sequences using PROSITE motifs."""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a typo here. prase is not a word that I know. Do you mean parse? If so, it should be conjugated as parses

Comment thread prody/database/refseq.py
from concurrent.futures import ThreadPoolExecutor

import requests
import requests_cache

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's best to make these changes inside your function to not make importing prody fail if someone doesn't install this module.

return compression_type


def openFile(filename: str) -> Any:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This takes precedence over the existing openFile in prody/utilities/pathtools because of the import order and breaks other code because it doesn't support other arguments like the original does. Rename or remove it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants