Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 441 Bytes
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
echo "$line,$(grep -c -i -E "$line" pubmed_harm_reduction_affiliations.txt)" >> affiliation_counts.csv
done < speciality_list.txt
echo "Plotting data"
You can’t perform that action at this time.