Skip to content

Commit

Permalink
Add checks for Bruker timsTOF Flex analysis.tsf format
Browse files Browse the repository at this point in the history
  • Loading branch information
FarmGeek4Life committed Aug 25, 2024
1 parent 4662cf4 commit 4a80188
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MSFileInfoScanner/MSFileInfoScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,7 @@ public override bool ProcessMSFileOrDirectory(

if (PathUtils.FindFilesWildcard(datasetDirectory, BrukerXmassFolderInfoScanner.BRUKER_BAF_FILE_NAME).Count > 0 ||
PathUtils.FindFilesWildcard(datasetDirectory, BrukerXmassFolderInfoScanner.BRUKER_TDF_FILE_NAME).Count > 0 ||
PathUtils.FindFilesWildcard(datasetDirectory, BrukerXmassFolderInfoScanner.BRUKER_TSF_FILE_NAME).Count > 0 ||
PathUtils.FindFilesWildcard(datasetDirectory, BrukerXmassFolderInfoScanner.BRUKER_SER_FILE_NAME).Count > 0 ||
PathUtils.FindFilesWildcard(datasetDirectory, BrukerXmassFolderInfoScanner.BRUKER_FID_FILE_NAME).Count > 0 ||
PathUtils.FindFilesWildcard(datasetDirectory, BrukerXmassFolderInfoScanner.BRUKER_BAF_FILE_NAME + "_idx").Count > 0 ||
Expand Down Expand Up @@ -1375,6 +1376,11 @@ public override bool ProcessMSFileOrDirectory(
mMSInfoScanner = new BrukerXmassFolderInfoScanner(Options, LCMS2DPlotOptions);
knownMSDataType = true;
}
else if (fileOrDirectoryInfo.Name.Equals(BrukerXmassFolderInfoScanner.BRUKER_TSF_FILE_NAME, StringComparison.OrdinalIgnoreCase))
{
mMSInfoScanner = new BrukerXmassFolderInfoScanner(Options, LCMS2DPlotOptions);
knownMSDataType = true;
}
else if (fileOrDirectoryInfo.Name.Equals(BrukerXmassFolderInfoScanner.BRUKER_EXTENSION_BAF_FILE_NAME, StringComparison.OrdinalIgnoreCase))
{
mMSInfoScanner = new BrukerXmassFolderInfoScanner(Options, LCMS2DPlotOptions);
Expand Down
4 changes: 4 additions & 0 deletions MSFileInfoScanner/Readers/BrukerXmassFolderInfoScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class BrukerXmassFolderInfoScanner : ProteoWizardScanner
public const string BRUKER_BAF_FILE_NAME = "analysis.baf";
public const string BRUKER_TDF_FILE_NAME = "analysis.tdf";
public const string BRUKER_TDF_BIN_FILE_NAME = "analysis.tdf_bin";
public const string BRUKER_TSF_FILE_NAME = "analysis.tsf";
public const string BRUKER_TSF_BIN_FILE_NAME = "analysis.tsf_bin";
public const string BRUKER_SER_FILE_NAME = "ser";
public const string BRUKER_FID_FILE_NAME = "fid";
public const string BRUKER_EXTENSION_BAF_FILE_NAME = "extension.baf";
Expand Down Expand Up @@ -829,6 +831,8 @@ public override bool ProcessDataFile(string dataFilePath, DatasetFileInfo datase
BRUKER_BAF_FILE_NAME,
BRUKER_TDF_FILE_NAME,
BRUKER_TDF_BIN_FILE_NAME,
BRUKER_TSF_FILE_NAME,
BRUKER_TSF_BIN_FILE_NAME,
BRUKER_SER_FILE_NAME,
BRUKER_FID_FILE_NAME,
BRUKER_EXTENSION_BAF_FILE_NAME
Expand Down

0 comments on commit 4a80188

Please sign in to comment.