GithubHelp home page GithubHelp logo

brunograndephd / authorlist Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 5 KB

Simplify the task of maintaining a long author list and the corresponding affiliations

License: MIT License

Python 100.00%

authorlist's Introduction

authorlist

Simplify the task of maintaining a long author list and corresponding affiliations.

Input Files

All you need is two tab-delimited files containing the authors and affiliations.

authors.tsv

The first column contains the author names. The author order in this file will determine the author order in the output. The affiliation IDs listed in the second column have to match an ID in the affiliations file. Multiple affiliations for an author can be indicated using a comma-delimited list (no spaces), as shown below. Because of this, the only restriction on the affiliation IDs is that they cannot contain commas. You don't even need to use numbers; you could simply use acronyms that are easier to remember as the affiliation IDs.

Bruno M. Grande	mbb
Nicole Knoetze	mbb
Ryan D. Morin	gsc,mbb

affiliations.tsv

The first column contains an ID for each affiliation. The second column contains the full affiliation name. The order of the affiliations in this file doesn't matter. Any affiliations that appear in this file but are not referenced in the authors file will be excluded from the output.

gsc	Canada's Michael Smith Genome Sciences Centre, British Columbia Cancer Agency, Vancouver, BC, Canada 
mbb	Department of Molecular Biology and Biochemistry, Simon Fraser University, Burnaby, BC, Canada 

Example Usage

Generating the output is as simple as running the following command:

$ python authorlist.py -f markdown_github authors.tsv affiliations.tsv
Bruno M. Grande<sup>1</sup>, Nicole Knoetze<sup>1</sup>, Ryan D. Morin<sup>2,1</sup>

<sup>1</sup>Department of Molecular Biology and Biochemistry, Simon Fraser University, Burnaby, BC, Canada.
<sup>2</sup>Canada's Michael Smith Genome Sciences Centre, British Columbia Cancer Agency, Vancouver, BC, Canada.

The default format is pandoc-flavoured Markdown, which can be used in various places such as R Markdown documents. Github-flavoured Markdown is also supported, as displayed below. Other formats can be easily implemented.

Example Output

Bruno M. Grande1, Nicole Knoetze1, Ryan D. Morin1,2

1Department of Molecular Biology and Biochemistry, Simon Fraser University, Burnaby, BC, Canada. 2Canada's Michael Smith Genome Sciences Centre, British Columbia Cancer Agency, Vancouver, BC, Canada.

authorlist's People

Contributors

brunograndephd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.