sift:tutorials:command_line
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sift:tutorials:command_line [2024/09/25 14:32] – sgranger | sift:tutorials:command_line [2025/02/06 16:33] (current) – sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Batch Command Line Processing Tutorial====== | ======Batch Command Line Processing Tutorial====== | ||
- | In this tutorial, we will guide you through running Sift on the command line. You'll learn how to load a library, execute queries, run PCA (Principal Component Analysis), and use it for outlier detection. After walking through each command step by step, we’ll create a batch script to automate these tasks. We'll also include some logic to further streamline the process. To get started, download the sample data folder. {{automation_tutorial.zip}} | + | In this tutorial, we will guide you through running Sift on the command line. You'll learn how to load a library, execute queries, run PCA (Principal Component Analysis), and use it for outlier detection. After walking through each command step by step, we’ll create a batch script to automate these tasks. We'll also include some logic to further streamline the process. To get started, download the sample data folder. {{:automation_tutorial.zip}} |
=====Running on Command Line===== | =====Running on Command Line===== | ||
- First, we need to run Sift via the command line. On your keyboard, press Windows Key + R, type " | - First, we need to run Sift via the command line. On your keyboard, press Windows Key + R, type " | ||
- Next, navigate to Sift's installation directory. \\ {{: | - Next, navigate to Sift's installation directory. \\ {{: | ||
- | - To launch Sift, call the .exe file and pass the --NoGUI argument \\ {{: | + | - To launch Sift, call the .exe file and pass the -NoGUI argument \\ {{: |
- This will open new console where we can interact with Sift | - This will open new console where we can interact with Sift | ||
- | - In this console, load a library by entering the command: //--LoadLib directory " | + | - In this console, load a library by entering the command: //-LoadLib directory " |
- | - Next load and run a predefined query by entering: //--LoadQuery file " | + | - Next load and run a predefined query by entering: // |
- | - Select all signals by running //--SelectSignals// | + | - Select all signals by running // |
- | - Run a PCA named " | + | - Run a PCA named " |
- | - Now, let's perform the first round of outlier detection. Run a Local Outlier Factor (LOF) test with the command: //--RunLOF grouping " | + | - Now, let's perform the first round of outlier detection. Run a Local Outlier Factor (LOF) test with the command: //-RunLOF grouping " |
- | - To export the results of this LOF test, run: //--ExportPCA file "Path to exported txt file" exportFormat " | + | - To export the results of this LOF test, run: // |
- | - Next, run another LOF test, this time on workspaces: //--RunLOF grouping " | + | - Next, run another LOF test, this time on workspaces: //-RunLOF grouping " |
- | - Export the results of this LOF test as well: //--ExportPCA file "Path to exported txt file" exportFormat " | + | - Export the results of this LOF test as well: // |
- | - Finally, save the project to allow for future review in the GUI, if needed: //--SaveProject file "Path to saved project"// | + | - Finally, save the project to allow for future review in the GUI, if needed: // |
Now that processing is complete, we have two exports detailing group and workspace-level outliers, along with a saved project file that excludes all detected outliers. This can serve as a baseline for future processing. | Now that processing is complete, we have two exports detailing group and workspace-level outliers, along with a saved project file that excludes all detected outliers. This can serve as a baseline for future processing. | ||
Line 56: | Line 56: | ||
| | ||
:: Run Sift with the necessary commands to process the data | :: Run Sift with the necessary commands to process the data | ||
- | " | + | " |
) | ) | ||
) | ) | ||
Line 65: | Line 65: | ||
====The Execution==== | ====The Execution==== | ||
- | Now that we have a script ready to go, executing our processing | + | Now that we have our script ready, |
- Open the start menu and type Task Scheduler into the search bar \\ {{: | - Open the start menu and type Task Scheduler into the search bar \\ {{: | ||
- | - Open Task Scheduler \\ {{: | + | - Open Task Scheduler |
- | - In the Task Scheduler select | + | - In Task Scheduler, select |
- | - In the popup dialog enter a meaningful name in this case we went with " | + | - In the popup dialog, enter a meaningful name (in this case, we used " |
- | - In the next step ensure daily is selected | + | - On the next screen, select **Daily** |
- | - Next select what time of day you would like the task to run, we picked | + | - Now, choose the time of day you' |
- | - In the next step ensure start a program | + | - Ensure Start a Program |
- | - Now we will browse | + | - Browse |
- | - On the final screen review and press finish | + | - On the final screen, review |
- | - Finally | + | - Lastly, |
- | Now we are finished! We have set it up so our script | + | That' |
sift/tutorials/command_line.1727274751.txt.gz · Last modified: 2024/09/25 14:32 by sgranger