Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika committed Jun 5, 2024
1 parent fc671b7 commit 479ed7d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/scripts/check_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ def check_expected_files_exist(output_dir, sample_ids):
"""
for sample_id in sample_ids:
expected_files = [
f"fastq/fluviewer-nf-v0.2/{sample_id}/{sample_id}_fluviewer_alignment.bam",
f"fastq/fluviewer-nf-v0.2/{sample_id}/{sample_id}_fluviewer_alignment.bam.bai",
f"fastq/fluviewer-nf-v0.2/{sample_id}/{sample_id}_fluviewer_depth_of_cov.png",
f"fastq/fluviewer-nf-v0.2/{sample_id}/{sample_id}_fluviewer_mapping_refs.fa",
f"fastq/fluviewer-nf-v0.2/{sample_id}/{sample_id}_fluviewer_report.tsv",
f"fastq/fluviewer-nf-v0.2/{sample_id}/{sample_id}_genoflu.tsv",
]

for expected_file in expected_files:
Expand Down
2 changes: 1 addition & 1 deletion environments/fluviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ dependencies:
- zlib=1.2.13=hd590300_5
- zstd=1.5.5=hfc55251_0
- pip:
- fluviewer
- FluViewer==0.1.11
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ workflow {
ch_provenance = ch_provenance.join(hash_files.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
ch_provenance = ch_provenance.join(fastp.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
ch_provenance = ch_provenance.join(cutadapt.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
// ch_provenance = ch_provenance.join(FluViewer.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
ch_provenance = ch_provenance.join(fluviewer.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
// ch_provenance = ch_provenance.join(CLADE_CALLING.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
// ch_provenance = ch_provenance.join(GENOFLU.out.provenance).map{ it -> [it[0], it[1] << it[2]] }
collect_provenance(ch_provenance)
Expand Down
4 changes: 3 additions & 1 deletion modules/hash_files.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ process hash_files {
"""
shasum -a 256 ${files_to_hash} | tr -s ' ' ',' > ${sample_id}_${file_type}.sha256.csv
while IFS=',' read -r hash filename; do
printf -- "- input_filename: \$filename\\n input_path: \$(realpath \$filename)\\n sha256: \$hash\\n" >> ${sample_id}_${file_type}_provenance.yml
printf -- "- input_filename: \$filename\\n" >> ${sample_id}_${file_type}_provenance.yml;
printf -- " file_type: ${file_type}\\n" >> ${sample_id}_${file_type}_provenance.yml;
printf -- " sha256: \$hash\\n" >> ${sample_id}_${file_type}_provenance.yml;
done < ${sample_id}_${file_type}.sha256.csv
"""
}

0 comments on commit 479ed7d

Please sign in to comment.