& title,
boolfixed_scale,
const TAxisLimits& y_limits)
199 autoiter = d_maps.
find(g_title);
200 if(iter == d_maps.
end()) {
203pair<string, SGraphObject>(
210g_desc, g_name))).first;
262 for(; graph_iter; ++graph_iter) {
351 template<
typenameTGraphType>
354 constTGraphType& graph,
355 double& g_max,
double& g_min,
358 const auto& vec = graph.GetValues();
359 if(vec.empty())
return;
360 autol_max = graph.GetMax();
361 autol_min = graph.GetMin();
365 if(
r.GetLength() == 0)
382 autoiter_gr = vec.begin();
384advance(iter_gr,
min(
offset, (
int)vec.size()));
388 boolunsigned_char =
false;
391 if(
sizeof(TGraphValueType) == 1) unsigned_char =
true;
393 while(iter_gr != vec.end() && pos < map_r.
GetToOpen()) {
401 val= (TDataType)(
unsigned char)(*iter_gr);
403 val= (TDataType)(*iter_gr);
407 else if(
val> l_max)
417g_max =
max(l_max *
a+
b, g_max);
418g_min =
min(l_min *
a+
b, g_min);
444 if((*iter)->IsUser() && (*iter)->GetUser().GetType().IsStr() &&
445(*iter)->GetUser().GetType().GetStr() ==
"AnnotationTrack") {
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CAppJobError Default implementation for IAppJobError - encapsulates a text error message.
CAppJobProgress Default implementation for IAppJobProgress - the class encapsulates a text message an...
void SetAnnotName(const string &name)
void SetAxisMaxFixed(TDataType max)
void SetFixedScale(bool value)
void SetDesc(const string &desc)
void SetAxisMinFixed(TDataType min)
objects::SAnnotSelector m_Sel
our annotation selector
string x_GetGraphName(const objects::CMappedGraph &gr) const
Get a name for a graph.
void x_AddGraphToMap(CDensityMap< float > &the_map, const objects::CMappedGraph &gr, const TGraphType &graph, double &g_max, double &g_min, bool fixed_scale)
bool x_PercentileButNotMax(const objects::CMappedGraph &gr) const
Check the graph type.
CSGAnnotJob(const string &desc, objects::CBioseq_Handle handle, const objects::SAnnotSelector &sel, const TSeqRange &range)
CSGAnnotJob.
TSeqRange m_Range
target range
IAppJob::EJobState x_CreateHistFromGraph(CSeqGlyph::TObjects &glyphs, const objects::SAnnotSelector &sel, TModelUnit window, bool fixed_scale, const TAxisLimits &y_limits)
objects::CBioseq_Handle m_Handle
target sequence
void x_AddGraphObject(map< string, SGraphObject > &d_maps, const objects::CMappedGraph &gr, TModelUnit window, bool fixed_scale)
IAppJob::EJobState x_LoadCoverageGraph(CSeqGlyph::TObjects &glyphs, int level, TModelUnit window, const string &title, bool fixed_scale, const TAxisLimits &y_limits)
list< CRef< CSeqGlyph > > TObjects
CSeqGraphicJob â the base class of seqgraphic job for handling the job status such as reporting the p...
string m_Desc
Job description or name.
CFastMutex m_Mutex
mutex for guarding state access
virtual void SetTaskTotal(int total)
virtual CConstIRef< IAppJobError > GetError()
Returns IAppJobError object describing internal error that caused the Job to fail.
int m_TaskTotal
Total amount of task for a job.
CSeqGraphicJob(const string &desc=kEmptyStr)
CSeqGraphicJob.
virtual CConstIRef< IAppJobProgress > GetProgress()
return progress object, the function shall be synchronized internally.
virtual void SetTaskName(const string &name)
int m_TaskCompleted
The amount of task finished.
virtual string GetDescr() const
Returns a human readable description of the Job (optional)
virtual void SetTaskCompleted(int completed)
set total finished task number.
virtual CRef< CObject > GetResult()
Returns the Job Result.
virtual void AddTaskCompleted(int delta)
set to add newly finished task number.
CRef< CAppJobError > m_Error
virtual EJobState Run()
Function that does all the useful work, called by the Engine.
virtual EJobState x_Execute()=0
method truly doing the job.
virtual bool StopRequested() const
CConstRef< CUser_field > GetFieldRef(const string &str, const string &delim=".", NStr::ECase use_case=NStr::eCase) const
Return a field reference representing the tokenized key, or a NULL reference if the key doesn't exist...
const_iterator end() const
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
static string GetAnnotName(const objects::CSeq_annot_Handle &annot_handle)
static const string & GetUnnamedAnnot()
Get the commonly used symbol representing a unnnamed annotation.
static string GetAnnotComment(const objects::CSeq_annot_Handle &annot_handle)
virtual bool IsCanceled() const override
virtual void AddRange(TSeqRange range, CntType score=1, bool expand=false)
EJobState
Job states (describe FSM)
TRange GetTotalRange(void) const
CConstRef< CSeq_annot > GetCompleteSeq_annot(void) const
Complete and return const reference to the current seq-annot.
const string & GetName(void) const
TSeqPos GetComp(void) const
const string & GetTitle(void) const
bool IsSetTitle(void) const
CSeq_annot_Handle GetAnnot(void) const
Get containing annot handle.
bool IsIncludedAnyNamedAnnotAccession(void) const
check if any named annot accession is included in the search
SAnnotSelector & ResetAnnotsNames(void)
Select annotations from all Seq-annots.
bool IsSetComp(void) const
string CombineWithZoomLevel(const string &acc, int zoom_level)
Combine accession string and zoom level into a string with separator.
SAnnotSelector & IncludeNamedAnnotAccession(const string &acc, int zoom_level=0)
SAnnotSelector & SetAnnotType(TAnnotType type)
Set annotation type (feat, align, graph)
SAnnotSelector & AddNamedAnnots(const CAnnotName &name)
Add named annot to set of annots names to look for.
const TNamedAnnotAccessions & GetNamedAnnotAccessions(void) const
const CSeq_loc & GetLoc(void) const
bool IsSetComment(void) const
const string & GetComment(void) const
const CSeq_graph::C_Graph & GetGraph(void) const
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
position_type GetToOpen(void) const
CRange< TSeqPos > TSeqRange
typedefs for sequence ranges
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
const TStr & GetStr(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
bool IsStr(void) const
Check if variant Str is selected.
const TInt & GetInt(void) const
Get the variant data.
const TByte & GetByte(void) const
Get the variant data.
const TReal & GetReal(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
const Tdata & Get(void) const
Get the member data.
const TDesc & GetDesc(void) const
Get the Desc member data.
bool CanGetDesc(void) const
Check if it is safe to call GetDesc method.
list< CRef< CAnnotdesc > > Tdata
double value_type
The numeric datatype used by the parser.
map< string, map< string, string > > TValues
Int4 delta(size_t dimension_, const Int4 *score_)
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
static const int kInvalidJobToken
CHistogramGlyph::TMap m_Map
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