-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun.bat
41 lines (34 loc) · 1.09 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
REM This batch script is used to test the miteFinder program
REM Set paths for input, output, and pattern scoring files
set INPUT_FILE=GCA_001433935.1.fasta
set OUTPUT_FILE=output.txt
set PATTERN_FILE=pattern_scoring.txt
REM Check if the input file exists
if not exist %INPUT_FILE% (
echo Input file %INPUT_FILE% does not exist. Exiting.
exit /b 1
)
REM Check if the pattern scoring file exists
if not exist %PATTERN_FILE% (
echo Pattern scoring file %PATTERN_FILE% does not exist. Exiting.
exit /b 1
)
REM Run the miteFinder program with the specified arguments
miteFinder.exe -input %INPUT_FILE% -output %OUTPUT_FILE% -pattern_scoring %PATTERN_FILE% -threshold 0
REM Check if the output file is created and not empty
if exist %OUTPUT_FILE% (
echo Output file %OUTPUT_FILE% created successfully.
) else (
echo Output file %OUTPUT_FILE% was not created.
exit /b 1
)
REM Display the output file content
if exist %OUTPUT_FILE% (
echo === Output file content ===
type %OUTPUT_FILE%
echo ==========================
) else (
echo No output file to display.
)
pause