Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 441 Bytes
#!/bin/bash
echo "Getting pubs"
esearch -db pubmed -query "harm reduction" | efetch -format "medline" | grep "AD - " > pubmed_harm_reduction_affiliations.txt
echo "Tallying affiliations"
echo "speciality,count" > affiliation_counts.csv
while IFS="\n" read -r line
do
echo "$line,$(grep -c -i -E "$line" pubmed_harm_reduction_affiliations.txt)" >> affiliation_counts.csv
done < speciality_list.txt
echo "Plotting data"
python plot.py
You can’t perform that action at this time.