Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The value of 'Fraction of high-quality fragments overlapping peaks' is greater than 1 #362

Open
haloudashu opened this issue Nov 18, 2024 · 0 comments

Comments

@haloudashu
Copy link

haloudashu commented Nov 18, 2024

Hi Kai Zhang:
I am using snapatac2 version 2.7.0.
After running snap.tl.macs3(), I can view the peaks in adata.uns['macs3_pseudobulk']. I noticed that there are some rows in the peaks with identical "chrom", "start", and "end", although their other columns like "score" differ. Since peaks should be unique, I deduplicated the peaks in adata.uns['macs3_pseudobulk'] to keep only rows with unique "chrom:start-end" combinations for subsequent calculations.
git1

Running snapatac2.metrics.frip(adata, {"n_frag_overlap_peak": peaks}, normalized=False) gives me adata.obs['n_frag_overlap_peak']. I then divided adata.obs['n_frag_overlap_peak'] by adata.obs['n_fragment'] to calculate the "Fraction of high-quality fragments overlapping peaks" for each barcode. I found that 2709 barcodes have a "Fraction of high-quality fragments overlapping peaks" greater than 1, which is clearly unreasonable. Although these barcodes are not identified as cells, the fragment counts for each barcode in adata.obs['n_fragment'] may be inaccurate. What could be the reason for this?
git2

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant