File: RepeatMatch.cpp

package info (click to toggle)
libmems 1.6.0%2B4725-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,120 kB
  • sloc: cpp: 21,579; ansic: 4,312; xml: 115; makefile: 103; sh: 26
file content (51 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download | duplicates (6)
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
43
44
45
46
47
48
49
50
51
/*******************************************************************************
 * $Id: Match.cpp,v 1.9 2004/03/01 02:40:08 darling Exp $
 * This file is copyright 2002-2007 Aaron Darling and authors listed in the AUTHORS file.
 * Please see the file called COPYING for licensing, copying, and modification
 * Please see the file called COPYING for licensing details.
 * **************
 ******************************************************************************/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "libMems/RepeatMatch.h"
#include "libGenome/gnException.h"
#include "libGenome/gnDebug.h"

namespace mems {

RepeatMatch::RepeatMatch() : MatchHashEntry()
{
}

RepeatMatch::~RepeatMatch(){

}

void RepeatMatch::FromSeq( uint32 match_id, uint32 seq_id )
{
// unsure what to do with this:  (it doesn't compile)
//	this->m_seq_id.insert( match_id, seq_id);

}

uint32 RepeatMatch::SeqId( uint32 match_id )
{
	return this->m_seq_id.at(match_id);

}

std::ostream& operator<<(std::ostream& os, const RepeatMatch& mhe){ //write to stream.
	os << mhe.Length();
	for(uint32 i=0; i < mhe.SeqCount(); i++)
	{
		
		//if ( mhe.Start(i) < 
		os << '\t' << mhe.Start(i);
	}
	return os;
}

}	// namespace mems