Ceci est une ancienne révision du document !
Last month, I briefly touched on the macro recorder and using batch files to improve my job efficiency. For the past five years, I collected vertebral motion data using motion capture and pressure pads. Vertebral motion testing is an osteopathic technique for lumbar spine testing. The purpose of this testing is to discern lumbar problems. The lumbar spine is the last 5 segments above your pelvis. If I have low back pain, then one of these segments will be “stuck in an unnatural position.” Working with my primary investigator, I finished processing this data set to create a data warehouse. The warehouse’s sole purpose is to answer research questions related to vertebral motion testing
Luckily for me, I collected the vertebral motion in the same protocol procedures over the past 5 years. The data was collected in a yearly class elective, thus we had multiple student examiners, research participants, and unique findings. However, the data files needed to be renamed to a standardized naming convention. I could use the terminal to rename the files, but I wanted the GUI option. I did not want to blindly rename a file data set via the terminal.
A simple search in the software center offered Krename and pyRenamer. Krename is a KDE desktop app. This app has documentation, but it was not an easy interface. I chose pyRenamer due to an easier interface for a new user. It worked well and offered a preview pane to ensure quality control.
When you open pyRenamer, a simple interface opens. The first step is to find the folder pathway to the file batch that needs to be renamed. This is the upper left third of the interface. The upper third pane is the preview of what the files will be changed too. The bottom portion is the program command options. The Patterns tab will identify a naming scheme and will automatically change the filenames. If there is one file there you want to name, you can do a manual rename. I did not have images to name, so I am unsure of this tab. I found the easiest and most useful tabs were the insert/delete and substitutions. I can easily insert or delete words or characters to make a standardized filename.
These are the steps that I applied. I choose the folder pathway first. I then clicked the substitution tab and clicked the replace function. In the example above, I replaced Research with Develop. The preview pane shows the new filenames. If the new filename was off, I could easily change it. By clicking the Rename button, the files assume the new desired names. This app allowed me to safely rename one third of the mismatched data set within 4 hours. This would be approximately 500 files.