* raw_graphs[5] = { 0, 0, 0, 0, 0 };
117chgr_handle =
m_Handle.GetScope().GetBioseqHandle(trace_chgr_id);
133 int type= it->second;
134raw_graphs[
type+ 1] = &graph;
145 for(
CGraph_CIgraph_iter(chgr_handle, sel); graph_iter; ++graph_iter) {
146 const CSeq_graph& graph = graph_iter->GetOriginalGraph();
156 int type= it->second;
157raw_graphs[
type+ 1] = &graph;
166 int len= 0, sig_len = 0;
168 boolb_conf = raw_graphs[0] !=
NULL;
172 len= (
int)values.size();
176 for(;
i< 5 && raw_graphs[
i] ==
NULL;
i++) {};
177 boolb_ch = (
i< 5);
179 double A= raw_graphs[
i]->
GetA();
182sig_len = (
int)values.size();
190p_data->
Init(0,
len- 1, sig_len);
195 for(
i= 0;
i<
len;
i++) {
199 for(
i= 1;
i< 5 && b_ch;
i++) {
200 boolb_calc_pos =
false;
201 if(raw_graphs[
i]) {
212 for(
intj = 0; j < sig_len; j++) {
213positions[j] = K_pos * j;
219 for(
intj = 0; j < sig_len; j++) {
220data_values[j] = K * ((
unsignedchar)values[j]);
237 const CSeq_id&
id=
dynamic_cast<const CSeq_id&
>(
object.object.GetObject());
244 static stringsid(
"seqgraphic_trace_graph_ds_type");
251 static stringslabel(
"Graphical View Trace Graph Data Source Type");
267 _ASSERT(to >= from && samples >= 0);
308vector<TConfidence>::const_iterator it = max_element(
m_Confs.begin(),
m_Confs.end());
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
objects::CBioseq_Handle m_Handle
TValues & GetValues(EChannel signal)
vector< TSignalValue > TValues
vector< TFloatSeqPos > TPositions
TConfidence GetMaxConfidence() const
TPositions & GetPositions()
TSignalValue GetMax(EChannel signal) const
void SetConfidence(TSignedSeqPos pos, TConfidence conf)
vector< TConfidence > m_Confs
void Init(TSignedSeqPos from, TSignedSeqPos to, int samples)
CSGTraceData.
TConfidence m_MaxConfidence
void SetTitle(const string &title)
TSignedSeqPos GetSeqLength() const
virtual bool IsSharable() const
check if the data source can be shared.
virtual ISGDataSource * CreateDS(SConstScopedObject &object) const
create an instance of the layout track type using default settings.
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
CSGTraceGraphDS(objects::CScope &scope, const objects::CSeq_id &id)
CRef< CSGTraceData > m_Data
const_iterator end() const
const_iterator find(const key_type &key) const
int TSignedSeqPos
Type for signed sequence position.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
static objects::SAnnotSelector GetAnnotSelector(TAnnotFlags flags=0)
request an annotation selector for a given type
SAnnotSelector & SetSearchExternal(const CTSE_Handle &tse)
Set all flags for searching standard GenBank external annotations.
const CSeq_graph & GetOriginalGraph(void) const
Get original graph with unmapped location/product.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
const TTag & GetTag(void) const
Get the Tag member data.
bool IsId(void) const
Check if variant Id is selected.
const TDb & GetDb(void) const
Get the Db member data.
TId GetId(void) const
Get the variant data.
bool IsGeneral(void) const
Check if variant General is selected.
const TGeneral & GetGeneral(void) const
Get the variant data.
const TGraph & GetGraph(void) const
Get the Graph member data.
const TTitle & GetTitle(void) const
Get the Title member data.
bool CanGetTitle(void) const
Check if it is safe to call GetTitle method.
const TByte & GetByte(void) const
Get the variant data.
bool CanGetLoc(void) const
Check if it is safe to call GetLoc method.
const TValues & GetValues(void) const
Get the Values member data.
E_Choice Which(void) const
Which variant is currently selected.
TA GetA(void) const
Get the A member data.
const TTitle & GetTitle(void) const
Get the variant data.
@ e_Title
a title for this sequence
unsigned int
A callback function used to compare two keys in a database.
static map< string, int > sm_TitleToType
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4