Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bsmap/reads.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (34 sloc)
715 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _READS_H_ | |
#define _READS_H_ | |
#include<iostream> | |
#include<fstream> | |
#include<string> | |
#include<vector> | |
#include "param.h" | |
#include "sam.h" | |
#include "gzstream.h" | |
using namespace std; | |
const bit32_t BatchNum=50000; | |
struct ReadInf | |
{ | |
bit32_t index; | |
bit32_t readset; //added by yxi | |
string name; | |
string seq; | |
string qual; | |
}; | |
class ReadClass | |
{ | |
public: | |
ReadClass(); | |
void InitIndex(ifstream &fin, igzstream &gzfin, string filename); | |
int LoadBatchReads(ifstream &fin, igzstream &gzfin, int mode); | |
public: | |
vector<ReadInf> mreads; | |
bit32_t num; | |
bit32_t _index; | |
//added by yxi, for BAM input support | |
samfile_t *SAM_fp; | |
bam1_t *SAM_b; | |
}; | |
#endif //_READS_H_ |