Skip to content

These scripts are part of a project work done for the certificate course "Data Steward" at the University of Vienna. It focuses on data management of microCT data.

License

Notifications You must be signed in to change notification settings

rabenacorvus/microct-data-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

microct-data-auto

These scripts are part of a project work done for the certificate course "Data Steward" at the University of Vienna. It focuses on data management of microCT data.

move_and_rename.py

This script is based to work on the directory structure and metadata files created by the YXLON software Cera, after reconstructing microCT data.

The script will

  • create a list of paths for subfolders withing a specified directory ("basepath") that contain a certain phrase ("phrase")
  • move specified .XML files in the move_recon_xml function two directories up
  • rename specified .XML files to include the name of the folder they are stored in.

How to use:

Insert file names that should be moved in line 54 and following

Insert all file names that should be renamed to contain the name of the folder they are located in, in line 38 and following

Optional: change where the files will be moved to in line 53

Open terminal and change directory to the one containing the script

If necessary: pip install click

python move_and_rename.py --basepath /path/to/directory --phrase "phrase"

zipping.py

This script will archive folders containing a certain phrase ("phrase") within a specified directory ("basepath") and rename them to contain the name of the folder they are located in.

How to use:

Open terminal and change directory to the one containing the script

If necessary: pip install click

python zipping.py --basepath /path/to/directory --phrase "phrase" --limit optional, maximum number of folders that should be archived --archive_name optional, new name of archive

concerning --archive_name:

This is the name of the archive before the initiation of the renaming the .zip folder to contain the name of the folder it is located in.

About

These scripts are part of a project work done for the certificate course "Data Steward" at the University of Vienna. It focuses on data management of microCT data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages