rnabioco / djvdj

An R package to analyze single-cell V(D)J data
https://rnabioco.github.io/djvdj
Other
23 stars 4 forks source link

Mutation frequencies #132

Closed kwells4 closed 1 year ago

kwells4 commented 1 year ago

Currently mutation frequencies are being calculated based on the length of the regions that have mutations. For example, if mutations are seen in the V, D, and J region, the calculation is

mut_freq = n_mutations / (v_length + j_length + d_length)

But if mutations are only seen in the V region, the calculation is

mut_freq = n_mutations / (v_length)

Should be updated so that the denominator is always (v_length + j_length + d_length) no matter what mutations are seen. If no D gene is present, this will just b 0.

sheridar commented 1 year ago

Thanks @kwells4! #133