Skip to content

Commit

Permalink
bug fix reading batch file content
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-ftricomi committed Oct 21, 2024
1 parent c7e2895 commit c3be8ad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import java.io.BufferedReader
import java.io.InputStreamReader
import java.io.File
import groovy.json.JsonOutput
import java.nio.file.*

process GET_RUN_ACCESSIONS {
label 'default'
Expand All @@ -45,7 +46,9 @@ process GET_RUN_ACCESSIONS {
runAccessionToFile='run_accession_list.txt'
//def fileBatch=new File(run_accession_batch)
//if (fileBatch.exists()){
if (run_accession_batch && file(run_accession_batch).exists()){
if (run_accession_batch){
run_accession_batch = run_accession_batch.trim()
fileBatch=file(run_accession_batch)
fileBatch.eachLine { line ->
runAccessionList.add([taxon_id: taxon_id, gca: gca, run_accession: line])
}
Expand Down

0 comments on commit c3be8ad

Please sign in to comment.