2
Copyright (C) 2009- The University of Notre Dame
3
This software is distributed under the GNU General Public License.
4
See the file COPYING for details.
7
#ifndef COMPRESSED_SEQUENCE_H
8
#define COMPRESSED_SEQUENCE_H
24
struct cseq * cseq_create( const char *name, int num_bases, short *data, const char *metadata);
25
struct cseq * cseq_copy(struct cseq *s);
26
struct cseq * seq_compress( struct seq *s );
27
struct seq * cseq_uncompress( struct cseq * c );
28
void cseq_free( struct cseq * c );
29
void cseq_write( FILE *file, struct cseq *c );
30
struct cseq * cseq_read( FILE *file );
31
void cseq_file_reset();
32
size_t cseq_size( struct cseq *c );
33
int cseq_sprint( char *buf, struct cseq *c, const char *extra_data );
35
void translate_to_str(int mer, char * str, int length);
36
int base_to_num(char base );
37
char num_to_base( int num );