Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/main/java/edu/ucsd/msjava/msdbsearch/SearchParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class SearchParams {
private boolean allowDenseCentroidedPeaks;
private int minMSLevel;
private int maxMSLevel;
private int outputFormat; // 0=mzid, 1=tsv, 2=both

public SearchParams() {
}
Expand Down Expand Up @@ -232,6 +233,19 @@ public int getMaxMSLevel() {
return maxMSLevel;
}

/** 0=mzid, 1=tsv, 2=both */
public int getOutputFormat() {
return outputFormat;
}

public boolean writeMzid() {
return outputFormat == 0 || outputFormat == 2;
}

public boolean writeTsv() {
return outputFormat == 1 || outputFormat == 2;
}

/**
* Look for # in dataLine
* If present, remove that character and any comment after it
Expand Down Expand Up @@ -421,6 +435,7 @@ public String parse(ParamManager paramManager) {
}

allowDenseCentroidedPeaks = paramManager.getAllowDenseCentroidedPeaks() == 1;
outputFormat = paramManager.getOutputFormat();

IntRangeParameter msLevelParam = paramManager.getMSLevelParameter();
minMSLevel = msLevelParam.getMin();
Expand Down
Loading