This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | wildcard |
| struct | wildcardEdit |
Defines | |
| #define | encoding_nucleotide 1 |
| #define | encoding_protein 0 |
| #define | encoding_aaStartWildcards 24 |
| #define | encoding_extractBase(byte, bytePosition) ((byte >> (6 - (bytePosition * 2))) & 0x3) |
Functions | |
| void | encoding_initialize (unsigned char alphabetType) |
| unsigned char | encoding_getComplement (unsigned char code) |
| unsigned char | encoding_getCode (unsigned char letter) |
| unsigned char | encoding_getLetter (unsigned char code) |
| unsigned char | encoding_determineAlphabetType (char *sequence, uint4 sequenceSize) |
| unsigned char | encoding_randomEncodedLetter (unsigned char code) |
| void | encoding_insertWilds (unsigned char *subject, unsigned char *edits, unsigned char *endEdits) |
| unsigned char * | encoding_byteUnpack (unsigned char *bytePackedSequence, int4 sequenceLength) |
| unsigned char | encoding_bytePack (unsigned char *sequence) |
| unsigned char | encoding_bytePackRemaining (unsigned char *sequence, int4 numLetters) |
| unsigned char | encoding_bytePackBeginning (unsigned char *sequence, int4 numLetters) |
| int4 | encoding_replaceWildcards (struct memSingleBlock *wildcardEdits, unsigned char *sequence, int4 sequenceSize) |
| int4 | encoding_bytePackSequence (unsigned char *sequence, int4 sequenceSize) |
| void | encoding_printLetters (unsigned char code, int4 numLetters) |
| void | encoding_encodeSequence (char *sequence, int4 sequenceSize, uint4 alphabetType) |
| void | encoding_free () |
| unsigned char * | encoding_byteUnpackRegion (unsigned char *subject, unsigned char *bytePackedSequence, int4 sequenceLength) |
Variables | |
| packedByte * | encoding_packedByteLookup |
| unsigned char * | encoding_codesArray |
| unsigned char * | encoding_lettersArray |
| unsigned char | encoding_unknownCode |
| unsigned char | encoding_sentinalCode |
| unsigned char | encoding_numLetters |
| unsigned char | encoding_numRegularLetters |
| unsigned char | encoding_numCodes |
| unsigned char | encoding_alphabetType |
| wildcard * | encoding_wildcards |
| char * | encoding_alphabetTypes [2] |
| #define encoding_aaStartWildcards 24 |
Definition at line 32 of file encoding.h.
Referenced by cluster_addChild(), cluster_calculateSavings(), cluster_score(), readdb_getChildren(), scoreMatrix_load(), wildcards_outputWildcards(), and wildcards_readWildcards().
| #define encoding_extractBase | ( | byte, | |||
| bytePosition | ) | ((byte >> (6 - (bytePosition * 2))) & 0x3) |
Definition at line 57 of file encoding.h.
Referenced by nuGappedScoring_dpAfterSeed(), nuGappedScoring_dpBeforeSeed(), and nuGappedScoring_score().
| #define encoding_nucleotide 1 |
Definition at line 30 of file encoding.h.
Referenced by alignments_createNew(), blast_search(), determineDbAlphabetType(), dust_dustSequence(), encoding_determineAlphabetType(), encoding_free(), encoding_initialize(), gappedScoring_score(), hitMatrix_initialize(), hitMatrix_reinitialize(), main(), parameters_free(), parameters_loadDefaults(), print_constructAlignment(), PSSMatrix_create(), PSSMatrix_free(), statistics_calculateUngappedKarlinParameters(), unpack_free(), wordLookupDFA_build(), and writedb_addSequence().
| #define encoding_protein 0 |
Definition at line 31 of file encoding.h.
Referenced by alignments_findGoodAlignments(), blast_search(), determineDbAlphabetType(), encoding_determineAlphabetType(), encoding_initialize(), encoding_randomEncodedLetter(), hitMatrix_free(), main(), print_constructAlignment(), print_gappedExtension(), print_XMLheader(), readdb_nextVolume(), readdb_open(), statistics_initialize(), ungappedExtension_findSeed(), unpack_loadSubject(), unpack_unpackSubject(), wordLookupDFA_print(), writedb_close(), and writedb_initialize().
| unsigned char encoding_bytePack | ( | unsigned char * | sequence | ) | [inline] |
Definition at line 391 of file encoding.c.
Referenced by encoding_bytePackSequence(), nucleotideLookup_build(), and PSSMatrix_create().
00392 { 00393 return (*sequence << 6) | (*(sequence + 1) << 4) | (*(sequence + 2) << 2) | *(sequence + 3); 00394 }
Here is the caller graph for this function:

| unsigned char encoding_bytePackBeginning | ( | unsigned char * | sequence, | |
| int4 | numLetters | |||
| ) | [inline] |
Definition at line 418 of file encoding.c.
Referenced by PSSMatrix_create().
00419 { 00420 if (numLetters == 1) 00421 { 00422 return *sequence; 00423 } 00424 else if (numLetters == 2) 00425 { 00426 return *(sequence + 1) | (*sequence << 2); 00427 } 00428 else if (numLetters == 3) 00429 { 00430 return *(sequence + 2) | (*(sequence + 1) << 2) | (*sequence << 4); 00431 } 00432 else // numLetters = 4 00433 { 00434 return *(sequence + 3) | (*(sequence + 2) << 2) | (*(sequence + 1) << 4) | (*sequence << 6); 00435 } 00436 }
Here is the caller graph for this function:

| unsigned char encoding_bytePackRemaining | ( | unsigned char * | sequence, | |
| int4 | numLetters | |||
| ) | [inline] |
Definition at line 397 of file encoding.c.
Referenced by encoding_bytePackSequence(), and PSSMatrix_create().
00398 { 00399 if (numLetters == 1) 00400 { 00401 return (*sequence << 6); 00402 } 00403 else if (numLetters == 2) 00404 { 00405 return (*(sequence + 1) << 4) | (*sequence << 6); 00406 } 00407 else if (numLetters == 3) 00408 { 00409 return (*(sequence + 2) << 2) | (*(sequence + 1) << 4) | (*sequence << 6); 00410 } 00411 else // numLetters = 4 00412 { 00413 return *(sequence + 3) | (*(sequence + 2) << 2) | (*(sequence + 1) << 4) | (*sequence << 6); 00414 } 00415 }
Here is the caller graph for this function:

| int4 encoding_bytePackSequence | ( | unsigned char * | sequence, | |
| int4 | sequenceSize | |||
| ) |
Definition at line 469 of file encoding.c.
References encoding_bytePack(), encoding_bytePackRemaining(), and int4.
Referenced by writedb_addSequence().
00470 { 00471 int4 count = 0; 00472 00473 // For each group of four letters 00474 while (count < sequenceSize / 4) 00475 { 00476 sequence[count] = encoding_bytePack(sequence + count * 4); 00477 count++; 00478 } 00479 00480 // Pack any remaining 1 to 3 letters 00481 if (sequenceSize % 4) 00482 { 00483 sequence[count] = encoding_bytePackRemaining(sequence + count * 4, sequenceSize % 4); 00484 count++; 00485 } 00486 00487 return count; 00488 }
Here is the call graph for this function:

Here is the caller graph for this function:

| unsigned char* encoding_byteUnpack | ( | unsigned char * | bytePackedSequence, | |
| int4 | sequenceLength | |||
| ) |
Definition at line 375 of file encoding.c.
References encoding_byteUnpackRegion(), and global_malloc().
Referenced by main(), and search_nucleotideSsearch().
00376 { 00377 unsigned char* subject; 00378 00379 subject = global_malloc(sizeof(char) * sequenceLength); 00380 encoding_byteUnpackRegion(subject, bytePackedSequence, sequenceLength); 00381 00382 return subject; 00383 }
Here is the call graph for this function:

Here is the caller graph for this function:

| unsigned char* encoding_byteUnpackRegion | ( | unsigned char * | subject, | |
| unsigned char * | bytePackedSequence, | |||
| int4 | sequenceLength | |||
| ) |
Definition at line 321 of file encoding.c.
References packedByte::codes, encoding_packedByteLookup, and int4.
Referenced by encoding_byteUnpack(), unpack_extendRegionEnd(), unpack_extendRegionStart(), and unpack_unpackSubject().
00323 { 00324 unsigned char *subjectPosition; 00325 int4 packedCount = 0; 00326 int4 numPackedBytes, numRemaining; 00327 00328 subjectPosition = subject; 00329 00330 // Calculate packed length and remainder 00331 numPackedBytes = sequenceLength / 4; 00332 numRemaining = sequenceLength % 4; 00333 00334 // For each packed byte 00335 while (packedCount < numPackedBytes) 00336 { 00337 // Copy the value to the subject sequence 00338 memcpy(subjectPosition, encoding_packedByteLookup[bytePackedSequence[packedCount]].codes, 00339 sizeof(char) * 4); 00340 00341 subjectPosition+=4; 00342 packedCount++; 00343 } 00344 00345 // Unpack last 1-3 letters 00346 if (numRemaining) 00347 { 00348 if (numRemaining == 1) 00349 { 00350 *subjectPosition = (bytePackedSequence[packedCount] >> 6); 00351 packedCount++; 00352 } 00353 else if (numRemaining == 2) 00354 { 00355 *subjectPosition = (bytePackedSequence[packedCount] >> 6); 00356 subjectPosition++; 00357 *subjectPosition = (bytePackedSequence[packedCount] >> 4) & 0x3; 00358 packedCount++; 00359 } 00360 else if (numRemaining == 3) 00361 { 00362 *subjectPosition = (bytePackedSequence[packedCount] >> 6); 00363 subjectPosition++; 00364 *subjectPosition = (bytePackedSequence[packedCount] >> 4) & 0x3; 00365 subjectPosition++; 00366 *subjectPosition = (bytePackedSequence[packedCount] >> 2) & 0x3; 00367 packedCount++; 00368 } 00369 } 00370 00371 return subject; 00372 }
Here is the caller graph for this function:

| unsigned char encoding_determineAlphabetType | ( | char * | sequence, | |
| uint4 | sequenceSize | |||
| ) |
Definition at line 230 of file encoding.c.
References encoding_nucleotide, encoding_nuLettersArray, encoding_nuNumLetters, encoding_nuNumRegularLetters, encoding_protein, and int4.
Referenced by determineDbAlphabetType(), and main().
00231 { 00232 int4 letterCount, alphabetCount, matches = 0, wildchars = 0; 00233 char letter; 00234 00235 // Go through the sequence and check it for non-nucleic characters 00236 letterCount = 0; 00237 while (letterCount < sequenceSize) 00238 { 00239 letter = sequence[letterCount]; 00240 00241 // For each regular nucleic letter 00242 alphabetCount = 0; 00243 while (alphabetCount <= encoding_nuNumRegularLetters) 00244 { 00245 // Check for a match 00246 if (toupper(letter) == encoding_nuLettersArray[alphabetCount]) 00247 matches++; 00248 00249 alphabetCount++; 00250 } 00251 00252 // For each wildcard character 00253 while (alphabetCount < encoding_nuNumLetters) 00254 { 00255 // Check for a match 00256 if (toupper(letter) == encoding_nuLettersArray[alphabetCount]) 00257 wildchars++; 00258 00259 alphabetCount++; 00260 } 00261 00262 letterCount++; 00263 } 00264 00265 // printf("[%d,%d,%d]\n", matches, wildchars, sequenceSize); 00266 00267 // If not all nucleotide chars or less than 90% are G,A,T,C or N this is a protein query 00268 if (matches + wildchars < sequenceSize || matches < sequenceSize * 0.9) 00269 { 00270 return encoding_protein; 00271 } 00272 00273 return encoding_nucleotide; 00274 }
Here is the caller graph for this function:

| void encoding_encodeSequence | ( | char * | sequence, | |
| int4 | sequenceSize, | |||
| uint4 | alphabetType | |||
| ) |
Definition at line 505 of file encoding.c.
References wildcardEdit::code, encoding_codesArray, and int4.
Referenced by dust_dustSequence(), and main().
00506 { 00507 int4 count; 00508 unsigned char code; 00509 00510 // Convert letters to codes 00511 count = 0; 00512 while (count < sequenceSize) 00513 { 00514 code = encoding_codesArray[(unsigned char)(sequence[count])]; 00515 sequence[count] = code; 00516 count++; 00517 } 00518 }
Here is the caller graph for this function:

| void encoding_free | ( | ) |
Definition at line 521 of file encoding.c.
References wildcardEdit::code, encoding_alphabetType, encoding_codesArray, encoding_complements, encoding_nucleotide, encoding_numLetters, encoding_packedByteLookup, and encoding_wildcards.
Referenced by main().
00522 { 00523 unsigned char code; 00524 00525 free(encoding_codesArray); 00526 free(encoding_packedByteLookup); 00527 00528 if (encoding_alphabetType == encoding_nucleotide) 00529 free(encoding_complements); 00530 00531 code = 0; 00532 while (code < encoding_numLetters) 00533 { 00534 // Declare memory for regular codes 00535 free(encoding_wildcards[code].replacementCodes); 00536 code++; 00537 } 00538 }
Here is the caller graph for this function:

| unsigned char encoding_getCode | ( | unsigned char | letter | ) |
Definition at line 215 of file encoding.c.
References encoding_codesArray.
Referenced by encoding_initialize(), PSSMatrix_create(), scoreMatrix_load(), and wildcards_initialize().
00216 { 00217 return encoding_codesArray[letter]; 00218 }
Here is the caller graph for this function:

| unsigned char encoding_getComplement | ( | unsigned char | code | ) |
Definition at line 209 of file encoding.c.
References encoding_complements.
Referenced by print_constructAlignment(), and PSSMatrix_create().
00210 { 00211 return encoding_complements[code]; 00212 }
Here is the caller graph for this function:

| unsigned char encoding_getLetter | ( | unsigned char | code | ) |
Definition at line 221 of file encoding.c.
References encoding_lettersArray, and encoding_numCodes.
Referenced by chooseWilds_printOccurenceMatrix(), encoding_printLetters(), nucleotideLookup_print(), print_constructAlignment(), print_singleSequence(), scoreMatrix_print(), wildcards_outputWildcards(), wildcards_printWildcard(), wordLookupDFA_print(), and wordLookupDFA_printCodes().
00222 { 00223 if (code < encoding_numCodes) 00224 return encoding_lettersArray[code]; 00225 else 00226 return '_'; 00227 }
Here is the caller graph for this function:

| void encoding_initialize | ( | unsigned char | alphabetType | ) |
Definition at line 97 of file encoding.c.
References packedByte::codes, encoding_aaLettersArray, encoding_aaNumCodes, encoding_aaNumLetters, encoding_aaNumRegularLetters, encoding_aaSentinalCode, encoding_aaUnknownCode, encoding_aaWildcards, encoding_alphabetType, encoding_codesArray, encoding_complements, encoding_getCode(), encoding_lettersArray, encoding_nucleotide, encoding_nuComplementsArray, encoding_nuLettersArray, encoding_numCodes, encoding_numLetters, encoding_numRegularLetters, encoding_nuNumCodes, encoding_nuNumLetters, encoding_nuNumRegularLetters, encoding_nuSentinalCode, encoding_nuUnknownCode, encoding_nuWildcards, encoding_packedByteLookup, encoding_protein, encoding_sentinalCode, encoding_unknownCode, encoding_wildcards, global_malloc(), int4, wildcard::letter, wildcard::replacementCodes, wildcard::replacementCounter, and wildcard::replacements.
Referenced by main().
00098 { 00099 unsigned char letter = 0, code = 0, count; 00100 int4 packedByte; 00101 00102 // Record alphabet type 00103 encoding_alphabetType = alphabetType; 00104 00105 if (encoding_alphabetType == encoding_protein) 00106 { 00107 // Use amino acid alphabet 00108 encoding_lettersArray = encoding_aaLettersArray; 00109 encoding_unknownCode = encoding_aaUnknownCode; 00110 encoding_sentinalCode = encoding_aaSentinalCode; 00111 encoding_numLetters = encoding_aaNumLetters; 00112 encoding_numRegularLetters = encoding_aaNumRegularLetters; 00113 encoding_numCodes = encoding_aaNumCodes; 00114 encoding_wildcards = encoding_aaWildcards; 00115 } 00116 else 00117 { 00118 // Use nucleotide alphabet 00119 encoding_lettersArray = encoding_nuLettersArray; 00120 encoding_unknownCode = encoding_nuUnknownCode; 00121 encoding_sentinalCode = encoding_nuSentinalCode; 00122 encoding_numLetters = encoding_nuNumLetters; 00123 encoding_numRegularLetters = encoding_nuNumRegularLetters; 00124 encoding_numCodes = encoding_nuNumCodes; 00125 encoding_wildcards = encoding_nuWildcards; 00126 00127 // Construct byte unpack table 00128 encoding_packedByteLookup = (struct packedByte*)global_malloc(sizeof(struct packedByte) * 256); 00129 00130 // For each packed byte 00131 packedByte = 0; 00132 while (packedByte < 256) 00133 { 00134 // Store unpacked codes 00135 encoding_packedByteLookup[packedByte].codes[0] = (packedByte >> 6) & 0x3; 00136 encoding_packedByteLookup[packedByte].codes[1] = (packedByte >> 4) & 0x3; 00137 encoding_packedByteLookup[packedByte].codes[2] = (packedByte >> 2) & 0x3; 00138 encoding_packedByteLookup[packedByte].codes[3] = packedByte & 0x3; 00139 00140 packedByte++; 00141 } 00142 } 00143 00144 // Create array for translating amino acid characters into the related byte code 00145 encoding_codesArray = (unsigned char*)global_malloc(256); 00146 00147 // Iterate for each possible character value 00148 while (letter < 255) 00149 { 00150 // By default use unknown code (eg. U or N) 00151 encoding_codesArray[letter] = encoding_unknownCode; 00152 00153 // If a valid code (found by looking up lettersArray) 00154 code = 0; 00155 while (code < encoding_numCodes) 00156 { 00157 if (toupper(letter) == encoding_lettersArray[code]) 00158 { 00159 // Add to codes array 00160 encoding_codesArray[letter] = code; 00161 } 00162 code++; 00163 } 00164 letter++; 00165 } 00166 00167 // Initialize array for converting wildcards to regular letters 00168 code = 0; 00169 while (code < encoding_numLetters) 00170 { 00171 // Declare memory for regular codes 00172 encoding_wildcards[code].replacementCodes = (char*)global_malloc(sizeof(char) * 00173 encoding_wildcards[code].numCodes); 00174 00175 // Initialize replacement counter 00176 encoding_wildcards[code].replacementCounter = 0; 00177 00178 // For each regular letter 00179 count = 0; 00180 while (count < encoding_wildcards[code].numCodes) 00181 { 00182 // Convert to encoded form 00183 encoding_wildcards[code].replacementCodes[count] 00184 = encoding_codesArray[encoding_wildcards[code].replacements[count]]; 00185 00186 count++; 00187 } 00188 code++; 00189 } 00190 00191 // Construct complements array 00192 if (encoding_alphabetType == encoding_nucleotide) 00193 { 00194 encoding_complements = (unsigned char*)global_malloc(sizeof(unsigned char) * encoding_numLetters); 00195 00196 // For each code 00197 code = 0; 00198 while (code < encoding_numLetters) 00199 { 00200 // Store the code of the complement 00201 encoding_complements[code] = encoding_getCode(encoding_nuComplementsArray[code]); 00202 00203 code++; 00204 } 00205 } 00206 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void encoding_insertWilds | ( | unsigned char * | subject, | |
| unsigned char * | edits, | |||
| unsigned char * | endEdits | |||
| ) | [inline] |
Definition at line 299 of file encoding.c.
References uint4, and vbyte_getVbyte.
Referenced by search_nucleotideSsearch().
00301 { 00302 uint4 wildcardPosition; 00303 unsigned char wildcard; 00304 00305 // For each edit 00306 while (edits < endEdits) 00307 { 00308 // Read wildcard 00309 wildcard = *edits; 00310 edits++; 00311 00312 // Read its position 00313 vbyte_getVbyte(edits, &wildcardPosition); 00314 00315 // Add wildcard 00316 subject[wildcardPosition] = wildcard; 00317 } 00318 }
Here is the caller graph for this function:

| void encoding_printLetters | ( | unsigned char | code, | |
| int4 | numLetters | |||
| ) |
Definition at line 491 of file encoding.c.
References encoding_getLetter().
Referenced by ungappedExtension_nucleotideExtend().
00492 { 00493 if (numLetters > 0) 00494 printf("%c", encoding_getLetter((code >> 6) & 0x3)); 00495 if (numLetters > 1) 00496 printf("%c", encoding_getLetter((code >> 4) & 0x3)); 00497 if (numLetters > 2) 00498 printf("%c", encoding_getLetter((code >> 2) & 0x3)); 00499 if (numLetters > 3) 00500 printf("%c", encoding_getLetter(code & 0x3)); 00501 fflush(stdout); 00502 }
Here is the call graph for this function:

Here is the caller graph for this function:

| unsigned char encoding_randomEncodedLetter | ( | unsigned char | code | ) |
Definition at line 277 of file encoding.c.
References encoding_alphabetType, encoding_protein, encoding_wildcards, wildcard::replacementCodes, and wildcard::replacementCounter.
Referenced by dust_dustSequence(), encoding_replaceWildcards(), and PSSMatrix_create().
00278 { 00279 // For protein alphabet use robinson&robinson frequencies 00280 if (encoding_alphabetType == encoding_protein) 00281 { 00282 encoding_wildcards[code].replacementCounter++; 00283 if (encoding_wildcards[code].replacementCounter >= encoding_wildcards[code].numCodes) 00284 encoding_wildcards[code].replacementCounter = 0; 00285 00286 return encoding_wildcards[code].replacementCodes[encoding_wildcards[code].replacementCounter]; 00287 } 00288 else 00289 { 00290 encoding_wildcards[code].replacementCounter++; 00291 if (encoding_wildcards[code].replacementCounter >= encoding_wildcards[code].numCodes) 00292 encoding_wildcards[code].replacementCounter = 0; 00293 00294 return encoding_wildcards[code].replacementCodes[encoding_wildcards[code].replacementCounter]; 00295 } 00296 }
Here is the caller graph for this function:

| int4 encoding_replaceWildcards | ( | struct memSingleBlock * | wildcardEdits, | |
| unsigned char * | sequence, | |||
| int4 | sequenceSize | |||
| ) |
Definition at line 439 of file encoding.c.
References wildcardEdit::code, encoding_numRegularLetters, encoding_randomEncodedLetter(), int4, memSingleBlock_newEntry(), memSingleBlock::numEntries, and wildcardEdit::position.
Referenced by main().
00441 { 00442 struct wildcardEdit* wildcardEdit; 00443 int4 count = 0; 00444 00445 // Initialize list of wildcard edits 00446 wildcardEdits->numEntries = 0; 00447 00448 // First scan through sequence and replace wilds 00449 while (count < sequenceSize) 00450 { 00451 // If a wild 00452 if (sequence[count] >= encoding_numRegularLetters) 00453 { 00454 // Record location and code of wild 00455 wildcardEdit = memSingleBlock_newEntry(wildcardEdits); 00456 wildcardEdit->code = sequence[count]; 00457 wildcardEdit->position = count; 00458 00459 // Code replacement 00460 sequence[count] = encoding_randomEncodedLetter(sequence[count]); 00461 } 00462 count++; 00463 } 00464 00465 return wildcardEdits->numEntries; 00466 }
Here is the call graph for this function:

Here is the caller graph for this function:

| unsigned char encoding_alphabetType |
Definition at line 19 of file encoding.c.
Referenced by alignments_createNew(), alignments_findGoodAlignments(), blast_search(), encoding_free(), encoding_initialize(), encoding_randomEncodedLetter(), gappedScoring_score(), hitMatrix_free(), hitMatrix_initialize(), hitMatrix_reinitialize(), main(), parameters_free(), print_constructAlignment(), print_gappedExtension(), print_XMLheader(), PSSMatrix_create(), PSSMatrix_free(), readdb_nextVolume(), statistics_calculateUngappedKarlinParameters(), statistics_initialize(), ungappedExtension_findSeed(), unpack_free(), unpack_loadSubject(), unpack_unpackSubject(), wordLookupDFA_build(), and wordLookupDFA_print().
| char* encoding_alphabetTypes[2] |
| unsigned char* encoding_codesArray |
Definition at line 15 of file encoding.c.
Referenced by encoding_encodeSequence(), encoding_free(), encoding_getCode(), and encoding_initialize().
| unsigned char* encoding_lettersArray |
Definition at line 16 of file encoding.c.
Referenced by encoding_getLetter(), and encoding_initialize().
| unsigned char encoding_numCodes |
Definition at line 18 of file encoding.c.
Referenced by cluster_buildPSSM(), encoding_getLetter(), encoding_initialize(), PSSMatrix_print(), scoreMatrix_create(), scoreMatrix_load(), and scoreMatrix_print().
| unsigned char encoding_numLetters |
Definition at line 18 of file encoding.c.
Referenced by chooseWilds_printOccurenceMatrix(), cluster_averageWildcodeScore(), encoding_free(), encoding_initialize(), main(), scoreMatrix_load(), wildcards_averageResidueWildMatch(), wildcards_countBits(), wildcards_initializeCountOccurences(), wildcards_outputWildcards(), wildcards_printWildcard(), wildcards_scoreCandidates(), and wildcards_scoreResidueWildMatch().
| unsigned char encoding_numRegularLetters |
Definition at line 18 of file encoding.c.
Referenced by dust_dustSequence(), encoding_initialize(), encoding_replaceWildcards(), index_processQuery(), main(), PSSMatrix_create(), scoreMatrix_create(), statistics_calculateUngappedKarlinParameters(), and wordLookupDFA_getNeighbours().
| struct packedByte* encoding_packedByteLookup |
Definition at line 13 of file encoding.c.
Referenced by encoding_byteUnpackRegion(), encoding_free(), and encoding_initialize().
| unsigned char encoding_sentinalCode |
Definition at line 17 of file encoding.c.
Referenced by encoding_initialize(), main(), PSSMatrix_create(), readdb_getChildren(), scoreMatrix_create(), scoreMatrix_load(), writedb_addSequence(), writedb_close(), and writedb_initialize().
| unsigned char encoding_unknownCode |
| struct wildcard* encoding_wildcards |
Definition at line 20 of file encoding.c.
Referenced by encoding_free(), encoding_initialize(), encoding_randomEncodedLetter(), and scoreMatrix_create().
1.5.2