I was looking at CN events and I encountered an issue.
The setting is quite simple, I have a population that have a 2:1 event in a portion of the 22nd chromosome and therefore I expect the clonal mutations to be distributed around .33 and .66 of the VAF range.
The problem is that if I do not rebuild the mutation engine from scratch (i.e. if I do not rebuild the Test folder) the VAF spectrum is wrong.
I report here two VAF spectra examples. The first one is perfect while the second one is wrong.
Here is the code to reproduce the error. To observe the bad behaviour is necessary to run the code at least once (in order to build the Test folder) and then re run it with the CLEAN_FOLDER flag set to False (at the top of the file)
I was looking at CN events and I encountered an issue. The setting is quite simple, I have a population that have a 2:1 event in a portion of the 22nd chromosome and therefore I expect the clonal mutations to be distributed around .33 and .66 of the VAF range. The problem is that if I do not rebuild the mutation engine from scratch (i.e. if I do not rebuild the Test folder) the VAF spectrum is wrong.
I report here two VAF spectra examples. The first one is perfect while the second one is wrong.
Here is the code to reproduce the error. To observe the bad behaviour is necessary to run the code at least once (in order to build the Test folder) and then re run it with the CLEAN_FOLDER flag set to False (at the top of the file)