qmarcou / IGoR

IGoR is a C++ software designed to infer V(D)J recombination related processes from sequencing data. Find full documentation at:
https://qmarcou.github.io/IGoR/
GNU General Public License v3.0
47 stars 25 forks source link

Visualising insertion distributions with IGoR #9

Closed willbradshaw closed 4 years ago

willbradshaw commented 6 years ago

Hi there,

I'm trying to access the insertion/deletion/gene-choice/etc probabilities from an inferred IGoR model for visualisation using pygor. I imported the pygor.models.genmodel.GenModel object and ran

g = GenModel(<path_to_parms_file>,<path_to_marginals_file>)

for the final_parms.txt and final_marginals.txt files in the igor/evaluate directory. Sticking with VD-insertions for now as an example, I could find two entries that looked promising:

To get from here to a plot I need some more information about how data is organised in the GenModel object, which I'd be grateful if you could shed some light on:

Some of these questions are probably redundant. :-)

Thanks! Will

qmarcou commented 6 years ago

Hi Will, Indeed your three questions can be answered by a single answer:

These properties are the same than the ones described for the C++ interface: https://github.com/qmarcou/IGoR#inference-and-evaluation-output

The fact that for insertions the 3 properties are equal is true only if the model has been constructed in a special way defining a range of authorized number of insertions. Bottom line: stick with using R.index even for insertions

Hope this helps