When filtering a VCF file to only specific RSIDs, it is useful to ensure the RSIDs are in a set object as the performance boost from O(1) vs O(n) can make a big difference to performance, especially when using larger number of RSIDs. By using a frozenset it also ensures that this collection can't be accidentally modified elsewhere.
When filtering a VCF file to only specific RSIDs, it is useful to ensure the RSIDs are in a
set
object as the performance boost from O(1) vs O(n) can make a big difference to performance, especially when using larger number of RSIDs. By using afrozenset
it also ensures that this collection can't be accidentally modified elsewhere.