Skip to content

Discrepancy between the number of taggable reads and the number of records in the bam file #1

Description

@lebelm

Hello,

I have been trying barQC to recover additional reads with out of phase barcodes and as far as I can tell it has been running well (I processed all the reads with in phase barcodes separately to reduce runtime).
However, I have been surprised to find that the number of taggable reads written at the end of the barQC.log and tha actual number of records in the output BAM files do not match. This is true for all the libraries I have tested

For instance I get in the barQC.log:

...
INFO - Final info:
                        Number of original reads: 20787064
                        Number of taggable reads: 5540482
                        Efficiency: 26.65%
                        Number of unique barcode combinations: 396884
...

But if I run samtools view -c MYRUN_barQC.bam I get only 612,359 records, which is almost 10 times less than I would expect.
There is no error written in the barQC.log or barQC_debug.log or during the run.

The environment has been installed with conda, here are the packages:

Packages in the environment Name Version Build Channel

libffi 3.4.4 h6a678d5_1
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
libuuid 1.41.5 h5eee18b_0
matplotlib 3.9.3 pypi_0 pypi
ncurses 6.4 h6a678d5_0
numpy 2.2.0 pypi_0 pypi
openssl 3.0.15 h5eee18b_0
packaging 24.2 pypi_0 pypi
pandas 2.2.3 pypi_0 pypi
pillow 11.0.0 pypi_0 pypi
pip 24.2 py312h06a4308_0
psutil 6.1.0 pypi_0 pypi
pyparsing 3.2.0 pypi_0 pypi
pysam 0.22.1 pypi_0 pypi
python 3.12.3 h996f2a0_1
python-dateutil 2.9.0.post0 pypi_0 pypi
pytz 2024.2 pypi_0 pypi
readline 8.2 h5eee18b_0
seaborn 0.13.2 pypi_0 pypi
setuptools 75.1.0 py312h06a4308_0
six 1.17.0 pypi_0 pypi
sqlite 3.45.3 h5eee18b_0
tk 8.6.14 h39e8969_0
tzdata 2024.2 pypi_0 pypi
wheel 0.44.0 py312h06a4308_0
xz 5.4.6 h5eee18b_1
zlib 1.2.13 h5eee18b_1

Do you have any suggestions as to what is happening? Is this an expected behaviour?

Best,

Marie

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions