101 const CSeq_loc& loc = it->GetLocation();
107 seqid_map[ftb_idh] = seq_idh;
108 unsigned int startingLocusTagNumber = 1;
109 unsigned int startingFeatureId = 1;
124 BOOST_REQUIRE(orig_seh);
139 ImportFeatTblTesting(
"FeatTableData/gb_7376.asn",
"FeatTableData/gb_7376_tbl.txt",
"FeatTableData/gb_7376_imported.asn");
145 ImportFeatTblTesting(
"FeatTableData/gb_7453.asn",
"FeatTableData/gb_7453_tbl.txt",
"FeatTableData/gb_7453_imported.asn");
151 ImportFeatTblTesting(
"FeatTableData/gb_7376.asn",
"FeatTableData/gb_7668_tbl.txt",
"FeatTableData/gb_7668_imported.asn");
157 ImportFeatTblTesting(
"FeatTableData/gb_7030.asn",
"FeatTableData/gb_7030_tbl.txt",
"FeatTableData/gb_7030_imported.asn");
162 ImportFeatTblTesting(
"FeatTableData/gb_8265.asn",
"FeatTableData/gb_8265_tbl.txt",
"FeatTableData/gb_8265_imported.asn");
167 ImportFeatTblTesting(
"FeatTableData/gb_8871.asn",
"FeatTableData/gb_8871_tbl.txt",
"FeatTableData/gb_8871_imported.asn");
172 ImportFeatTblTesting(
"FeatTableData/gb_8922.asn",
"FeatTableData/gb_8922_tbl.txt",
"FeatTableData/gb_8922_imported.asn");
177 ImportFeatTblTesting(
"FeatTableData/gb_8265.asn",
"FeatTableData/gb_8265_withoutproteinid_tbl.txt",
"FeatTableData/gb_8265_withoutproteinid_imported.asn");
182 ImportFeatTblTesting(
"FeatTableData/gb_8265.asn",
"FeatTableData/gb_8265_pseudocds_tbl.txt",
"FeatTableData/gb_8265_pseudocds_imported.asn");
188 ImportFeatTblTesting(
"FeatTableData/gb_8265.asn",
"FeatTableData/gb_8265_withgbid_tbl.txt",
"FeatTableData/gb_8265_withgbid_imported.asn");
CIRef< IEditCommand > TestImport(const objects::CSeq_annot &orig_annot, TFeatSeqIDMap &ftbl_seqid_map, unsigned int &startingLocusTagNumber, unsigned int &startingFeatureId, const string &locus_tag, bool euk)
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
string ReportAll(TDiagPostFlags flags=eDPF_Exception) const
Report all exceptions.
#define MSerial_AsnText
I/O stream manipulators –.
@ eSerial_AsnText
ASN.1 text.
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
const CSeq_id * GetId(void) const
Get the id of the location return NULL if has multiple ids or no id at all.
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_Seq_id_BestRank
use CSeq_id::BestRank() as the scoring function
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
CSeq_entry_Handle AddTopLevelSeqEntry(CSeq_entry &top_entry, TPriority pri=kPriority_Default, EExist action=eExist_Default)
Add seq_entry, default priority is higher than for defaults or loaders Add object to the score with p...
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const
Complete and get const reference to the seq-entry.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
const TFtable & GetFtable(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
@ eMol_na
just a nucleic acid
static SQLCHAR output[256]
static const char * str(char *buf, int n)
Utility stuff for more convenient using of Boost.Test library.
void DoImportFTable(CSeq_entry_Handle &seh, const CSeq_annot &annot)
CRef< CSeq_annot > ReadAnnotFromFile(const string &fname)
CRef< CSeq_entry > ReadEntryFromFile(const string &fname)
string MakeAsn(const T &object)
BOOST_AUTO_TEST_CASE(Test_GB_7376)
void ImportFeatTblTesting(const string &entry_file, const string &annot_file, const string &output_file)