[go: up one dir, main page]

File: ErrorCorrection.h

package info (click to toggle)
lighter 1.1.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,052 kB
  • sloc: cpp: 4,103; sh: 35; makefile: 19
file content (30 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _MOURI_ERROR_CORRECTION
#define _MOURI_ERROR_CORRECTION

#include <stdio.h>

#include "Store.h"
#include "KmerCode.h"
#include "Reads.h"

struct _ErrorCorrectionThreadArg
{
	int kmerLength ;
	Store *trustedKmers ;
	struct _Read *readBatch ;
	int batchSize ;
	int batchUsed ;
	int batchFinished ;
	char badQuality ;

	pthread_mutex_t *lock ;
} ;


void *ErrorCorrection_Thread( void *arg ) ;

//@ return:0: this read is correct. -1-this read is unfixable. Otherwise, return the number 
// of corrected positions.
int ErrorCorrection_Wrapper( char *read, char *qual, KmerCode& kmerCode, char badQuality, Store *kmers, int &badPrefix, int &badSuffix, int &info ) ;

#endif