An institution's output
After this page you can list the refereed papers of an institution and all its departments over a period, separate the papers it led from those it took part in, break them down by year and journal, name the institutions it worked with, and export the list.
The question
“What did we publish in the review period, how much of it did we lead, and who did we work with?”
The institution and its departments
Authors give their affiliation at different levels, and a condition on an institution matches only that one identifier. Start with the institution together with its children:
from scixplorer import Affiliation, Document, export, search
caltech = Affiliation.get(abbreviation="Caltech")
family = [caltech, *caltech.children]
[unit.abbreviation for unit in family]
# -> ['Caltech', 'LIGO Livingston', 'Big Bear Sol Obs', 'Div Chem', 'Div Geo Plan Sci', 'IPAC', 'Div Phy Math Ast', 'JPL'children goes one level down. For an institution with departments inside its schools, add each child’s
own children too.
Papers it took part in, and papers it led
Document.affiliation matches when any author is at one of the institutions. Document.authors[0]
is the first author:
period = Document.year.between(2000, 2016) & (Document.property == "refereed")
took_part = (
Document
.select()
.where(Document.affiliation.in_(family) & period)
.order_by(Document.year)
)
led = (
Document
.select()
.where(Document.authors[0].affiliation.in_(family) & period)
.order_by(Document.year)
)
[paper.bibcode for paper in took_part]
# -> ['2001ApJ...553...47F', '2015GeoRL..42..264E']
[paper.bibcode for paper in led]
# -> ['2015GeoRL..42..264E']The first-author condition is sent to SciX as a position in the list of institution identifiers:
search.to_solr(led)
# -> pos(aff_id:("A01093" OR "A11207" ORBy year and by journal
The results are ordinary Python objects, so count them however the report needs. paper.journal is the
journal named by the bibcode, with its full title:
from collections import Counter
Counter(paper.year for paper in took_part)
# -> Counter({2001: 1, 2015: 1})
Counter(paper.journal.title for paper in took_part)
# -> Counter({'The Astrophysical Journal': 1, 'Geophysical Research Letters': 1})
sum(paper.citation_count for paper in took_part)
# -> 2864Partner institutions
For each paper, collect the institutions of the authors who are not yours. Climbing to the top-level institution counts a university once, whichever of its departments the co-authors gave:
def top_level(affiliation):
while affiliation.parent is not None:
affiliation = affiliation.parent
return affiliation
ours = set(family)
partners = Counter()
for paper in took_part:
partners.update({
top_level(affiliation).abbreviation
for author in paper.authors
for affiliation in author.affiliation
if affiliation not in ours
})
sorted(partners.items())
# -> [('ANU', 1), ('CIW', 1), ('Harvard U', 1), ('NOAO', 1), ('Rutgers U', 1), ('Swinburne U Tech', 1), ('U AZ', 1), ('U Camb', 1)]Each partner is counted once per paper. For countries, collect affiliation.country in the same way.
Export the list
Every export function accepts a query:
print(export.bibtex(led, sort=Document.year.desc()))
# -> @ARTICLE{2015GeoRL..42..264E,With ads
With the ads package you would look up the identifier of every department by hand, write the pos()
query as a string, and work out journal titles, parent institutions and countries from tables of your own.
Things to know
- Only curated affiliations count. A paper whose authors’ institutions SciX has not identified is missed
by both searches;
Document.aff == "Caltech"searches the affiliations as the papers wrote them. - One condition may name at most 1000 institutions; see Affiliations. A university with its departments is far below that, but every institution of a large country is not.
- “Led” here means the first author. For fields that list authors alphabetically, it means little.