diff --git a/multiqc_extract/v1.0/.gitignore b/multiqc_extract/v1.0/.gitignore deleted file mode 100644 index 99793e2..0000000 --- a/multiqc_extract/v1.0/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.zip -*.csv -output_dir/ \ No newline at end of file diff --git a/multiqc_extract/v1.0/unzip_extract_stats.R b/multiqc_extract/v1.0/unzip_extract_stats.R index 8738b50..d5fbc5a 100644 --- a/multiqc_extract/v1.0/unzip_extract_stats.R +++ b/multiqc_extract/v1.0/unzip_extract_stats.R @@ -1,6 +1,10 @@ library(jsonlite) -zip_files <- list.files(path = ".", pattern = "\\.zip") +zip_files <- list.files(path = ".", pattern = "multiqc_data\\.zip") + +if(length(zip_files)==0){ + stop("No MultiQC ZIP files found. Exiting") +} for (zip_file in zip_files){ output_dir_name <- "output_dir"