Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-ftricomi committed Sep 3, 2024
1 parent a39c8cf commit 3ad796f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ process GET_RUN_ACCESSIONS {
path("run_accession_list.txt")

script:
//def runAccessionBatch = run_accession_batch ? run_accession_batch : null
runAccessionList = []
runAccessionList = []
runAccessionToFile='run_accession_list.txt'
def fileBatch=new File(run_accession_batch)
if (fileBatch.exists()){
fileBatch.eachLine { line ->
runAccessionList.add([taxon_id: taxon_id, gca: gca, run_accession: line])
}
}
"""
cat ${run_accession_batch.toString()} > $runAccessionToFile
"""
Expand Down Expand Up @@ -89,8 +88,6 @@ process GET_RUN_ACCESSIONS {
}
reader.close()

// runAccessionToFile='run_accession_list.txt'
//cp $run_accession_batch $runAccessionToFile
log.info("BATCH FILE ${run_accession_batch}")
"""
echo '${responseContent.toString()}' > $runAccessionToFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ process INDEX_GENOME {
// Calculate the genome length (excluding header lines)
//def genomeLength = fastaContent.split('\n').findAll { !it.startsWith('>') }.join('').length()

if (genomeLength != 0) {
filesValid = true
if (genomeLength != 0) {
filesValid = true
}
}
// Define read length (you may need to adjust this based on your data)
Expand Down

0 comments on commit 3ad796f

Please sign in to comment.