File: TUReadSeq.h

package info (click to toggle)
gentle 1.9%2Bcvs20100605%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 11,512 kB
  • sloc: cpp: 41,571; ansic: 3,978; sh: 1,420; makefile: 294
file content (38 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (7)
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
/** \file
	\brief The TUReadSeq class
*/
#ifndef _TUREADSEQ_H_
#define _TUREADSEQ_H_

#include "main.h"

class TGenBank ;

/// This is a wrapper class for ureadseq, which can read many sequence formats
class TUReadSeq
    {
    public :
    TUReadSeq ( wxString _filename = _T("") ) ; ///< Constructor
	~TUReadSeq () {} ; ///< Destructor (empty)

    void getFormat () ; ///< Try to determine format
    int getSequenceNames () ; ///< Get the names of the sequences
    void getSequences () ; ///< Get the sequences
    void convert ( TGenBank &gb ) ; ///< Convert the sequences to GenBank format

    static int getSeqType ( wxString t ) ; ///< Return the sequence type
    
    short error ; // Parsing error
    
    private :
    wxString filename ; ///< Name of source file
    short format ;
	 short numseqs ;
    long skiplines ;
    wxArrayString seq_names ;
	 wxArrayString seqs ;
    } ;


#endif