Entering edit mode
7.1 years ago
wfd
•
0
Hi there,
For my recent GATB project I'd like to either create a Sequence object [with comment(id and such), possibly quality and a given string] or manipulate the sequence string of an existing Sequence. However, while there are setters for quality and comment, I do not know how to set the data itself. Is there a way to do it?
I tried creating a sequence using a dummy bank with just one sequence like this;
Sequence str2seq(string str){
IBank *dummyBank = new BankStrings(str.c_str(), NULL);
LOCAL (dummyBank);
Iterator<Sequence> *it = dummyBank->iterator();
LOCAL (it);
it->first();
Sequence seq = it->item();
seq.setComment("DUMMYCOMMENT");
return seq;
}
But the returned Sequence is corrupted - pointers, I guess?
Thanks for your help
seems to work, thanks!