Skip to content

Commit

Permalink
Update MQC so works on gitpod, try to re-add original getAllFilesFrom…
Browse files Browse the repository at this point in the history
…Dir (but not working - no md5swum?!)
  • Loading branch information
jfy133 committed Jul 20, 2024
1 parent cac8152 commit a8dcd64
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 653 deletions.
2 changes: 1 addition & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
},
"multiqc": {
"branch": "master",
"git_sha": "b7ebe95761cd389603f9cc0e0dc384c0f663815a",
"git_sha": "b80f5fd12ff7c43938f424dd76392a2704fa2396",
"installed_by": ["modules"]
},
"picard/createsequencedictionary": {
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/multiqc/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions modules/nf-core/multiqc/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions modules/nf-core/multiqc/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions modules/nf-core/multiqc/tests/main.nf.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions modules/nf-core/multiqc/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions tests/test.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ nextflow_pipeline {
Exceptions (variable md5sums)
*/

{ assert snapshot( getAllFileNamesFromDir("$outputDir/damage_estimation/", '.txt') ).match("damage_estimation_txt") },
{ assert snapshot( getAllFileNamesFromDir("$outputDir/damage_estimation/", '.json') ).match("damage_estimation_json") },
{ assert snapshot( getAllFilesFromDir("$outputDir/damage_estimation/", '.txt') ).match("damage_estimation_txt") },
{ assert snapshot( getAllFilesFromDir("$outputDir/damage_estimation/", '.json') ).match("damage_estimation_json") },
{ assert snapshot( getAllFileNamesFromDir("$outputDir/damage_estimation/", '.svg') ).match("damage_estimation_svg") },
{ assert snapshot( getAllFileNamesFromDir("$outputDir/damage_estimation/", '.pdf') ).match("damage_estimation_pdf") },
{ assert snapshot( checkAllFilesNamesFromDirForString("$outputDir/damage_estimation/", '.log', 'FINISHED SUCCESSFULLY') ).match("damage_estimation_log") },
Expand All @@ -46,6 +46,17 @@ nextflow_pipeline {
}

// Recursively list all files in a directory and its subdirectories matching a given suffix
def getAllFilesFromDir(dir, suffix) {
def output = []
new File(dir).eachFileRecurse() {
if (it.name.toString().matches(".*\\.${suffix}")) {
output.add(file(it))
}
}
return output
}

// Recursively list all files names in a directory and its subdirectories matching a given suffix
def getAllFileNamesFromDir(dir, suffix) {
def output = []
new File(dir).eachFileRecurse() {
Expand All @@ -70,7 +81,7 @@ def checkAllFilesNamesFromDirForString(dir, suffix, string) {
//def getAllFilesFromDir(dir, suffix) {
// def output = []
// new File(dir).eachFileRecurse() {
// if (it.name.toString().matches(".*\\.(${suffix.join('|')})")) {
// if (it.name.toString().matches(".*\\.${suffix}")) {
// output.add(it)
// }
// }
Expand Down
Loading

0 comments on commit a8dcd64

Please sign in to comment.