Skip to content

min-reads seems to have no effect in some cases #197

Description

@LinearParadox

Hi Simpleaf team,

Maybe I am misunderstanding something here, but it seems that min-reads is not actually filtering cells. For example, running a sample with the following config:

simpleaf quant --index GRCH38 \
        -1 r1.fastq.gz \
        -2 r2.fastq.gz \
        --threads 8 \
        -c 10xv2-5p \
        -o test_sample \
        -m GRCH38/ref/t2g_3col.tsv  \
        -r parsimony-em  \
        --anndata-out \
       -u --min-reads 10

However, when I open the resultant anndata file, there are cells with 0 counts. Confirmed using the following:

import scanpy as sc

adat = sc.read_h5ad("quants.h5ad")
adat.X.sum(axis=1).min()

outputs np.float64(0.0)

Looking at the docs, this iterates over mapped reads and selects barcodes occurring at least 10 times. Shouldn't this retain cells with at least one count, given the barcode is mapped?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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