File: gdna.h

package info (click to toggle)
libgclib 0.12.7%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,364 kB
  • sloc: cpp: 25,739; makefile: 58; sh: 20
file content (18 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef GDNA_H
#define GDNA_H
#include "GBase.h"

extern const char* IUPAC_DEFS;
extern const char* IUPAC_COMP;

char ntComplement(char c);

//in-place reverse complement of a nucleotide (sub)sequence
char* reverseComplement(char* seq, int slen=0);

bool gDnaInit();

byte gdna2bit(char* &nt, int n=4); //pack n bases into a byte (n can be 1..4)
char g2bit2base(byte v2bit); //convert the 2-bit value into 'A', 'C', 'G' or 'T'

#endif