File: SeqIO.h

package info (click to toggle)
soapaligner 2.20-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ansic: 10,051; makefile: 236
file content (42 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (3)
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
/*
 * =============================================================================
 *
 *       Filename:  SeqIO.h
 *
 *    Description:  
 *
 *       Revision:  none
 *       Compiler:  gcc 4.3.2 or above
 *
 *         Author:  Chang Yu (yc), yuchang@genomics.org.cn
 *        Company:  BGI Shenzhen
 *      CopyRight:  Copyright (c) 2009, BGI Shenzhen
 *
 * =============================================================================
 */

#ifndef  __SEQIO_H__
#define  __SEQIO_H__			/*  */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include "HSP.h"
#define MAX_NAME_LEN 256
#define QUERY_LEN    256
#define FASTA        0
#define FASTQ        1

typedef struct _SEQ_T_{
	int max, l, ns;
	char name[MAX_NAME_LEN];
	char *seq, *rc, *qual;
}seq_t;

int CheckFast(int fd);
int fasta(FILE *fp, seq_t *seq, const int CONV);
int fastq(FILE *fp, seq_t *seq, const int CONV);

#endif     /* -----  __SEQIO_H__  ----- */