BD Sortware for the Influx names all its files with non-descriptive names. When backing up and cleaning our PC we run this script to rename the workspace XML files to a more descriptive name, as is seen in Sortware itself. This script renames all XML files in its folder and subfolders to the 'name' tag of the file.
Find the script on GitHub: https://github.com/SangerCytometry/Influx-workspace-renamer
It is recommended that you test the script first or use it on a backed up data.
Video instructions: https://youtu.be/hUFP-CFwYOk
This script uses Python V3.
- Place the .py file into the top folder of your saved workspaces, which can be found in the BD folder.
- Run the script.
- The script will then rename all the files from configuration1.xml to whatever is in the 'Name' tag in the xml file.
- If you have 2 files with the same 'name' tag then the script will add a random number to prevent overwriting.
- Windows filenames cannot contain any of the following charactors [\/*?:"<>|] If yours does then it will be replaced with a -