NCBI C++ ToolKit
Classes | Enumerations | Functions | Variables
pub_report Namespace Reference

Classes

class  CBaseReport
 
class  CSkipPubJournalHook
 
class  CJournalReport
 
class  CPubReportApp
 
class  CSkipSeqEntryHook
 
class  CSkipSeqIdHook
 
class  CSkipPubUnpublishedHook
 
class  CPubData
 
class  CUnpublishedReport
 

Enumerations

enum  AuthorNameMatch {
  eNoMatch , eLastNameMatch , eOneInitialMatch , eTwoInitialsMatch ,
  eNoHyphenMatch , eFullMatch , eLastValue
}
 

Functions

static bool IsJournal (const CPub &pub)
 
static CConstRef< CSeq_idGetBestId (const CBioseq::TId &ids)
 
static bool IsGenUnpublished (const CCit_gen &cit)
 
static bool IsArtUnpublished (const CCit_art &cit)
 
static bool IsUnpublished (const CPub &pub)
 
static void ProcessInitials (string &initials)
 
static void GetAuthorsFromList (list< string > &authors, const CAuth_list &auth_list)
 
static void CollectDataGen (const CCit_gen &cit, CPubData &data)
 
static void CollectDataArt (const CCit_art &cit, CPubData &data)
 
static void CollectData (const CPub &pub, CPubData &data)
 
static AuthorNameMatch CompareAuthorNames (string first, string second)
 
static AuthorNameMatch CompareAuthors (const list< string > &first, const list< string > &second)
 
static void GetOneInitialAuthorName (const string &author, string &name)
 
static void GetNameFromStdName (const CPerson_id &person, string &name)
 
static bool FirstOrLastAuthorMatches (const list< string > &authors, const CAuth_list::C_Names &pubmed_authors)
 
static bool CheckRefs (const CMedline_entry &medline_entry, const CPubData::TSeqIds &seq_ids)
 
static bool CheckDate (int year, int month, int max_date_check, const CCit_jour &juornal)
 
static TEntrezId DoHydraSearch (const CPubData &data)
 
static TEntrezId ConvertPMCtoPMID (TEntrezId pmc)
 
static void NormalizeTitle (string &s)
 
static TEntrezId DoEUtilsSearch (CEutilsClient &eutils, const string &database, const string &term)
 
static AuthorNameMatch IsAuthorInList (const list< string > &auths, const string &author)
 
static void ReportSeqIds (CNcbiOstream &out, const CPubData::TSeqIds &ids)
 
static string GetAuthorsCmpResultStr (AuthorNameMatch res)
 
static bool ReportAuthorDiff (CNcbiOstream &out, const list< string > &pubmed_auths, const list< string > &auths)
 
static bool ReportTitleDiff (CNcbiOstream &out, const list< string > &pubmed_title_words, const list< string > &title_words)
 
static void ReportAuththors (CNcbiOstream &out, const char *prefix, const list< string > &auths)
 
static void ReportTitle (CNcbiOstream &out, const char *prefix, const CPubData &data)
 
static void ReportJournal (CNcbiOstream &out, const char *prefix, const CPubData &data)
 
static void ReportOnePub (CNcbiOstream &out, const CCit_art &pubmed_cit_art, const CPubData &data, TEntrezId pmid)
 
string GetBestTitle (const CTitle &titles)
 
 USING_SCOPE (objects)
 

Variables

 USING_NCBI_SCOPE
 
static string authors_cmp_result_label []
 

Enumeration Type Documentation

◆ AuthorNameMatch

Enumerator
eNoMatch 
eLastNameMatch 
eOneInitialMatch 
eTwoInitialsMatch 
eNoHyphenMatch 
eFullMatch 
eLastValue 

Definition at line 395 of file unpub_report.cpp.

Function Documentation

◆ CheckDate()

static bool pub_report::CheckDate ( int  year,
int  month,
int  max_date_check,
const CCit_jour juornal 
)
static

◆ CheckRefs()

static bool pub_report::CheckRefs ( const CMedline_entry medline_entry,
const CPubData::TSeqIds seq_ids 
)
static

◆ CollectData()

static void pub_report::CollectData ( const CPub pub,
CPubData data 
)
static

◆ CollectDataArt()

static void pub_report::CollectDataArt ( const CCit_art cit,
CPubData data 
)
static

◆ CollectDataGen()

static void pub_report::CollectDataGen ( const CCit_gen cit,
CPubData data 
)
static

◆ CompareAuthorNames()

static AuthorNameMatch pub_report::CompareAuthorNames ( string  first,
string  second 
)
static

◆ CompareAuthors()

static AuthorNameMatch pub_report::CompareAuthors ( const list< string > &  first,
const list< string > &  second 
)
static

◆ ConvertPMCtoPMID()

static TEntrezId pub_report::ConvertPMCtoPMID ( TEntrezId  pmc)
static

◆ DoEUtilsSearch()

static TEntrezId pub_report::DoEUtilsSearch ( CEutilsClient eutils,
const string database,
const string term 
)
static

◆ DoHydraSearch()

static TEntrezId pub_report::DoHydraSearch ( const CPubData data)
static

◆ FirstOrLastAuthorMatches()

static bool pub_report::FirstOrLastAuthorMatches ( const list< string > &  authors,
const CAuth_list::C_Names pubmed_authors 
)
static

◆ GetAuthorsCmpResultStr()

static string pub_report::GetAuthorsCmpResultStr ( AuthorNameMatch  res)
static

Definition at line 872 of file unpub_report.cpp.

References authors_cmp_result_label, eLastValue, and NCBI_ASSERT.

Referenced by ReportAuthorDiff(), and ReportOnePub().

◆ GetAuthorsFromList()

static void pub_report::GetAuthorsFromList ( list< string > &  authors,
const CAuth_list auth_list 
)
static

◆ GetBestId()

static CConstRef<CSeq_id> pub_report::GetBestId ( const CBioseq::TId ids)
static

◆ GetBestTitle()

std::string pub_report::GetBestTitle ( const CTitle titles)

◆ GetNameFromStdName()

static void pub_report::GetNameFromStdName ( const CPerson_id person,
string name 
)
static

◆ GetOneInitialAuthorName()

static void pub_report::GetOneInitialAuthorName ( const string author,
string name 
)
static

Definition at line 526 of file unpub_report.cpp.

Referenced by FirstOrLastAuthorMatches().

◆ IsArtUnpublished()

static bool pub_report::IsArtUnpublished ( const CCit_art cit)
static

◆ IsAuthorInList()

static AuthorNameMatch pub_report::IsAuthorInList ( const list< string > &  auths,
const string author 
)
static

Definition at line 841 of file unpub_report.cpp.

References CompareAuthorNames(), eFullMatch, and eNoMatch.

Referenced by ReportAuthorDiff().

◆ IsGenUnpublished()

static bool pub_report::IsGenUnpublished ( const CCit_gen cit)
static

◆ IsJournal()

static bool pub_report::IsJournal ( const CPub pub)
static

◆ IsUnpublished()

static bool pub_report::IsUnpublished ( const CPub pub)
static

◆ NormalizeTitle()

static void pub_report::NormalizeTitle ( string s)
static

Definition at line 727 of file unpub_report.cpp.

References isupper(), and tolower().

Referenced by pub_report::CUnpublishedReport::RetrievePMid().

◆ ProcessInitials()

static void pub_report::ProcessInitials ( string initials)
static

Definition at line 77 of file unpub_report.cpp.

Referenced by GetAuthorsFromList().

◆ ReportAuthorDiff()

static bool pub_report::ReportAuthorDiff ( CNcbiOstream out,
const list< string > &  pubmed_auths,
const list< string > &  auths 
)
static

Definition at line 878 of file unpub_report.cpp.

References eFullMatch, eNoMatch, GetAuthorsCmpResultStr(), IsAuthorInList(), and out().

Referenced by ReportOnePub().

◆ ReportAuththors()

static void pub_report::ReportAuththors ( CNcbiOstream out,
const char *  prefix,
const list< string > &  auths 
)
static

Definition at line 949 of file unpub_report.cpp.

References out(), and prefix.

Referenced by ReportOnePub().

◆ ReportJournal()

static void pub_report::ReportJournal ( CNcbiOstream out,
const char *  prefix,
const CPubData data 
)
static

◆ ReportOnePub()

static void pub_report::ReportOnePub ( CNcbiOstream out,
const CCit_art pubmed_cit_art,
const CPubData data,
TEntrezId  pmid 
)
static

◆ ReportSeqIds()

static void pub_report::ReportSeqIds ( CNcbiOstream out,
const CPubData::TSeqIds ids 
)
static

Definition at line 861 of file unpub_report.cpp.

References out().

Referenced by ReportOnePub().

◆ ReportTitle()

static void pub_report::ReportTitle ( CNcbiOstream out,
const char *  prefix,
const CPubData data 
)
static

◆ ReportTitleDiff()

static bool pub_report::ReportTitleDiff ( CNcbiOstream out,
const list< string > &  pubmed_title_words,
const list< string > &  title_words 
)
static

Definition at line 918 of file unpub_report.cpp.

References NStr::EqualNocase(), NStr::FindNoCase(), and out().

Referenced by ReportOnePub().

◆ USING_SCOPE()

pub_report::USING_SCOPE ( objects  )

Variable Documentation

◆ authors_cmp_result_label

string pub_report::authors_cmp_result_label[]
static
Initial value:
= {
"AUTH_MISMATCH", "LAST_NAMES", "ONE_INIT", "TWO_INITS", "NO_HYPHENS", "FULL_NAMES"
}

Definition at line 868 of file unpub_report.cpp.

Referenced by GetAuthorsCmpResultStr().

◆ USING_NCBI_SCOPE

pub_report::USING_NCBI_SCOPE

Definition at line 48 of file journal_report.cpp.

Modified on Fri Jan 05 07:26:05 2024 by modify_doxy.py rev. 669887