diff --git a/pom.xml b/pom.xml
index 5846c14e..8a776521 100644
--- a/pom.xml
+++ b/pom.xml
@@ -128,7 +128,7 @@
data-model-lib
life.qbic
- 2.27.0
+ 2.28.0
org.mockito
diff --git a/src/main/groovy/life/qbic/utils/BioinformaticAnalysisParser.groovy b/src/main/groovy/life/qbic/utils/BioinformaticAnalysisParser.groovy
index 9b430753..71176167 100644
--- a/src/main/groovy/life/qbic/utils/BioinformaticAnalysisParser.groovy
+++ b/src/main/groovy/life/qbic/utils/BioinformaticAnalysisParser.groovy
@@ -17,7 +17,6 @@ import java.nio.file.NotDirectoryException
import java.nio.file.Path
import java.text.ParseException
-
/**
* Parser storing the fileTree of a nf-core pipeline output directory into JSON format
*
@@ -27,7 +26,7 @@ import java.text.ParseException
* @param directory path of nf-core directory whose fileTree should be converted into a JSON String
*
*/
-class BioinformaticAnalysisParser implements DatasetParser{
+class BioinformaticAnalysisParser implements DatasetParser {
/**
* Contains the associated keys of the required root directory subFolders
@@ -36,19 +35,28 @@ class BioinformaticAnalysisParser implements DatasetParser
* @since 1.8.0
*/
enum RequiredRootFolderKeys {
- QUALITY_CONTROL("qualityControl"),
- PIPELINE_INFORMATION("pipelineInformation"),
- PROCESS_FOLDERS("processFolders")
+ QUALITY_CONTROL("qualityControl", "multiqc"),
+ PIPELINE_INFORMATION("pipelineInformation", "pipeline_info"),
+ //Process_Folder names can vary so no directory name can be assumed for now
+ PROCESS_FOLDERS("processFolders", null)
private String keyName
- RequiredRootFolderKeys(String keyName) {
+ private String folderName
+
+ RequiredRootFolderKeys(String keyName, String folderName) {
this.keyName = keyName
+ this.folderName = folderName
}
String getKeyName() {
return this.keyName
}
+
+ String getFolderName() {
+ return this.folderName
+ }
+
}
/**
@@ -58,18 +66,24 @@ class BioinformaticAnalysisParser implements DatasetParser
* @since 1.8.0
*/
enum RequiredRootFileKeys {
- RUN_ID("runId"),
- SAMPLE_ID("sampleIds"),
+ RUN_ID("runId", "run_id.txt"),
+ SAMPLE_ID("sampleIds", "sample_ids.txt")
private String keyName
+ private String fileName
- RequiredRootFileKeys(String keyName) {
+ RequiredRootFileKeys(String keyName, String fileName) {
this.keyName = keyName
+ this.fileName = fileName
}
String getKeyName() {
return this.keyName
}
+
+ String getFileName() {
+ return this.fileName
+ }
}
/**
@@ -79,19 +93,25 @@ class BioinformaticAnalysisParser implements DatasetParser
* @since 1.8.0
*/
enum RequiredPipelineFileKeys {
- SOFTWARE_VERSIONS("softwareVersions"),
- EXECUTION_REPORT("executionReport"),
+ SOFTWARE_VERSIONS("softwareVersions", "software_versions.yml"),
+ EXECUTION_REPORT("executionReport", "execution_report"),
private String keyName
- RequiredPipelineFileKeys(String keyName) {
+ private String fileName
+
+ RequiredPipelineFileKeys(String keyName, String fileName) {
this.keyName = keyName
+ this.fileName = fileName
}
String getKeyName() {
return this.keyName
}
+ String getFileName() {
+ return this.fileName
+ }
}
/** {@InheritDoc} */
@@ -139,32 +159,23 @@ class BioinformaticAnalysisParser implements DatasetParser
List