(loc.
IsMix())
69 if(from==0 && to==0)
continue;
70 if(from2<from ) from = from2;
83 if(from==0 && to==0)
continue;
84 if(from2<from ) from = from2;
105 if( !(*annot)->GetData().IsFtable() )
continue;
108 if( !(*gen_feature)->CanGetComment())
continue;
109 if( (*gen_feature)->GetComment().find(
"Genomic Location") == string::npos )
continue;
114 NcbiCerr<<
"hasGenomicLocation: ERROR : sequence " 116<<
" does not have genomic location " 125 if( !(*annot)->GetData().IsFtable() )
continue;
128 if( !(*gen_feature)->CanGetComment())
continue;
129 if( (*gen_feature)->GetComment().find(
"Genomic Location") == string::npos )
continue;
130 return(*gen_feature)->GetLocation();
133 NcbiCerr<<
"getGenomicLocation: FATAL: sequence " 136<<
" does not have genomic location" 144 stringmark =
"Genomic Location: ";
147 if( !(*annot)->GetData().IsFtable() )
continue;
150 if( !(*gen_feature)->CanGetComment())
continue;
151 if( (*gen_feature)->GetComment().find(mark) == string::npos )
continue;
152 tag= (*gen_feature)->GetComment();
153 tag.erase(0, mark.length());
165 if( !(*annot)->GetData().IsFtable() )
continue;
168 if(! (*gen_feature)->GetLocation().GetInt().CanGetStrand() )
continue;
169 if(! (*gen_feature)->GetLocation().GetInt().GetId().IsLocal() )
continue;
173 NcbiCerr<<
"hasGenomicInterval: ERROR: sequence " 176<<
" does not have intervals with strands" 186 if( !(*annot)->GetData().IsFtable() )
continue;
189 if(! (*gen_feature)->GetLocation().GetInt().CanGetStrand() )
continue;
190 if(! (*gen_feature)->GetLocation().GetInt().GetId().IsLocal() )
continue;
191 return(*gen_feature)->GetLocation().GetInt();
194 NcbiCerr<<
"getGenomicInterval: FATAL: sequence " 197<<
" does not have intervals with strands" 213 if( !(*f)->GetData().IsGene() )
continue;
215 string n; (*f)->GetData().GetGene().GetLabel(&
n);
217loc_map[loc_string]=*
f;
239 label<< from <<
"-"<< to <<
":"<< strand_sign <<
'\0';
static bool PrintDetails(int current_verbosity=m_current_verbosity)
void GetLocMap(LocMap &loc_map, const CSeq_annot::C_Data::TFtable &feats)
static void IncreaseVerbosity(void)
static bool hasGenomicInterval(const CBioseq &seq)
static const CSeq_interval & getGenomicInterval(const CBioseq &seq)
static bool hasGenomicLocation(const CBioseq &seq)
static void DecreaseVerbosity(void)
static const CSeq_loc & getGenomicLocation(const CBioseq &seq)
static void getFromTo(const CSeq_loc &loc, TSeqPos &from, TSeqPos &to, ENa_strand &strand)
static string getLocusTag(const CBioseq &seq)
namespace ncbi::objects::
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
static const char label[]
bool IsMix(void) const
Check if variant Mix is selected.
list< CRef< CSeq_interval > > Tdata
ENa_strand
strand of nucleic acid
const Tdata & Get(void) const
Get the member data.
bool CanGetStrand(void) const
Check if it is safe to call GetStrand method.
TFrom GetFrom(void) const
Get the From member data.
list< CRef< CSeq_loc > > Tdata
const Tdata & Get(void) const
Get the member data.
bool IsPacked_int(void) const
Check if variant Packed_int is selected.
TStrand GetStrand(void) const
Get the Strand member data.
TTo GetTo(void) const
Get the To member data.
bool IsInt(void) const
Check if variant Int is selected.
const TInt & GetInt(void) const
Get the variant data.
bool IsNull(void) const
Check if variant Null is selected.
const TMix & GetMix(void) const
Get the variant data.
const TPacked_int & GetPacked_int(void) const
Get the variant data.
const TAnnot & GetAnnot(void) const
Get the Annot member data.
list< CRef< CSeq_feat > > TFtable
list< CRef< CSeq_annot > > TAnnot
template string GetLocationString< CSeq_loc >(const CSeq_loc &loc)
string GetLocationString(const CSeq_feat &f)
string GetStringDescr(const CBioseq &bioseq)
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