Skip to content

Commit

Permalink
Merge pull request #28 from htwangtw/update_affcleaner
Browse files Browse the repository at this point in the history
ENH/NF affiliation table clearner for author list in paper
  • Loading branch information
shawnrhoads authored Feb 17, 2021
2 parents 38ea059 + dc44a69 commit 8e5f81d
Show file tree
Hide file tree
Showing 7 changed files with 700 additions and 13 deletions.
39 changes: 26 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,47 @@ osf_neuroviewcontributors=affiliation_and_consent_for_the_brainhack_neuroview_pr
osf_contributors=affiliation_and_consent_for_the_brainhack_neuroview_preprint_raw.tsv

contributors:
osf -p ${osfid} fetch ${osf_neuroviewcontributors} data/preprint_contributors.tsv; \
osf -p ${osfid} fetch ${osf_contributors} data/contributors.tsv
osf -p ${osfid} fetch ${osf_neuroviewcontributors} data/${osf_neuroviewcontributors}
cp data/${osf_neuroviewcontributors} data/contributors.tsv
cp data/${osf_neuroviewcontributors} data/preprint_contributors.tsv

brainhack_book/preprint_contributors.md : data/preprint_contributors.tsv brainhack_book/preprint_contributors_descriptions.md brainhack_book/mdtable.py
python brainhack_book/mdtable.py -f data/preprint_contributors.tsv \
brainhack_book/preprint_contributors.md : data/preprint_contributors.tsv brainhack_book/preprint_contributors_descriptions.md scripts/mdtable.py
python scripts/mdtable.py \
-f data/preprint_contributors.tsv \
-d brainhack_book/preprint_contributors_descriptions.md \
-t brainhack_book/preprint_contributors.md --contributor;
-t brainhack_book/preprint_contributors.md \
--contributor;

brainhack_book/contributors.md : data/contributors.tsv brainhack_book/contributors_descriptions.md brainhack_book/mdtable.py data/contributors.tsv
python brainhack_book/mdtable.py -f data/contributors.tsv \
brainhack_book/contributors.md : data/contributors.tsv brainhack_book/contributors_descriptions.md scripts/mdtable.py data/contributors.tsv
python scripts/mdtable.py \
-f data/contributors.tsv \
-d brainhack_book/contributors_descriptions.md \
-t brainhack_book/contributors.md --contributor;
-t brainhack_book/contributors.md \
--contributor;

brainhack_book/preprint_acknowledgments.md : data/preprint_acknowledgments.csv brainhack_book/preprint_acknowledgments_descriptions.md brainhack_book/mdtable.py
python brainhack_book/mdtable.py -f data/preprint_acknowledgments.csv \
brainhack_book/preprint_acknowledgments.md : data/preprint_acknowledgments.csv brainhack_book/preprint_acknowledgments_descriptions.md scripts/mdtable.py
python scripts/mdtable.py \
-f data/preprint_acknowledgments.csv \
-d brainhack_book/preprint_acknowledgments_descriptions.md \
-t brainhack_book/preprint_acknowledgments.md;

brainhack_book/acknowledgments.md : data/acknowledgments.csv brainhack_book/acknowledgments_descriptions.md brainhack_book/mdtable.py
python brainhack_book/mdtable.py -f data/acknowledgments.csv \
brainhack_book/acknowledgments.md : data/acknowledgments.csv brainhack_book/acknowledgments_descriptions.md scripts/mdtable.py
python scripts/mdtable.py \
-f data/acknowledgments.csv \
-d brainhack_book/acknowledgments_descriptions.md \
-t brainhack_book/acknowledgments.md;

preprint: brainhack_book/preprint_acknowledgments.md brainhack_book/preprint_contributors.md

bookpage: brainhack_book/contributors.md brainhack_book/acknowledgments.md

manuscript : data/affiliations_curated.tsv data/coreteam_ranking.tsv
ifeq (,$(wildcard data/${osf_neuroviewcontributors}))
osf -p ${osfid} fetch ${osf_neuroviewcontributors} data/${osf_neuroviewcontributors}
endif
python scripts/neuroview_author_ranking.py
bash scripts/neuroview_affiliations_organizer.sh

book :
jupyter-book build brainhack_book

Expand All @@ -38,7 +52,6 @@ tests :

clean :
rm -r brainhack_book/_build/
# rm data/*contributors.tsv
rm brainhack_book/preprint_acknowledgments.md
rm brainhack_book/preprint_contributors.md
rm brainhack_book/contributors.md
Expand Down
Loading

0 comments on commit 8e5f81d

Please sign in to comment.