File: fasta.hh

package info (click to toggle)
tigr-glimmer 3.02-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 13,384 kB
  • ctags: 1,875
  • sloc: cpp: 12,934; awk: 232; csh: 220; makefile: 155; sh: 36
file content (40 lines) | stat: -rw-r--r-- 974 bytes parent folder | download | duplicates (14)
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
//  A. L. Delcher
//
//  File:  fasta.hh
//
//  Last Modified:  23 October 2003
//
//  Routines to manipulate FASTA format files


#ifndef  __FASTA_H_INCLUDED
#define  __FASTA_H_INCLUDED


#include  "delcher.hh"
#include  <string>
#include  <vector>


const int  DEFAULT_FASTA_WIDTH = 60;
  // Max number of characters to print on a FASTA data line
const char  QUALITY_OFFSET = '0';
  // Value added to qualities to create a printable character


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, string & q, string & hdr);
bool  Fasta_Read
    (FILE * fp, string & s, string & hdr);


#endif