Skip to content

Commit

Permalink
Enable parsing of Comet TSV files
Browse files Browse the repository at this point in the history
  • Loading branch information
julianu committed Dec 15, 2023
1 parent 523db8e commit e041584
Show file tree
Hide file tree
Showing 6 changed files with 5,699 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>de.mpc.pia</groupId>
<artifactId>pia</artifactId>
<version>1.4.11</version>
<version>1.5.0</version>
<name>PIA - Protein Inference Algorithms</name>
<url>https://github.com/mpc-bioinformatics/pia</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.apache.logging.log4j.Logger;

import de.mpc.pia.intermediate.compiler.PIACompiler;
import de.mpc.pia.intermediate.compiler.parser.searchengines.CometTSVFileParser;
import de.mpc.pia.intermediate.compiler.parser.searchengines.MascotDatFileParser;
import de.mpc.pia.intermediate.compiler.parser.searchengines.TandemFileParser;
import de.mpc.pia.intermediate.compiler.parser.searchengines.ThermoMSFFileParser;
Expand All @@ -20,6 +21,38 @@ public class InputFileParserFactory {
private static final Logger LOGGER = LogManager.getLogger();

public enum InputFileTypes {

/**
* the input file is a Comet TSV file
*/
COMET_TSV_INPUT {
@Override
public String getFileSuffix() {
return "txt";
}

@Override
public String getFileTypeName() {
return "Comet TSV";
}

@Override
public String getFileTypeShort() {
return "comet";
}

@Override
public boolean checkFileType(String fileName) {
return CometTSVFileParser.checkFileType(fileName);
}

@Override
public boolean parseFile(String name, String fileName,
PIACompiler compiler, String additionalInfoFileName) {
return CometTSVFileParser.getDataFromCometTSVFile(name, fileName, compiler);
}
},

/**
* the input file is a FASTA database file
*/
Expand Down
Loading

0 comments on commit e041584

Please sign in to comment.