Closed mauriciolp closed 11 months ago
Hi mauriciolp. Apologies for the slow reply here, tail end of the quarter and only recently had time. Easiest way to do this is just calculating new scale and shift parameters using something like linear regression. I performed quick calculations comparing our model to the ONT one you attached.
Shift = -9.17455 Scale = 0.1003
To convert Xenomorph to ONT range: new_mean = (old_mean - shift) / scale
To convert ONT to Xenomorph range: new_mean = old_mean*shift + scale
As a good gut check, this the result of scaling our 9.4.1 4-mer ATGC model and comparing it to ONT's 9.4.1 6-mer ATGC model:
Hello, I have run your script to generate the kmer model as instructed at "Generate XNA model from raw reads and a reference FASTA", which outputs a file with the following content:
However, I was wondering if it would be possible to extract a model with the same format and signal values as the template provided by ONT, for example, what can be found at file "kmers/9.4_6mers_450bps.txt":
In other words, is it possible to convert the signals at "Mean/Std level" from file 1 to the same range of values expected at "level_mean/stdv" from file 2?