我正在嘗試在 Windows 上創建一個批處理檔案來運行這個 psiblast 應用程式。該命令的示例如下:
psiblast -db swissprot -query ./seq/C3W5S7.FASTA -out ./out/C3W5S7.FASTA
輸入是“-query”選項,輸出是“-out”選項。
我有一個檔案夾“seq”,其中包含用于查詢應用程式的所有輸入資料檔案。輸入檔案都以其唯一的 ID 命名(例如,在本例中為 C3W5S7)。如何動態獲取此檔案名并類似地將其用作輸出中的檔案名?
對此的任何幫助將不勝感激。
uj5u.com熱心網友回復:
@ECHO OFF
SETLOCAL
rem The following settings for the source directory, destination directory are names
rem that I use for testing and deliberately include names which include spaces to make sure
rem that the process works using such names. These will need to be changed to suit your situation.
SET "sourcedir=u:\your files"
SET "destdir=u:\your results"
FOR %%b IN ("%sourcedir%\*.fasta") DO IF NOT EXIST "
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/428985.html
