Read a Bam file from a ByteArray

Open
#489 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, cpp

Research direction

Start by reviewing htslib's BAM input APIs and how they currently accept a filename. Determine whether a C++/Qt byte array can be passed through an existing entry point or requires a new interface. Done means a documented, usable way to read BAM data from bytes rather than only from a filename.

Written by the indexing model from the issue text.

Description

enhancement

I would like to read a BAM from a C++/Qt apps.
Is there a way to read a bam with htslib from the bytes array instead the filename ?

Dominant language
C
Stars
950
Forks
475
Avg merge
3d 13h
Merged PRs (30d)
11

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/htslib

All issues in samtools/htslib

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.