You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a aligned BAM file as input, wf-human-variants does take the alignment as it is, without doing a re-alignment. Of cause this makes a lot of sense in most cases to save some CPU time, however, if I want to analyze old data again with a new patched or modified version of a genome build, it would be good, to re-align the data.
Describe the solution you'd like
Add an option to force re-alignment of already aligned input data would be great. As minimap2 only accept FASTQ files as input, the pipline has to use samtools fastq or similar tools, for generating the FASTQ files from a BAM.
Describe alternatives you've considered
I can do the BAM to FASTQ conversion by my own and use the resulting FASTQ files as input for wf-human-variation.
Additional context
No response
The text was updated successfully, but these errors were encountered:
flokraft85
changed the title
add option for force re-alignment
add option to force re-alignment
May 6, 2024
however, if I want to analyze old data again with a new patched or modified version of a genome build, it would be good, to re-align the data.
The workflow will realign data to a reference if it detects the references names and lengths in the --ref do not match those in the --bam header. Your related issue with the masked reference is an interesting one (#177) and presents a use-case that we've not encountered before (where the ref looks the same in terms of name/length, but not content). We'll have a think about how we might approach this.
In the mean time, you could use wf-alignment to handle alignment and then provide the output from that workflow to wf-human-variation. Alternatively, you could strip alignment information with samtools reset and provide the unaligned BAM to wf-human-variation, which will trigger alignment to your chosen reference.
Is your feature related to a problem?
When using a aligned BAM file as input, wf-human-variants does take the alignment as it is, without doing a re-alignment. Of cause this makes a lot of sense in most cases to save some CPU time, however, if I want to analyze old data again with a new patched or modified version of a genome build, it would be good, to re-align the data.
Describe the solution you'd like
Add an option to force re-alignment of already aligned input data would be great. As minimap2 only accept FASTQ files as input, the pipline has to use samtools fastq or similar tools, for generating the FASTQ files from a BAM.
Describe alternatives you've considered
I can do the BAM to FASTQ conversion by my own and use the resulting FASTQ files as input for wf-human-variation.
Additional context
No response
The text was updated successfully, but these errors were encountered: