-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpubmed.m
49 lines (43 loc) · 1.77 KB
/
pubmed.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
function pubmed()
%
% Modified 20220118 by Diek W. Wheeler, Ph.D.
addpath data lib output
[PMIDs] = initialize_variables();
% pmstruct = getpubmed('8946282')
% pause
fileName = sprintf('output/pubmed_addendum_%s.csv', datestr(now, 'yyyymmddHHMMSS'));
fid = fopen(fileName,'w');
fprintf(fid, 'authors,pmid_isbn,pmcid,nihmsid,doi,citation_count,open_access,first_page,last_page,title,year,publication,volume,issue,type_mapped,packet\n');
for i = 1:length(PMIDs.unique)
pmstruct = getpubmed(PMIDs.unique(i));
% pmstruct.Authors = 'Martinez A, Lubke J, Del Rio JA, Soriano E, Frotscher M';
% pmstruct.PMID = '8946282';
% pmstruct.PMCID = '';
% pmstruct.DOI = '10.1002/(SICI)1096-9861(19961202)376:1<28::AID-CNE2>3.0.CO;2-Q';
% pmstruct.FirstPage = '28';
% pmstruct.LastPage = '44';
% pmstruct.Title = 'Regional variability and postsynaptic targets of chandelier cells in the hippocampal formation of the rat.';
% pmstruct.Year = '1996';
% pmstruct.Publication = 'J Comp Neurol';
% pmstruct.Volume = '376';
% pmstruct.Issue = '1';
fprintf(fid,'"%s",%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s\n',...
pmstruct.Authors,...
pmstruct.PMID,...
pmstruct.PMCID,...
'',... % NIHMSID
pmstruct.DOI,...
'',... % citation count
'',... % open access
pmstruct.FirstPage,...
pmstruct.LastPage,...
pmstruct.Title,...
pmstruct.Year,...
pmstruct.Publication,...
pmstruct.Volume,...
pmstruct.Issue,...
'',... % type mapped
''); % packet
end
fclose(fid);
end % pubmed()