Python code to create folders and Word documents for research papers in biomedical sciences — multi function go together with only two inputs
I’m a researcher with over seven years of experience working in public health and epidemiological research. Each time I’m about to begin a brand new research paper, I create a folder for this project, inside multiple folders for every section of my work, and Word documents for the manuscript with specific headings. Having published over 170 peer-review papers, I should have done this process over 200 times. I believe it’s about time to automatize this process, and I’ll share with you methods to achieve this!
At the tip of the post, you will see that the complete code. You simply have to copy and paste it onto your favorite Python environment and hit run. The code will generate the function create_project_structure. This function will create a folder structure and Word documents ready so that you can go straight to work in your research paper.
What does this function do?
This function will generate a folder in a specified path (base_path
), and this folder can be named as you want (project_name
). This function will even create two Word documents, one for the supplementary materials and…