Skip to content

Max depth for samtools consensus #2238

@ammaraziz

Description

@ammaraziz

Is your feature request related to a problem? Please specify.

For some viral sequencing experiments, the number of reads can reach the millions mapped to a small region. Generating a consensus for such a bam file even with extra cpus can take a while. There is an option for --min-depth but none for maximum depth.

Describe the solution you would like.

Similar to samtools mpileup which has --max-depth, it would be super helpful for samtools consensus to have --max-depth option as well (short form -D because -d is taken for --min-depth) .

A temporary solution would be to use samtools view --subsample to reduce the number of reads but it's not ideal as it could subsample regions with low coverage.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions