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

Help with scoring custom sequence #153

Open
albustruong opened this issue Jan 9, 2025 · 0 comments
Open

Help with scoring custom sequence #153

albustruong opened this issue Jan 9, 2025 · 0 comments

Comments

@albustruong
Copy link

albustruong commented Jan 9, 2025

Hi Kishore,

Thanks a lot for your effort building this tool.

I've been trying to score a custom sequence using your provided script:

*from keras.models import load_model
from pkg_resources import resource_filename
from spliceai.utils import one_hot_encode
import numpy as np

input_sequence = 'CGATCTGACGTGGGTGTCATCGCATTATCGATATTGCAT'

context = 10000
paths = ('models/spliceai{}.h5'.format(x) for x in range(1, 6))
models = [load_model(resource_filename('spliceai', x)) for x in paths]
x = one_hot_encode('N'(context//2) + input_sequence + 'N'(context//2))[None, :]
y = np.mean([models[m].predict(x) for m in range(5)], axis=0)

acceptor_prob = y[0, :, 1]
donor_prob = y[0, :, 2]*

Unfortunately, I couldn't find any output in my working directory. I'm unsure whether it's because it didn't run successfully or because there were no scores to output so there's no output file. Can you help me with this?

Thanks a lot.

Albus.

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

1 participant