broadinstitute / viral-pipelines

viral-ngs: complete pipelines
Other
51 stars 28 forks source link

report reference genome length in align_reads output; use this value for assemble_refbased. reference_genome_length #538

Closed tomkinsc closed 3 months ago

tomkinsc commented 4 months ago

Currently, assemble_refbased reports reference_genome_length based on inspection of the mapped bam file used in plot_coverage however in the event zero reads map, the reference length is reported as zero. This commit reports the actual length of the sequence in the reference fasta provided to assemble_refbased, as the first Int output of the scattered calls to assembly.align_reads (and exposes the value, which was already obtained but not output, in align_reads)

dpark01 commented 3 months ago

good to merge?