[go: up one dir, main page]

Menu

[9bd658]: / src / Common / fasta.hh  Maximize  Restore  History

Download this file

52 lines (40 with data), 1.2 kB

 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// A. L. Delcher
//
// File: fasta.h
//
// Last Modified: 25 November 2002
//
// Routines to manipulate FASTA format files
#ifndef __FASTA_HH
#define __FASTA_HH
#include "delcher.hh"
#include <string>
#include <vector>
#include <cstring>
const int DEFAULT_FASTA_WIDTH = 60;
// Max number of characters to print on a FASTA data line
char Complement
(char ch);
void Fasta_Print
(FILE * fp, const char * s, const char * hdr = NULL,
int fasta_width = DEFAULT_FASTA_WIDTH);
void Fasta_Print_N
(FILE * fp, const char * s, int n, const char * hdr = NULL,
int fasta_width = DEFAULT_FASTA_WIDTH);
void Fasta_Print_Skip
(FILE * fp, const char * s, const char * skip, const char * hdr = NULL,
int fasta_width = DEFAULT_FASTA_WIDTH);
bool Fasta_Qual_Read
(FILE * fp, std::string & q, std::string & hdr);
bool Fasta_Read
(FILE * fp, std::string & s, std::string & hdr);
void Reverse_Complement
(char * s);
void Reverse_Complement
(std::string & s);
void Reverse_String
(char * s);
void Reverse_String
(std::string & s);
int Fasta_Read_String (FILE *, char * &, long int &, char [], int);
#endif // #ifndef __FASTA_HH