How to phrase search on PubMed

So, you know the title of an article, you want to search for it on PubMed, you paste in the title, put quote marks round it, maybe specify title field and then you find it? WRONG.

Incredibly, PubMed will not accept this. See information from PubMed here: https://pubmed.ncbi.nlm.nih.gov/help/#phrase-index

If your phrase isn’t a recognised concept in their arbitrary phrase index, you can’t search for it as a phrase. You’ll get a vague error message saying that part of the search was ignored.

To force the matter, you can use a proximity search with a proximity of zero, e.g. [ti:~0].

Furthermore, this can cause trouble when truncating. Suppose you’re searching “endometrial carcinoma*”[tw]

– this is fine, the visible phrase is recognised

You decide to truncate to include, say ‘endometrioid carcinoma’ too, so:

“endometr* carcinoma*”[tw]

NO GOOD! Despite this merely being an expansion of what you’ve just searched, it is not permitted on PubMed because it doesn’t recognise the phrase (due to the truncation).

Worse, you can’t use the Text Word field with proximity, so you can’t even do [tw: ~0]. You might consider [tiab:~0] EXCEPT you can’t use truncation with proximity either so that’s no good either.

In the end I think you’d just need to search for both phrases in full: “endometrial carcinoma*”[tw] OR “endometrioid carcinoma*”[tw]

But it’s a pretty unintuitive situation.

Combining reference download files to import into EndNote in one go

If you’re working with a source that lets you download references for import into reference management software like EndNote, but which only allows you to download a small number of references at a time (perhaps even just one at a time), is there a convenient way to avoid having to import each file individually?

As long as the downloaded files are text files (or something equivalent), then: yes!

Let’s take an example of EMF Portal – this downloads references one at a time in .ris format. (However, the process could equally be applied to, for example, EudraCT EU Clinical Trials Register, which permits you to download a page of results at a time, in .txt format – although you’d need to have created your own import filter for this (that will be covered here at some point in the future!)). These instructions are for PC.

– First download all the references – the default file format will be bibliography.ris, bibliography(1).ris, bibliography(2).ris, etc.
– Find the files. Initially, they’ll probably be in your download folder; however, if there’s any other files there called ‘bibliography’, you may wish to copy and paste all the new files into another folder (anywhere else, just for this process, everything can be deleted afterwards).
– Wherever you put the files, view them in that folder and click in the location box (where it says e.g. C:\Users\username\Documents\folder) – but just click in the box, don’t click any of the parent folders or it’ll just navigate there! If you click at the front or back of the location, it’ll be fine and highlight it.
– Type ‘cmd’ in the location box and press enter – this will open up the command line (there various other ways of opening the command line dialogue, but this is the easiest way to have the correct folder already selected!)
– First the .ris files need renaming into .txt files (.ris files can’t be combined but .txt files can – even though .ris are basically just .txt files), so type: ren bib*.ris bib*.txt
– Then, to combine the files, type: copy bib*.txt combinedbib.txt
– Finally, to turn the combined file back into a .ris file, type: ren combinedbib.txt combinedbib.ris

This should have created one file with all the EndNote references in – double click it normally in File Explorer and the import into EndNote should start.

Importing references in XML format from REHABDATA into EndNote

REHABDATA by NARIC is perhaps not top of the databases you’d consider essential to use for a literature search for most topics, but if you are using it (or indeed any other database that only exports in XML), how can you get your results into EndNote?

The following process I’ve come up with is based primarily on this helpful video’s process for converting XML files into an EndNote-friendly tab-delimited format.

Save your results from REHABDATA in XML format.

Open the file in Excel.

Edit the column headings to exactly match the EndNote fields you want the data to go into, and delete all unnecessary columns. So, for example, I’d suggest ending up with: Author, Title, Journal, Year, Volume, Issue, Pages, Abstract, Keywords, ISSN for journal articles.

If you’ve got book results, you’d probably want to cut and paste these out into a new Excel sheet, change the column headings to ones relevant to ‘Book’ reference type and repeat the process with a separate file.

Save the tidied up table as a Text (tab delimited) (*.txt) document.

Open this in Word.

Put the cursor at the start of the document, press return to get a blank line, and type:

*Journal article

(including the asterisk at the start)

Run a Find and Replace (Ctrl-H), for:

Find: | (vertical line – usually shift \ on UK keyboards)

Replace with: // (two forward-slashes)

Replace all

Find: (double-quote-mark symbol – usually shift 2 on UK keyboards)

Replace with: (nothing! leave blank)

Replace all

Save (as text file)

In EndNote, go to File > Import > File

Choose the edited text file.

Select Tab Delimited as the Import Option.

Go!

Success!

If you get an error saying you’ve got the wrong field names, this will be because one or more of your headings you were editing in Excel are not the correct exact wording of a corresponding field name in EndNote. Try again!

You may find some older results appear with all the journal details crammed in the title field. Unfortunately, that’s just how the data comes out of REHABDATA. Obviously you could do some cunning find/replaces (in Excel or Word or EndNote), but that’s not really part of the import process; I’ll leave that to you to work out if you have sufficient results of that format to warrant it!

Sharing searches on Ovid databases (or re-running searches from text)

(thanks to the Ovid support team for info about their search launcher tool)

You’ve done a long and complex search on Medline (or Embase or PsycInfo or whatever) on the Ovid platform, and you’d like to show it to someone else, so they can assess the results or play around with the search?

The ’email jumpstart’ function (from your saved searches) does not permit this unless the person using the jumpstart link is logged in on the same personal account. Sometimes setting up an account for a project may be a useful way forwards, but often it may not be practical.

Solution? Ovid have a really handy ‘search launcher’ tool: http://demo.ovid.com/demo/ovidsptools/launcher/launcher.html

It allows you to simply paste in the text of a search, pick the database you want to run it on (by choosing the appropriate code from their list) and run.

To share a search, you just need to send the search steps to your recipient in a format that can easily be pasted into the search launcher – this needs to be each step of the search on a new line, without set numbers or results numbers.

There are a number of ways to get this from your search – if you select one or more results and choose to export or print results, you can tick to include your search history (which you can then use), using this option, the easiest two routes seem to be:

Choose Print, click to view the print preview, copy the search history and paste into Word as a table, highlight and copy the correct column (without column heading).

Or: Export, choose to do so in XML format, save, open with Excel, highlight and copy the correct column (without column heading).

Send the search lines to whoever needs it, then they can paste into the launcher and start working with it.

Another interesting application of the search launcher is when you come across an existing search (in a review article appendix, for example), this tool means you can relatively easily re-run that search  without typing it in step at a time.

To prepare the search to be pasted into the launcher, you might want to go through this process:

Copy and paste the search into MS Word. I’m assuming each step of the search will be on a separate line, but will probably have the search step number at the start of the line (and this is what will need removing).

Put a blank line at the start of the document (to ensure there’s a paragraph mark before line ‘1’ – this will be needed shortly).

Press Ctrl+H to bring up Word’s Find and Replace function. Click More >>> to see the advanced options, and tick Use wildcards

In the ‘Find’ box put:

(^013)([0-9]@ )

With a space before that final bracket. This is telling Word to look for two things in sequence: a paragraph marker, then a digit 0-9 any number of times (i.e. any number) followed by a space.

In the ‘Replace’ box put:

^013

This is telling Word to replace with just a paragraph marker.

Replace All and that should be that.

If there is any other punctuation in the search, just add that into the ‘Find’ box as required; e.g. if you have dots after your step numbers, use: (^013)([0-9]@. )

You should end up with a tidied-up search with just each step on it’s own line – ready to be pasted into the launcher and run as a search.

***UPDATE***

If you have text you want to remove at the ends of lines, obviously you can add that in as part of the searched-for sequence.

If you want to use a character that would form part of the search syntax (for example, a bracket), use a backlash in front of it, e.g. \(

I found lots of helpful detailed info about what can be done with Word’s wildcard finding and replacing functionality here.

If you find the search text doesn’t paste correctly into the Search Launcher with line breaks, run another Find and Replace – with ‘Use wildcards’ unticked – to find ^013 and replace with ^p and this should definitely ensure regular line breaks are there to copy.

Finally, the link on the Search Launcher page seems out of date so, for convenience, here’s a current link to the list of most Ovid database shortname codes, plus it can be worth checking individual database guides (for e.g. Medline and Embase).

If rerunning a search in order to update a search (run in the past), and you only want to get results added since a date it was previously run, the best fields to use are (generally, currently, though there are other fields worth considering): ‘ed’ (‘Entry Date’) in Medline and ‘dc’ (‘Date Created’) in Embase, both applied using this format:

limit 57 to ed=20170329-20191128

(Limiting results from step 57 to entry dates of 29th March 2017 to 28th November 2019. In Embase, it would just be dc instead of ed)

Though note: ed generally won’t work for Medline E-pub Ahead of Print or In-Process & Other Non-Indexed Citations – to get new results from these sources, you may need to run the search independently on them without the ed limit.

***UPDATE 12/2021***
Ovid now has an incredibly useful function of a button that will create a link to your search that you can send to anyone, thus obviating the need to use the search launcher for this. However, the launcher still remains really handy when you have a long search in text format that you want to run.

Fixing broken/corrupted EndNote citations

Uh oh! EndNote citations that look active, but some have stopped responding to EndNote at all? Won’t format into a new style nor appear in the references and won’t convert into unformatted citations? But if you view field codes, they look okay? Mysterious and frustrating?

I think this is caused by editing on other word processors, but I’m also suspicious of Track Changes and the copy & pasting of formatted citations.

Solution? There doesn’t seem to be any way to fix these broken citations directly. Best straightforward(ish) option: unformat citations, remove field codes from the document (turning the broken ones into plain text), then go through and reinsert them from EndNote manually.

If you’d been using an author-date style, you can automate this slightly by changing EndNote’s temporary citation delimiters to round brackets, meaning EndNote will go through and pick up on all the defunct citations. However, it’ll also pick up on anything else in a bracket, plus it won’t match the citations directly with the EndNote library (et als, no record numbers), so you’ll need to select & insert each citation.

Not ideal! What if you’ve got loads of these corrupted citations? And you’ve got loads of other stuff in brackets and/or you’ve used a numbered style?

THERE IS SOMETHING THAT CAN BE DONE.

This is it:

Convert all still-functional citations to unformatted citations.

Press Alt+F9 (display field codes in the document) and you should see the broken citations as field codes, including a load of data about the reference – this is what can be used.

Press Alt+F9 to switch back. Unfortunately getting the actual text of the field codes is not straightforward. But someone has made something that will do it:

http://www.gmayor.com/export_field.htm

(I can’t guarantee that this isn’t some kind of cunning virus thing, but I’m fairly confident that that’s not the case.)

Once you’ve downloaded it, then installed it, you can access it from the ‘Developer’ tab in Word.

Go through the document, highlighting it and running the converter in chunks (I think it can only process a certain amount of text at a time). (Also: avoiding headings and other non-standard text, as it’ll clear the formatting).

So, your broken EndNote citations will now be weird long field code text. But you can modify them (with Word’s Find/Replace function – Ctrl+H) so that EndNote thinks they’re unformatted citations!

Semi-colons in multiple citations are a hurdle and a few of these Find/Replaces are for dealing with them. The others are designed to clean up at least the start of each field code so EndNote will pick them up.

Find/Replace these, in this order (if ‘?’ is used, activate wildcards for that search, otherwise don’t)

19??; WITH ~CHECK DATE~

20??; WITH ~CHECK DATE~

</Cite><Cite><Author> WITH }{

ADDIN EN.CITE <EndNote><Cite><Author> WITH NOTHING

</Author><Year> WITH COMMA SPACE

</Year><RecNum> WITH SPACE HASH

</RecNum> WITH @@

&???;  WITH NOTHING

&apos; WITH NOTHING

{ADDIN EN.CITE.DATA} WITH ~BROKEN CITATION~

 

(That last one is for totally unrecoverable ones that don’t have full field code data – they’ll need to be searched for later and reinserted manually.)

Then ‘Update Citations & Bibliography’ and cross your fingers.

Adding Impact Factors to EndNote references

Based on this discussion, a solution seemed feasible.

Adding the Impact Factor to an empty field in the references themselves is probably possible, but the Find/Replace options within EndNote aren’t sophisticated enough to do it, so the process would involve exporting the Library out into Excel, running the replacements, then importing back – which is likely to run into a load of other problems en route. Plus: any new references added to the library would need the Impact Factor adding (or the whole process to be run again).

Better: use term lists to make the replacements. You will need: EndNote’s term list (in the case I was working on it was the medical one), and a full table of current Impact Factors downloaded in Excel format from Journal Citation Reports.

Instructions (I’m sure some of these could be refined if I was better at Excel, but this will work):

Open both the term list (as a UTF-8 tab-delimited text file) and the downloaded IF list in Excel (and paste them into the same file).

You can try and tidy up the IF list a little to match the term list formatting (e.g. a find/replace “fur” -> “für” to cover the German journal names).

In the term list, copy the full journal names into an additional column. Use Excel’s VLOOKUP function to replace that column with the appropriate value from the IF table.

Copy that column as values into a new column (then delete the old one) then replace “#N/A” with just “n/a” (or whatever you want to see if there is no IF for that journal). Fix any notable values that didn’t get picked up (e.g. BMJ/British Medical Journal).

So now hopefully you’ve got the term list with an extra column with IF values (or “n/a” or something if it doesn’t have one). The final steps depend how you want the IF to appear.

 

If you’re happy for it to appear with the journal name in the reference, e.g. Journal of Stuff (IF 2014: 3.021) 42(1) 567-578, then:

Create a new column that uses CONCATENATE to combine the IF column with the full journal name column to get the Journal of Stuff (IF 2014: 3.021) format (or however you’d like it).

Paste that column to replace the Abbreviation 1 column (and delete all columns beyond Full/Abbreviation 1/Abbreviation 2/Abbreviation 3).

Save as a text file. [To get the right formatting (to avoid weird glitches), I found I had to save it from Excel as an Excel file, then open it in Access and save it as a text file (without ” ” markers), then open in Notepad and save as a UTF-8 format text file. Madness.]

Then you can import the term list into your EndNote library as normal (remembering to delete anything already in the journal term list before you import), then finally edit your style to use Abbreviation 1 (without removing periods), and boom, you’re sorted.

If you want abbreviated journal titles in your references, then just use the Abbreviation 1 or Abbreviation 2 column (depending on whether you want dots or not) in the CONCATENATE stage. I’d still always finish by replacing the Abbreviation 1 column with the modified journal name + IF, since journal titles generally don’t appear in that format when they get imported into EndNote (i.e. that column is not needed for ‘recognising’ the journal name from your EndNote library references).

 

If you want the IF to appear separately to the journal name, e.g. Journal of Stuff 42(1) 567-578 (IF 2014: 3021), then:

Paste just the IF (just the number) into the Abbreviation 1 column. Save as a UTF-8 text file without ” ” markers in the elaborate way mentioned above.

Now, in your EndNote library, first make sure the values in the ‘Journal’ field is correct for all references (so if you have results from PubMed (which for mysterious reasons includes an abbreviated journal title in the ‘Journal’ field and the full name in ‘Alternative Journal’), identify those references, select them all and use Tools > Change/Move/Copy fields… to move ‘Alternative Journal’ field values to ‘Journal’). Then use the Change/Move/Copy on the whole library to copy the ‘Journal’ field to an unused field (e.g. ‘Tertiary Title’).

Finally, import the IF-enhanced term list, then modify your style so that the journal article template features ‘Tertiary Title’ where the journal name needs to be and ‘Journal’ where the IF needs to be, and choose to use ‘Abbreviation 1’ for abbreviation format. Bosh!

 

Obviously, once you’re using any of these systems, if you spot any journal names that are missing the correct IF, just edit the term list appropriately.

 

Hmm, writing that all down, it sounds pretty bad, but honestly, it’s actually not too fiddly – and it works!