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

Darts_DNN predict:AssertionError #25

Open
COOL005 opened this issue Dec 1, 2024 · 0 comments
Open

Darts_DNN predict:AssertionError #25

COOL005 opened this issue Dec 1, 2024 · 0 comments

Comments

@COOL005
Copy link

COOL005 commented Dec 1, 2024

Hello, I used the result file JC.raw.input.RI.txt of the latest version of rmats-turbo to run Darts_BHT bayes_infer --rmats-count JC.raw.input.RI.txt --od /path/to/output --annot fromGTF.RI.txt -t RI -c 0.05 --nthread 8.
My samples include 4 control group samples and 4 disease group samples. The result file I got looks like this:

ID I1 S1 I2 S2 inc_len skp_len rho psi1 psi2 mu.mle delta.mle post_pr
chr1:-:1083914:1084383:1083914:1084086:1084352:1084383 1,9,14,2 0,0,2,0 3,8,30,10 0,0,0,0 298 149 0.5 1,1,0.778,1 1,1,1,1 0.9444 0.0556 0.724

In this file, columns like I1, S1, I2, S2, psi1, and psi2 contain comma-separated values (e.g., 1,9,14,2 represents values for 4 samples). However, I’m not sure if this format is compatible with Darts_DNN predict -i RI.darts_bht.flat.txt -e RBP_max_TPM.txt -o pred.txt -t RI, since it’s giving me the following error:

Darts_DNN predict -i RI.darts_bht.flat.txt -e RBP_max_TPM.txt -o pred.txt -t RI
Using Theano backend.
2024-12-01 22:39:49,311 - Darts_DNN.predict - INFO -
empirical_data=RI.darts_bht.flat.txt
2024-12-01 22:39:49,311 - Darts_DNN.predict - INFO -
model=/path/to/.darts/DNN/v0.1.0/trainedParam/RI-trainedParam-EncodeRoadmap.h5
2024-12-01 22:39:52,493 - Darts_DNN.predict - INFO -
reading cis and trans feaures for type RI
2024-12-01 22:39:52,498 - Darts_DNN.predict - INFO -
read cis-features
2024-12-01 22:39:54,886 - Darts_DNN.predict - INFO -
constructing in-memory feature matrix
Traceback (most recent call last):
File "/path/to/miniconda3/envs/darts/bin/Darts_DNN", line 4, in
import('pkg_resources').run_script('Darts-DNN==0.1.0', 'Darts_DNN')
File "/path/to/miniconda3/envs/darts/lib/python2.7/site-packages/pkg_resources/init.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/path/to/miniconda3/envs/darts/lib/python2.7/site-packages/pkg_resources/init.py", line 1469, in run_script
exec(script_code, namespace, namespace)
File "/path/to/miniconda3/envs/darts/lib/python2.7/site-packages/Darts_DNN-0.1.0-py2.7.egg/EGG-INFO/scripts/Darts_DNN", line 192, in

File "/path/to/miniconda3/envs/darts/lib/python2.7/site-packages/Darts_DNN-0.1.0-py2.7.egg/EGG-INFO/scripts/Darts_DNN", line 44, in main

File "/path/to/miniconda3/envs/darts/lib/python2.7/site-packages/Darts_DNN-0.1.0-py2.7.egg/Darts_DNN/Darts_pred.py", line 103, in parser
File "/path/to/miniconda3/envs/darts/lib/python2.7/site-packages/Darts_DNN-0.1.0-py2.7.egg/Darts_DNN/utils.py", line 305, in construct_training_data_from_label
AssertionError

If the error is related to the comma-separated values for 4 samples, how should I handle this? Should I take the sum or average of the values? Or is this error unrelated to that? I’ve already checked that all my files match the format of the provided test data.I am looking forward to and greatly appreciate your response and assistance.

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