This file is indexed.

/usr/include/libGenome-1.3/libGenome/gnPosSpecificTranslator.h is in libgenome-1.3-dev 1.3.1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/////////////////////////////////////////////////////////////////////////////
// File:            gnPosSpecificTranslator.h
// Purpose:         Special case ORF translation
// Description:     Used to translate sequences differently based on the position of
//					input characters.  Useful for tranlating genes because the first
//					codon is translated differently
// Changes:        
// Version:         libGenome 0.5.1 
// Author:          Aaron Darling 
// Modified by:     
// Copyright:       (c) Aaron Darling 
// Licenses:        See COPYING file for details 
/////////////////////////////////////////////////////////////////////////////
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifndef _gnPosSpecificTranslator_h_
#define _gnPosSpecificTranslator_h_


#include "libGenome/gnDefs.h"

#include <string>
#include <vector>
#include <map>
#include "libGenome/gnClone.h"
#include "libGenome/gnBaseFilter.h"
#include "libGenome/gnFastTranslator.h"


namespace genome {

/** 
 * Used to translate sequences differently based on the position of
 * input characters.  Useful for tranlating genes because the first
 * codon is translated differently.
 */
class GNDLLEXPORT gnPosSpecificTranslator : public gnBaseFilter
{
public:

	static const gnPosSpecificTranslator *ProteinDNATranslator();
	static const gnPosSpecificTranslator *DNAProteinTranslator();

	enum gnTranslatorType{
		ProteinDNATranslatorType,
		DNAProteinTranslatorType,
	};

	gnPosSpecificTranslator();
	gnPosSpecificTranslator( gnTranslatorType t_type );
	gnPosSpecificTranslator( const gnPosSpecificTranslator& sf );
	gnPosSpecificTranslator& operator= (const gnPosSpecificTranslator& sf);
	gnPosSpecificTranslator* Clone() const;
	

	// gnSeqC 
	virtual gnSeqC Filter( const gnSeqC ch ) const;

	virtual void Filter( gnSeqC** seq, gnSeqI& len ) const;
	// std::string
	virtual void Filter( std::string &seq ) const;

private:
	gnTranslatorType m_type;	// defines the type of translator this is
	const gnBaseFilter* filter;		// this is the filter used to do the translation
	void CreateProteinDNATranslator();
	void CreateDNAProteinTranslator();

};//class gnPosSpecificTranslator

inline
gnPosSpecificTranslator* gnPosSpecificTranslator::Clone() const
{
	return new gnPosSpecificTranslator(*this);
}


}	// end namespace genome

#endif // _gnPosSpecificTranslator_h_