Skip to content

Commit

Permalink
fix gff path assignment in reads_ch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Rowell authored and Jessica Rowell committed Mar 22, 2024
1 parent 03ed1a1 commit b462cfc
Showing 1 changed file with 6 additions and 36 deletions.
42 changes: 6 additions & 36 deletions workflows/tostadas.nf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ workflow TOSTADAS {
fastq2 = row.fastq_path_2 ? file(row.fastq_path_2) : null
meta = [id:row.sequence_name]
gff = row.gff_path ? file(row.gff_path) : null
[meta, fasta_path, fastq1, fastq2, gff]
if (gff == null) {
[meta, fasta_path, fastq1, fastq2]
}
else {
[meta, fasta_path, fastq1, fastq2, gff]
}
}

// Create initial submission channel
Expand Down Expand Up @@ -144,7 +149,6 @@ workflow TOSTADAS {

// run submission for the annotated samples
if ( params.submission ) {

// pre submission process + get wait time (parallel)
GET_WAIT_TIME (
METADATA_VALIDATION.out.tsv_Files.collect()
Expand All @@ -155,40 +159,6 @@ workflow TOSTADAS {
GET_WAIT_TIME.out
)

// check if annotation is set to true
// if ( params.annotation ) {
// if (params.sra && params.genbank ) { // sra and genbank
// INITIAL_SUBMISSION (
// submission_ch, // meta.id, fasta, fastq1, fastq2, gff
// params.submission_config,
// GET_WAIT_TIME.out
// )
// }
// else {
// if (! params.sra && params.genbank ) { // only genebankk
// INITIAL_SUBMISSION (
// submission_ch, // meta.id, fasta, "", "", gff
// params.submission_config,
// GET_WAIT_TIME.out
// )
// }
// }
// }
// }
// if ( !params.annotation && !params.genbank && params.sra ) { // no annotation only fastq submission

// INITIAL_SUBMISSION (
// submission_ch, // meta.id, "", fastq1, fastq2, gff
// params.submission_config,
// GET_WAIT_TIME.out
// )
// }
// if ( !params.annotation && params.genbank || !params.annotation && params.genbank && params.sra ) {
// INITIAL_SUBMISSION (
// submission_ch, // meta.id, fasta, "", "", user-provided gff
// params.submission_config,
// GET_WAIT_TIME.out
// )
}
// to do remove if not needed
if ( params.update_submission ) {
Expand Down

0 comments on commit b462cfc

Please sign in to comment.