Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing >2 species #62

Open
idlutz opened this issue Dec 7, 2023 · 2 comments
Open

Optimizing >2 species #62

idlutz opened this issue Dec 7, 2023 · 2 comments

Comments

@idlutz
Copy link

idlutz commented Dec 7, 2023

Thanks for making this, just the tool I was looking for!

However, both the web app and the python package throw an error when trying to optimize for >2 species:

ERROR - Request failed with status code: 500
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Is this functionality supported by the tool?

@nleroy917
Copy link
Owner

Hey @idlutz thanks for opening up an issue.

Are you able to give me some data you used as input so I may try to reproduce this? It should definitely work with >2 species.

Let me know and I'll look into it!

@idlutz
Copy link
Author

idlutz commented Dec 7, 2023

Thanks for getting back so quickly.

Here is an example that produces an error using the python package:

import optipyzer

api = optipyzer.API()

protein_seq = "EVQLVESGGGLVQPGRSLRLSCAASGFTFDDYAMHWVRQAPGKGLEWVSAITWNSGHIDYADSVEGRFTISRDNAKNSLYLDMNSLRAEDTAVYYCAKVSYLSTASSLDYWGQGTLVTVSSASTKGPSVFPLAPSSKSTSGGTAALGCLVKDYFPEPVTVSWNSGALTSGVHTFPAVLQSSGLYSLSSVVTVPSSSLGTQTYICNVNHKPSNTKVDKKI"

result = api.optimize(
    seq=protein_seq,
    seq_type="protein",
    weights={"e_coli":1, "human": 1, "yeast":1},
)
print(result['optimized_sd'])

The web app also produces an error with the same example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants