Expanding dereplicated reads

Open
#1,996 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Start by reviewing the mpileup entry point and how its output is consumed by bcftools call. Determine whether dereplication counts can be supplied through a user-defined tag or USEARCH/VSEARCH-style size=X header values without re-expanding reads. Done means depth calculation uses those counts directly and the result remains suitable for bcftools call.

Written by the indexing model from the issue text.

Description

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

Not really a problem necessarily, but more of a question. Is there currently any way to use information for de-replicated reads when calculating depths via mpileup? The context is that I am working on a serverless pipeline for a de novo assembly of a reduced-representation dataset, with steps running in AWS lambda's, so to keep file sizes and runtimes as small as possible, I'm doing all of the assembly steps using dereplicated reads (with the read counts saved in the headers as ;size=X). Currently I am then re-expanding these to create an intermediate file to send through mpileup before running bcftools call, however I'm wondering if there is a way within samtools to use this count information directly for calculating depths?

Describe the solution you would like.

It would be ideal if samtools could directly parse the count information, for example via a user-defined tag, or by parsing the USEARCH/VSEARCH style size= tags from the headers. If not currently possible, I would be happy to work on it and submit a pull request, but would appreciate some pointers on the best way to proceed.

Thanks!

Dominant language
C
Stars
891
Forks
277
Avg merge
2d 23h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from samtools/bcftools

All issues in samtools/bcftools

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.