Re:Why I Use Nim instead of Python for Data Processing
by liamwestray on Thursday September 23, 2021 @01:21PM
(#28632223)
Yeah, this is why my comment led with “I trust the author”…
I’m surprised you need the full 4 bits to deal with ambiguous bases, but it probably makes sense at some lower level I don’t understand.
Re:Why I Use Nim instead of Python for Data Processing
by benjamin-lee on Thursday September 23, 2021 @06:39PM
(#28636479)
This is because there's four bases and each can either be included or excluded from a given combination. So there are 4*2 = 16 combinations each of which with their own letter. In all honesty, these are pretty rarely used in practice these days except for N (any base) although they do sometimes show up when representing consensus sequences.
Re:Why I Use Nim instead of Python for Data Processing
by pdimitar on Saturday September 25, 2021 @08:26AM
(#28652584)
What do you mean that each base can be included or excluded? Isn't only one extra value needed? Sort of like nil?
Re:Why I Use Nim instead of Python for Data Processing
by ac29 on Saturday September 25, 2021 @12:48PM
(#28654494)
Because there are notations for any combination of bases. There's a way to indicate "C or G", "A or T", "C, G, or A", etc.
[1] https://github.com/biocore/scikit-bio/blob/b470a55a8dfd054ae...
[2] https://en.wikipedia.org/wiki/Nucleic_acid_notation
[3] https://bioinformatics.stackexchange.com/questions/225/upper...