-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9b7b9a1
Showing
16 changed files
with
2,720 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Methods related to alignment and string operations | ||
#ifndef _LSONG_ALIGNMENT_HEADER | ||
#define _LSONG_ALIGNMENT_HEADER | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#include "KmerCode.h" | ||
#include "SimpleVector.h" | ||
#include "defs.h" | ||
|
||
void ReverseComplement( char *s, int len ) ; | ||
|
||
// We had a kmer hit from pa and pb on the two sequences. | ||
// Then we can decide whether these two sequences are from the strand or not. | ||
bool IsSameStrand( char *sa, index_t pa, char *sb, index_t pb, int kmerLength ) ; | ||
|
||
// Is sequence sa and sb similar and overlapped? | ||
// The overlapped region are stored in rangeA and rangeB for sequence A, B | ||
// hits hold the kmer hits offset, a for seqA, b for seqB. | ||
bool IsOverlap( SimpleVector< struct _pair > &hits, bool sameStrand, int minHitRequired, struct _pair &rangeA, struct _pair &rangeB, SimpleVector< struct _pair > *retLIS ) ; | ||
|
||
int GlobalAlignment( char *t, int lent, char *p, int lenp, char *align ) ; | ||
int GlobalAlignment_classic( char *t, int lent, char *p, int lenp, char *align ) ; | ||
void VisualizeAlignment( char *t, int lent, char *p, int lenp, char *align ) ; | ||
#endif |
Oops, something went wrong.