示例#1
0
    def get_authors(self):
        """

        :param pubme_ids:
        """
        pubmed_object = PubmedSearcher(self.email)
        names = pubmed_object.get_authors_list(self.pubmed_id)
        # self.users["contributor_id"] = self.users["id"]
        # concatenated = pandas.DataFrame.merge(self.users, self.people, how='left', left_on='person_id', right_on='id',
        #                                       left_index=False, right_index=False, sort=True,
        #                                       suffixes=('_x', '_y'), copy=True)


        concatenated = self.users
        concatenated["contributor_id"] = concatenated["id"]
        filtered = concatenated[concatenated.last_name.isin(names["LastName"])]

        r = filtered["contributor_id"]

        if 0 == filtered.shape[0]:
            print("No Results ask_publication_authors")

        assert isinstance(r, pandas.Series)
        return r
示例#2
0
 def get_pubmed_pubs(self):
     x = PubmedSearcher()
     auths = ""
     pubs = x.get_auths_pubs(auths)
     y = x.get_authors_list(pubs)
     print y