forked from fjdf/slaMEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsequence.h
29 lines (27 loc) · 820 Bytes
/
sequence.h
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
typedef struct Sequence {
unsigned int size;
char *name;
char *chars;
//int rotation;
int order;
char strand;
unsigned char fileid;
fpos_t sourcefilepos;
//char *sourcefilename;
//FILE *sourcefile;
} Sequence;
int numSequences;
Sequence **allSequences;
int LoadSequencesFromFile(char *inputfilename, int loadchars, int mergeseqs, int acgtonly, unsigned int minlength, char *seqnamestring);
void DeleteAllSequences();
void LoadSequenceChars(Sequence *seq);
void FreeSequenceChars(Sequence *seq);
int GetSeqIdFromSeqName(char *seqname);
int GetSeqIdFromMergedSeqsPos(unsigned int *pos);
/*
char CharAt(int pos, int seqid);
char GetNextChar(int seqid);
int GetNextCharCode(int seqid);
*/
void SortSequences(int *seqsizes, int *sortedseqs, int numseqs);
void ReverseComplementSequence(char *text, int textsize);