creating_multiple_cases
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| creating_multiple_cases [2024/02/15 15:36] – created chris | creating_multiple_cases [2024/02/29 12:50] (current) – chris | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| ==Situation 2== | ==Situation 2== | ||
| - | | + | |
| - | Currently Pathotrainer only detects folders as cases, so we've written a quick script for Windows Command Prompt that will help you get your WSIs in an organised state. | + | In this scenario |
| - | **If you're using a filetype | + | 1) You can use a [[creating cases using pattern search|pattern search |
| - | Step 1: Open Command Prompt (type CMD into the windows search bar and open the app)\\ | + | -or- |
| - | Step 2: Navigate in Command Prompt to the folder with the WSIs. This is done by typing " | + | 2) You can use two or three easy Windows |
| - | + | ||
| - | Step 3: Now that you're in the right folder, copy and paste: **for %i in (*) do mkdir " | + | |
| - | + | ||
| - | Step 4: Copy and paste then enter: **for %i in (*) do move " | + | |
| - | {{ : | + | |
| - | + | ||
| - | **If you're using a folder-based filetype e.g. .mrxs that has a folder and a file with the same name** | + | |
| - | + | ||
| - | Step 1: Open Command Prompt (type CMD into the windows search bar and open the app)\\ | + | |
| - | + | ||
| - | Step 2: Navigate in Command Prompt to the folder with the WSIs. This is done by typing " | + | |
| - | + | ||
| - | Step 3: Now that you're in the right folder, copy and paste: **for /d %i in (*) do mkdir " | + | |
| - | + | ||
| - | Step 4: Copy and paste then enter:\\ **for /d %i in (*) do ( \\ | + | |
| - | if /i not " | + | |
| - | move " | + | |
| - | ) \\ | + | |
| - | )** | + | |
| - | + | ||
| - | This will copy all your existing folders | + | |
| - | + | ||
| - | Step 5: Copy and execute **for %i in (*) do move " | + | |
| - | This will move all the loose files into the directory with the same name plus " | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | Please note that: | + | |
| - | - You can adjust | + | |
| - | - This script only works when the folder and the file both have exactly the same name - if this is not the case you will need to devise a custom script as we cannot anticipate all naming conventions. | + | |
| - | - If you have multiple WSIs that have to go into the same case, you will need to devise a custom script as we cannot anticipate what your combination of WSIs per case is. | + | |
creating_multiple_cases.1708007772.txt.gz · Last modified: by chris
