Tag Archives: string variables

Python: Working with text files & PubMed references part 5

I am assuming you have followed the previous tutorials in this short series on how to manipulate Pubmed references using Python (1, 2, 3, 4). We have cleaned up the references by removing unwanted fields and ensuring sections like the abstract are not split over multiple lines. The cleaned references are saved in a text file cleaned_pubmed_refs.txt. We are now

Read more

Python: Working with text files, an example using PubMed references

My colleagues and I recently needed to identify all the PubMed references on a given topic and locate email addresses of the corresponding authors. The good news is that the Author information section of PubMed references contains one or more email addresses approximately half of the time. This meant that I could automate the extraction of these email addresses by

Read more