Changeset 821 for cpp/frams/genetics/fB
- Timestamp:
- 10/10/18 01:13:05 (6 years ago)
- Location:
- cpp/frams/genetics/fB
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fB/fB_conv.cpp
r802 r821 163 163 fHgenotype.getNextToken(fHpos, line, '\n'); 164 164 map->add(ranges[t][q].begin, ranges[t][q].end, lastpos, fHpos - 1); 165 lastpos = fHpos; 165 166 } 166 167 } -
cpp/frams/genetics/fB/fB_oper.cpp
r802 r821 39 39 } 40 40 41 bool Geno_fB::hasStick( SStringgenotype)41 bool Geno_fB::hasStick(const SString &genotype) 42 42 { 43 43 for (int i = 0; i < fB_GenoHelpers::geneCount(genotype); i++) … … 194 194 } 195 195 196 SString Geno_fB::detokenizeSequence(std::list<SString> tokenlist)196 SString Geno_fB::detokenizeSequence(std::list<SString> *tokenlist) 197 197 { 198 198 SString res = ""; 199 for (std::list<SString>::iterator it = tokenlist .begin(); it != tokenlist.end(); it++)199 for (std::list<SString>::iterator it = tokenlist->begin(); it != tokenlist->end(); it++) 200 200 { 201 201 res += (*it); … … 204 204 } 205 205 206 std::list<SString> Geno_fB::tokenizeSequence( SStringgenotype)206 std::list<SString> Geno_fB::tokenizeSequence(const SString &genotype) 207 207 { 208 208 std::list<SString> res; … … 278 278 chg = (double)def.len() / line.len(); 279 279 } 280 line = detokenizeSequence( tokenized);280 line = detokenizeSequence(&tokenized); 281 281 break; 282 282 } … … 297 297 tokenized.insert(it, res); 298 298 chg = (double)classdef.len() / line.len(); 299 line = detokenizeSequence( tokenized);299 line = detokenizeSequence(&tokenized); 300 300 break; 301 301 } … … 312 312 letter.directWrite()[0] = 'a' + randomN(26); 313 313 tokenized.insert(it, letter); 314 line = detokenizeSequence( tokenized);314 line = detokenizeSequence(&tokenized); 315 315 break; 316 316 } … … 323 323 std::advance(it, rndid); 324 324 tokenized.erase(it); 325 line = detokenizeSequence( tokenized);325 line = detokenizeSequence(&tokenized); 326 326 break; 327 327 } … … 363 363 // SString result = line.substr(0, cuts[0]) + second + 364 364 // line.substr(cuts[1], cuts[2] - cuts[1]) + first + line.substr(cuts[3]); 365 line = detokenizeSequence( res);365 line = detokenizeSequence(&res); 366 366 chg = (float)(cuts[3] - cuts[2] + cuts[1] - cuts[0]) / line.len(); 367 367 break; -
cpp/frams/genetics/fB/fB_oper.h
r797 r821 30 30 { 31 31 private: 32 bool hasStick( SStringgenotype);33 SString detokenizeSequence(std::list<SString> tokenlist);34 std::list<SString> tokenizeSequence( SStringgenotype);32 bool hasStick(const SString &genotype); 33 SString detokenizeSequence(std::list<SString> *tokenlist); 34 std::list<SString> tokenizeSequence(const SString &genotype); 35 35 36 36 public:
Note: See TracChangeset
for help on using the changeset viewer.