It took less than half an hour to write this tool using java. The source code is available here and an executable jar file is available here.
The input is a standard pubmed query :
java -jar pubmedfrequencies.jar -term "Lindenbaum P[Author]" -n 20 > ~/page.html
or a list of pmidjava -jar pubmedfrequencies.jar -pmid 8985320,16027742,15047801,18053270,9682060 > ~/page.html
The output is a simple html table:
Mesh | 8985320 | 16027742 | 15047801 | 18053270 | 9682060 |
---|---|---|---|---|---|
Humans | X | X | X | ||
Animals | X | X | |||
Autistic Disorder | X | X | |||
(...) | |||||
RNA-Binding Proteins | X | X | |||
Rotavirus | X | X | |||
Software | X | ||||
Two-Hybrid System Techniques | X | ||||
Zinc Fingers | X |
well... that was not Big Science....
Note: Rajarshi Guha also suggested another solution: http://www.chembiogrid.org/cheminfo/rest/mesh/16234728,15674923,17443536
Pierre
Addendum:After the first comments, I've added a gui support and a count of the mesh terms in the result.
Pierre, I'm not able to make the .jar executable work. Any thoughts about what I might be doing wrong?
ReplyDeleteWhat's your version of java ? You need java 1.6
ReplyDeleteYep. That's what I've got (as a part of Java SE 6). I open the .jar, window opens for a split-second, then closes.
ReplyDeleteThe 1.6 through me a curve ball as well. My version was 1.5. Got 1.6 running and all is well.
ReplyDeleteThe links back to the records is a nice touch ;)
This indicates which terms apply to a given pmid, but doesn't tell you how many times it was used, which I think was part of what was asked for, wasn't it? Or, perhaps I'm missing something...
I know, I'm a lazy bum...I want it to count them up for me...I know I could just count them myself :)
ReplyDelete