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

Problem while modelling #370

Open
AngieD9110 opened this issue Nov 28, 2021 · 3 comments
Open

Problem while modelling #370

AngieD9110 opened this issue Nov 28, 2021 · 3 comments

Comments

@AngieD9110
Copy link

Hi,
I am trying to test modelling with following command:
tadbit model --workdir model_Ctrl_test --input_matrix test_Ctrl_matrix.f.bed --noX --optimize --beg 0 --end 20000000 --reso 50000 --maxdist 2000:4000:100 --nmodels 20 --nkeep 20 --exp_type Hi-C --cpu 32 --force
However, an error occurred with the minimum maxdist value:
image
No matter how I adjust the minimum maxdist , the error keeps showing with only the minimum maxdist:(here I changed to 1000:4000:100)
image
Could you tell me how this happen? Many thanks!

@david-castillo
Copy link
Contributor

Hi,

Are you using the last version of TADbit (just type tadbit version)?
I remember a change back in May to keep compatibility with IMP where get_particle() was deprecated and that was changed to get().

Regards

David

@AngieD9110
Copy link
Author

Thanks so much for your response. It seems conda can only update to version 1.0. I updated the package using GitHub and it works. However, as I try to do downstream analysis(e.g. correlation real/models) with the following command:
tadbit model --workdir model_Ctrl_test --input_matrix test_Ctrl_matrix.f.bed --noX --optimize --beg 0 --end 20000000 --reso 50000 --maxdist 1000:1100:100 --nmodels 20 --nkeep 20 --exp_type Hi-C --force --model --analyze --analyze_list 2
another problem occured:
image

@david-castillo
Copy link
Contributor

Hi,

Yes, sorry, that's a bit unclear in the documentation but you should run three different commands: one for the optimization where you infer the optimal parameters, one for the creation of the final ensemble of models and one to create the analysis plots.
You can do several optimizations and tadbit will just add the combinations of parameters that haven't been tried in the previous runs. The idea is to maximize the correlation by trying different combinations of maxdist, lowfreq, upfreq and dcutoff. When you find the best correlation issue the tadbit model with --model.

tadbit model --optimize --workdir model_Ctrl_test --input_matrix test_Ctrl_matrix.f.bed --noX --beg 0 --end 20000000 --reso 50000 --maxdist 1000:1100:100 --nmodels 20 --nkeep 20 --exp_type Hi-C

tadbit model --model --workdir model_Ctrl_test --input_matrix test_Ctrl_matrix.f.bed --noX --beg 0 --end 20000000 --reso 50000 --nmodels 200 --nkeep 200 --exp_type Hi-C

tadbit model --analyze --workdir model_Ctrl_test

Regards

David

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