Go to the SVN repository for this file.
1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___WIG_GRAPH__HPP 2 #define GUI_WIDGETS_SEQ_GRAPHIC___WIG_GRAPH__HPP 62 return "WigGraphCache";
65 staticconstexpr
floatkFract = 1000.;
78 static stringGetCacheKey(objects::CScope& scope,
79 constobjects::CSeq_id& seq_id,
80 const string& wig_id,
81 const string& remote_path,
82 const string& last_modified,
107 floatGetDataCoverage(
const TSeqRange& range);
114 voidx_CreateNetCacheKey();
118 intx_RunBigWigScript(
const TSeqRange& range,
const stringtmp_file);
121 voidx_GetBigWigData(
const TSeqRange& range, vector<TValType>& v_out);
123 voidx_EncodeDelta(
const TSeqRange& range,
constvector<float>& v_in, vector<TValType>& v_out);
124 voidx_DecodeDelta(
const TSeqRange& range, vector<float>& v_out);
141 static const intkMinBinSize = 500;
142 intm_SummaryBinCount = 100000;
144atomic<bool> m_PrefetchRequested{
false};
155 voidx_FetchSummary();
189 boolis_negative = v < 0;
Serialization / compression of bvector<>. Set theoretical operations on compressed BLOBs.
Sparse constainer sparse_vector<> for integer types using bit-transposition transform.
int64_t x_DecodeSign(uint64_t v)
map< TSeqRange, future< TPrefetchData > > m_PendingData
virtual ~CWigGraph()
Init is invoked by CGraphCache when a new instance of CWigGraph is initialized.
void x_UnPackFloat(TSparseVector::value_type v_in, float &v_out)
future< TPrefetchSummary > m_PendingSummary
unique_ptr< TSparseVector > TPrefetchSummary
string m_WigId
WigFile id, e.g. chr1.
static string GetStorageName()
static constexpr float kFract
CWigGraph data come in two flavors Summary - low-res representation for the whole sequence length and...
unique_ptr< TPrefetchRequest > TPrefetchData
uint64_t x_EncodeSign(int64_t v)
Encode/Decode negtaive vaues to positive ones.
void x_PackFloat(float v_in, TSparseVector::value_type &v_out)
Float values are packed with precision loss (3 decimal places retained) values are conveeted to posti...
struct { TSeqRange range TPrefetchRequest
BLOB cache read/write/maintenance interface.
succinct sparse vector with runtime compression using bit-slicing / transposition method
unsigned int TSeqPos
Type for sequence locations and lengths.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
Compressed bitset (entry point to bm.h)
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