;
70 return "NHLBI GRASP";
112}
else if(
depth>= 0){
127 if(iter.
size() != 1) {
161 intpos_start, pos_end;
163 stringtitle, comment;
175 for(
int row= pos_start;
row< pos_end; ++
row) {
177 if(res->m_SigEntry.
Empty()) {
178res->m_SigEntry = BinEntry;
181res->m_SigEntry = BinEntry;
184res->m_EntryList.push_back(BinEntry);
215 intsnpid, ClinSigID;
217 stringtrait, pmids, rgenes, mgenes;
218 stringtitle, comment, population;
222 stringdbgaptext, geneName;
226 if(col_pos.
TryGet(annot,
row, pos)) {
231entry->
snpid= col_snpid.
TryGet(annot,
row, snpid) ? (
unsigned int)snpid : 0;
232entry->
pvalue= (col_val.
TryGet(annot,
row, pvalue) || col_val_synonym.
TryGet(annot,
row, pvalue)) ? pvalue : 0;
233entry->
trait= col_trait.
TryGet(annot,
row, trait) ? trait :
"";
234entry->
pmids= col_pmids.
TryGet(annot,
row, pmids) ? pmids :
"";
238entry->
sHGVS= col_hgvs.
TryGet(annot,
row, sHGVS) ? sHGVS :
"";
243entry->
geneName= col_geneName.
TryGet(annot,
row, geneName) ? geneName :
"";
245entry->
geneId= col_geneId.
TryGet(annot,
row, geneId) ? geneId : -1;
256list<string> GeneSymIDPairsList;
260 ITERATE(list<string>, iGeneSymIDPairsList, GeneSymIDPairsList) {
261list<string> GeneSymIDPair;
263 m_GeneMap[GeneSymIDPair.front()] = GeneSymIDPair.
size() == 2 ? GeneSymIDPair.back() :
string();
272sRes += (sRes.empty() ?
"":
":") + iGeneMap->first +
"^"+ iGeneMap->second;
279 intpos_value_from,
intpos_value_to,
280 int& pos_index_begin,
int& pos_index_end)
286pos_index_begin = -1;
287pos_index_end = rows-1;
290col_sub_type.
TryGet(annot, 0, trackSubType);
296 intlower_pos_index_bound = 0;
297 intupper_pos_index_bound = rows-1;
301pos_index_k = (lower_pos_index_bound + upper_pos_index_bound)/2;
302col_pos_end.
TryGet(annot, pos_index_k, pos_value_k);
303 if(pos_value_k < pos_value_from) {
304pos_index_begin = pos_index_k;
305lower_pos_index_bound = pos_index_k+1;
307upper_pos_index_bound = pos_index_k-1;
309}
while(pos_value_k != pos_value_from && lower_pos_index_bound <= upper_pos_index_bound);
312pos_index_begin = (pos_value_from == pos_value_k ? pos_index_k : pos_index_begin+1);
315 intSlidingBegin(pos_index_begin-1);
316 while(SlidingBegin >= 0) {
317col_pos_end.
TryGet(annot, SlidingBegin, pos_value_k);
318 if(pos_value_k < pos_value_from)
320pos_index_begin = SlidingBegin;
325lower_pos_index_bound=0;
326upper_pos_index_bound=rows-1;
329pos_index_k = (lower_pos_index_bound+upper_pos_index_bound)/2;
330col_pos.
TryGet(annot, pos_index_k, pos_value_k);
331 if(pos_value_k < pos_value_to) {
332lower_pos_index_bound = pos_index_k+1;
335pos_index_end = pos_index_k;
336upper_pos_index_bound = pos_index_k-1;
338}
while(pos_value_k != pos_value_to && lower_pos_index_bound <= upper_pos_index_bound);
341 size_tSlidingEnd(pos_index_end);
342 while(SlidingEnd < rows) {
343col_pos.
TryGet(annot, SlidingEnd, pos_value_k);
344 if(pos_value_k > pos_value_to)
346pos_index_end = SlidingEnd+1;
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.
Checksum and hash calculation classes.
bool TryGet(const CFeat_CI &feat_ci, Value &v) const
void x_Init(const string &sSrc)
string AsString() const
recreate the string that was used for creation
static int ChooseSignificant(const SBinEntry *entry1, const SBinEntry *entry2, TBinType type)
choose a more significant entry of the two offered
static void GetBinSelector(const string &sTrackAccession, bool isAdaptive, int depth, objects::SAnnotSelector &sel)
get a selector for a bin from a NA track accession
static bool GetBinHandle(objects::CScope &scope, const objects::SAnnotSelector &sel, const objects::CSeq_loc &loc, objects::CSeq_annot_Handle &annot)
get an annotation handle that is needed to load a singular bin on range
static CRef< SBin > GetBin(const objects::CSeq_annot_Handle &annot, TSeqRange range)
get a singular bin corresponding to a position range
static void ReadAnnotDesc(const objects::CSeq_annot_Handle &handle, string &title, string &comment)
get title and comment out of annot.desc
@ eCLIN
Clinical Variations.
@ eGAP
dbGaP analysis files
static bool isGeneMarker(const string &trackSubType)
determine whether a string in TrackSubType describes a Gene Marker ("102_1" or "102_3")
static void FindPosIndexRange(const objects::CSeq_annot_Handle &annot, int pos_value_from, int pos_value_to, int &pos_index_begin, int &pos_index_end)
Perform iterative binary search to find table indexes (rows) 'pos_index_begin' and 'pos_index_end' in...
static string SourceAsString(TSource Source)
get human-readable text for various source types
static CRef< SBinEntry > GetEntry(const objects::CSeq_annot_Handle &annot, int row)
get a bin entry corresponding to a row position in the table presumed contained within the handle
static unsigned char depth[2 *(256+1+29)+1]
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
const TSeqPos kInvalidSeqPos
Define special value for invalid sequence position.
size_t GetSeq_tableNumRows(void) const
const CSeq_annot::TDesc & Seq_annot_GetDesc(void) const
bool Seq_annot_CanGetDesc(void) const
SAnnotSelector & SetExactDepth(bool value=true)
SetExactDepth() specifies that annotations will be searched on the segment level specified by SetReso...
SAnnotSelector & SetResolveAll(void)
SetResolveAll() is equivalent to SetResolveMethod(eResolve_All).
SAnnotSelector & SetOverlapTotalRange(void)
Check overlapping only of total ranges.
size_t size(void) const
Get number of collected Seq-annots.
SAnnotSelector & SetAdaptiveDepth(bool value=true)
SetAdaptiveDepth() requests to restrict subsegment resolution depending on annotations found on lower...
SAnnotSelector & SetResolveDepth(int depth)
SetResolveDepth sets the limit of subsegment resolution in searching annotations.
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.
void Reset(void)
Reset reference object.
bool Empty(void) const THROWS_NONE
Check if CRef is empty â not pointing to any object, which means having a null value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
@ fSplit_Tokenize
All delimiters are merged and trimmed, to get non-empty tokens only.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
const Tdata & Get(void) const
Get the member data.
bool IsComment(void) const
Check if variant Comment is selected.
const TTitle & GetTitle(void) const
Get the variant data.
const TComment & GetComment(void) const
Get the variant data.
bool IsTitle(void) const
Check if variant Title is selected.
list< CRef< CAnnotdesc > > Tdata
@ eClinical_significance_probable_pathogenic
@ eClinical_significance_pathogenic
unsigned int
A callback function used to compare two keys in a database.
const CharType(& source)[N]
#define row(bind, expected)
TSeqPos pos_end
gene end when trackSubType is (Gene association)
string geneStringId
when external Gene IDs are used, it can be a string
string geneName
gene name when trackSubType is (Gene association)
string dbgaptext
specially formatted, see document
string population
population description for GWAS/pha tracks
string genes_reported
specially formatted, see document
int ClinSigID
clinical significance ID,
string trackSubType
used to further differentiate some GWAS/pha tracks (see SV-2201)
string genes_mapped
specially formatted, see document
string pmids
comma-delimited list of PubMed IDs
TSeqPos pos
! arrange member names as in the dumped file
int geneId
gene ID when trackSubType is (Gene association)
static CS_CONTEXT * context
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