Add(range.GetTotalRange());
111 TRangerange = it->second.GetTotalRange();
112 out<< it->first.AsString();
146 m_Ranges[it->first].Add(it->second);
154 m_Ranges[it->first].Add(it->second);
180 switch( segs.
Which() ) {
219 size_tdim = denseg.
GetDim();
222 if( numseg != denseg.
GetLens().size() ) {
224numseg =
min(numseg, denseg.
GetLens().size());
226 if( dim != denseg.
GetIds().size() ) {
228dim =
min(dim, denseg.
GetIds().size());
230 if( dim*numseg != denseg.
GetStarts().size() ) {
232dim =
min(dim*numseg, denseg.
GetStarts().size()) / numseg;
234CDense_seg::TStarts::const_iterator it_start = denseg.
GetStarts().begin();
235CDense_seg::TLens::const_iterator it_len = denseg.
GetLens().begin();
236 for(
size_tseg = 0; seg < numseg; seg++, ++it_len) {
237CDense_seg::TIds::const_iterator it_id = denseg.
GetIds().begin();
238 for(
size_tseq = 0; seq < dim; seq++, ++it_start, ++it_id) {
239 if( *it_start >= 0 ) {
241 m_Ranges[idh].Add(*it_start, *it_start + *it_len);
251 size_tdim = diag.
GetDim();
252 if( dim != diag.
GetIds().size() ) {
256 if( dim != diag.
GetStarts().size() ) {
261 for(
size_t i= 0;
i< dim; ++
i) {
272 size_tdim = packed.
GetDim();
275 if( dim * numseg > packed.
GetStarts().size() ) {
276dim = packed.
GetStarts().size() / numseg;
278 if( dim * numseg > packed.
GetPresent().size() ) {
281 if( dim > packed.
GetLens().size() ) {
282dim = packed.
GetLens().size();
284CPacked_seg::TStarts::const_iterator it_start = packed.
GetStarts().begin();
285CPacked_seg::TLens::const_iterator it_len = packed.
GetLens().begin();
286CPacked_seg::TPresent::const_iterator it_pres= packed.
GetPresent().begin();
287 for(
size_tseg = 0; seg < numseg; seg++, ++it_len ) {
288CPacked_seg::TIds::const_iterator it_id = packed.
GetIds().begin();
289 for(
size_tseq = 0; seq < dim; seq++, ++it_pres) {
292 m_Ranges[idh].Add(*it_start, *it_start + *it_len);
339 "Invalid size of 'first-starts' in sparse-align");
344 "Invalid size of 'second-starts' in sparse-align");
347 if(numseg != aln_row.
GetLens().size()) {
349 "Invalid size of 'lens' in sparse-align");
350numseg =
min(numseg, aln_row.
GetLens().size());
355 "Invalid size of 'second-strands' in sparse-align");
359 for(
size_tseg = 0; seg < numseg; ++seg) {
382 if(
info->IsFeatTable() ) {
398 if( !loc.
IsSet() ) {
401 size_tnum_rows =
table.GetNum_rows();
403 for(
size_t row= 0;
row< num_rows; ++
row) {
410 for(
size_t row= 0;
row< num_rows; ++
row) {
425 if( i1->first != i2->first ) {
426 strings1 = i1->first.AsString();
427 strings2 = i2->first.AsString();
432 auto r1= i1->second.GetTotalRange();
433 auto r2= i2->second.GetTotalRange();
434 if(
r1.GetFrom() <
r2.GetFrom() ) {
437 if(
r1.GetFrom() >
r2.GetFrom() ) {
440 if(
r1.GetTo() <
r2.GetTo() ) {
443 if(
r1.GetTo() >
r2.GetTo() ) {
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.
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.
void AddLocation(const CSeq_loc &loc, ETransSplicing trans_splcing=eNoTransSplicing)
void SetMasterSeq(const CMasterSeqSegments *master_seq)
TRange GetOverlappingRange(TTotalRangeFlags flags=eStrandAny) const
void Add(const COneSeqRange &range)
void SetTableKeyAndIndex(size_t row, SAnnotObject_Key &key, SAnnotObject_Index &index) const
bool IsRealLoc(void) const
CConstRef< CSeq_loc > GetLoc(size_t row) const
namespace ncbi::objects::
CSeq_id_Handle GetSingleId(void) const
CNcbiOstream & Print(CNcbiOstream &out) const
int Compare(const CSeqsRange &other) const
void Add(const CSeq_id_Handle &id, const COneSeqRange &loc)
container_type::const_iterator const_iterator
const_iterator begin() const
const_iterator end() const
std::ofstream out("events_result.xml")
main entry point for tests
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERR_POST_X(err_subcode, message)
Error posting with default error code and given error subcode.
void Warning(CExceptionArgs_Base &args)
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
static TThisType GetWhole(void)
#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.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static int CompareNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive compare of a substring with another string.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
const TProtpos & GetProtpos(void) const
Get the variant data.
const TDenseg & GetDenseg(void) const
Get the variant data.
vector< CRef< CSeq_loc > > TLoc
vector< CRef< CSparse_align > > TRows
const TGenomic_id & GetGenomic_id(void) const
Get the Genomic_id member data.
E_Choice Which(void) const
Which variant is currently selected.
list< CRef< CStd_seg > > TStd
const TStarts & GetStarts(void) const
Get the Starts member data.
const TStarts & GetStarts(void) const
Get the Starts member data.
const TProduct_id & GetProduct_id(void) const
Get the Product_id member data.
TGenomic_start GetGenomic_start(void) const
Get the Genomic_start member data.
const TProduct_id & GetProduct_id(void) const
Get the Product_id member data.
const TLens & GetLens(void) const
Get the Lens member data.
TNumseg GetNumseg(void) const
Get the Numseg member data.
const TFirst_id & GetFirst_id(void) const
Get the First_id member data.
TLen GetLen(void) const
Get the Len member data.
TAmin GetAmin(void) const
Get the Amin member data.
bool IsSetProduct_id(void) const
product is either protein or transcript (cDNA) Check if a value has been assigned to Product_id data ...
const TProduct_start & GetProduct_start(void) const
Get the Product_start member data.
TDim GetDim(void) const
Get the Dim member data.
const TIds & GetIds(void) const
Get the Ids member data.
const TProduct_end & GetProduct_end(void) const
Get the Product_end member data.
bool IsSetProduct_id(void) const
product is either protein or transcript (cDNA) Check if a value has been assigned to Product_id data ...
const TSpliced & GetSpliced(void) const
Get the variant data.
TDim GetDim(void) const
Get the Dim member data.
const TLens & GetLens(void) const
Get the Lens member data.
const TSecond_starts & GetSecond_starts(void) const
Get the Second_starts member data.
const TPacked & GetPacked(void) const
Get the variant data.
const TStd & GetStd(void) const
Get the variant data.
const TLens & GetLens(void) const
Get the Lens member data.
const TIds & GetIds(void) const
Get the Ids member data.
list< CRef< CSpliced_exon > > TExons
const TExons & GetExons(void) const
Get the Exons member data.
bool IsSetSecond_strands(void) const
Check if a value has been assigned to Second_strands data member.
const TFirst_starts & GetFirst_starts(void) const
Get the First_starts member data.
const TDendiag & GetDendiag(void) const
Get the variant data.
const TPresent & GetPresent(void) const
Get the Present member data.
TNumseg GetNumseg(void) const
Get the Numseg member data.
const TIds & GetIds(void) const
Get the Ids member data.
const TSecond_strands & GetSecond_strands(void) const
Get the Second_strands member data.
const TSecond_id & GetSecond_id(void) const
Get the Second_id member data.
TGenomic_end GetGenomic_end(void) const
Get the Genomic_end member data.
const TStarts & GetStarts(void) const
Get the Starts member data.
TNumseg GetNumseg(void) const
Get the Numseg member data.
list< CRef< CSeq_align > > Tdata
const TSparse & GetSparse(void) const
Get the variant data.
bool IsSetGenomic_id(void) const
Check if a value has been assigned to Genomic_id data member.
TDim GetDim(void) const
Get the Dim member data.
bool IsNucpos(void) const
Check if variant Nucpos is selected.
const TRows & GetRows(void) const
Get the Rows member data.
const TDisc & GetDisc(void) const
Get the variant data.
list< CRef< CDense_diag > > TDendiag
TNucpos GetNucpos(void) const
Get the variant data.
const Tdata & Get(void) const
Get the member data.
const TSegs & GetSegs(void) const
Get the Segs member data.
const TGenomic_id & GetGenomic_id(void) const
Get the Genomic_id member data.
bool IsSetGenomic_id(void) const
Check if a value has been assigned to Genomic_id data member.
const TLocation & GetLocation(void) const
Get the Location member data.
const TProduct & GetProduct(void) const
Get the Product member data.
bool IsSetProduct(void) const
product of process Check if a value has been assigned to Product data member.
const TLoc & GetLoc(void) const
Get the Loc member data.
NCBI_DEFINE_ERR_SUBCODE_X(9)
Definition of all error codes used in objmgr libraries (xobjmgr.lib, xobjutil.lib and others).
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const struct ncbi::grid::netcache::search::fields::KEY key
static const sljit_gpr r1
static const sljit_gpr r2
#define row(bind, expected)
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