sigh. Next time please be more wary of wasting people's time with nonsense code. Also use code tags!
I still don't understand what this is meant to be doing
char nucl = seq[i];
char complNucl = map.at(nucl); // map.at takes an int - why is a char being passed here? You get trouble if char is signed and a negative number...
char nucl = seq[i];
char complNucl = map.at(nucl); // map.at takes an int - why is a char being passed here? You get trouble if char is signed and a negative number...
To copy to clipboard, switch view to plain text mode
def myMapper(self):
some_sensible_number = 3 # this is just an example...
opq = sequence.mid(some_sensible_number).data()
map = myMapper()
for i in range(__visible_range__): # visible range, not sequence.size() as you tried to fool us with
rdf = opq.at(i)
cl = map.at(ord(rdf)) # guessing ord is ok, might not be
def myMapper(self):
return QByteArray(256, 0)
sequence = QByteArray("ABCDESFGTTTTTT")
some_sensible_number = 3 # this is just an example...
opq = sequence.mid(some_sensible_number).data()
map = myMapper()
for i in range(__visible_range__): # visible range, not sequence.size() as you tried to fool us with
rdf = opq.at(i)
cl = map.at(ord(rdf)) # guessing ord is ok, might not be
To copy to clipboard, switch view to plain text mode
Bookmarks