transform: performance like it matters - #283
Conversation
|
Test is failing because I included a test for the complement table and it seems it was doing something I did not expect. 'U's complement is 'A'? Edit: Updated tests. I learned that Uracil binds with Adenine in RNA sequences :) |
|
A few things to change (single letter variables) - mostly interested in benchmarks. How much faster is it? |
|
I can fix variables and stuff but I'm also interested in benchmarks! Would be happy to start on a real benchmark suite for Poly @soypat. |
|
@Koeng101 @TimothyStiles I'll fix the variable names and add better documentation today- but I'd like to note that It'd be awesome to have a benchmark suite like you say to get a real taste of how performance changes affects those using the library 😄, more than happy to help out however I can. Been looking at refactoring the Benchmarks for 32byte string input (click)BeforeAfter |
|
|
||
| func TestComplementBaseError(t *testing.T) { | ||
| complementBase := ComplementBase('!') | ||
| if complementBase != ' ' { |
There was a problem hiding this comment.
@Koeng101 if complement base can't find a complement for the given nucleotide what should it return? N?
Lot of noise in this PR, sorry about that. What matters is that