File: orf.h

package info (click to toggle)
mothur 1.48.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,684 kB
  • sloc: cpp: 161,854; makefile: 122; sh: 31
file content (37 lines) | stat: -rwxr-xr-x 1,019 bytes parent folder | download | duplicates (9)
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
31
32
33
34
35
36
37
#ifndef orf_h
#define orf_h

#include "alpha.h"

struct ORFData
	{
	const byte *NucSeq;
	const byte *AminoSeq;
	int Frame;
	unsigned NucL;
	unsigned AminoL;
	unsigned NucLo;
	unsigned NucHi;
	ORFData *Next;

	unsigned GetNucPosFirstBase() const;
	unsigned GetAAPos(unsigned NucPos) const;
	unsigned GetCodex(unsigned NucPos) const;
	unsigned GetNucLo(unsigned AALo, unsigned AAHi) const;
	unsigned GetNucHi(unsigned AALo, unsigned AAHi) const;
	unsigned GetAALo(unsigned NucLo, unsigned NucHi) const;
	unsigned GetAAHi(unsigned NucLo, unsigned NucHi) const;
	unsigned GetNucPosFirstBaseInCodon(unsigned AAPos) const;
	unsigned GetNucPosLastBaseInCodon(unsigned AAPos) const;
	unsigned RoundToCodonLo(unsigned NucPos) const;
	unsigned RoundToCodonHi(unsigned NucPos) const;
	void LogMe() const;
	void LogMe2() const;
	};

const byte ORFEND = '.';

void GetORFs(const byte *NucSeq, unsigned NucL, vector<ORFData> &ORFs,
  unsigned ORFStyle, int FindFrame, int Sign);

#endif // orf_h