Closed kwells4 closed 1 year ago
could you please add a test or two for the new include_constant
argument?
Added! It just simply calculates the number of "all" mutations with and without including the constant region and makes sure it matches the output. There was also a warning about many of the values in mut_coords
mapping to the values in vdj_coords
. This seemed like the expected behavior to me (as many mutations will be in one region and if the mutation is in the junction, one mutation will be in many regions), so I also added relationship = "many-to-many
to line 967 of import_vdj
. Let me know if you don't agree with this logic and I can remove it.
The "many-to-many" warnings are from changes in how dplyr deals with joins: https://dplyr.tidyverse.org/news/index.html#dplyr-111
Thanks @kwells4! Based on your comments I think everything sounds good, I'll review the code and merge next week
Addresses #132
Adds one argument,
include_constant
toimport_vdj
. This can be removed. At the moment it allows the user to also include mutations in the constant region.If
include_constant = TRUE
:If
include_constant = FALSE
(the default):