#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "position.h"
#include "peaks.h"
Defines | |
#define | PIX_SORT(a, b) { if ((a)>(b)) PIX_SWAP((a),(b)); } |
#define | PIX_SWAP(a, b) { float temp=(a);(a)=(b);(b)=temp; } |
Functions | |
void | fillEmpties (float *PeakPosition, struct GelInfo *GelInfo) |
interpolate for any unplaced nodes (peak position == 0) | |
void | smoothPeaks (float **PeakPosition, struct GelInfo *GelInfo, int Verbose) |
compare each peak with the mean position of all other nodes in the lane and smooth the overall results by applying a 3 lane x 3 zones median filters to these differences | |
void | writeCurvature (FILE *FLAGOUT_FILE, float **PeakPosition, float *NodePosition, struct GelInfo *GelInfo) |
calculates curvature of a set of peak position and node position for all lanes and all zones | |
int | correctOutlierPeaks (float **PeakPosition, float *NodePosition, struct GelInfo *GelInfo, int Verbose) |
finds nodes showing high curvature and correct for them by forcing them to be in a straight line with their neighbours in neighbouring zones | |
findPeakPosition (FILE *FLAGOUT_FILE, float **PeakPosition, INT32 **ZoneProjection, struct GelInfo *GelInfo, float *Spacing, float minpsizefactor, int Markerinc, int Verbose) | |
Find peaks in ZoneProjections and match with nodes by closest distance to the template. |
|
finds nodes showing high curvature and correct for them by forcing them to be in a straight line with their neighbours in neighbouring zones
|
|
interpolate for any unplaced nodes (peak position == 0)
|
|
Find peaks in ZoneProjections and match with nodes by closest distance to the template. unmatch nodes are interpolated, which are marked using negative numbers
|
|
compare each peak with the mean position of all other nodes in the lane and smooth the overall results by applying a 3 lane x 3 zones median filters to these differences
|
|
calculates curvature of a set of peak position and node position for all lanes and all zones
|