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

calculate ratio between tumor and normal sample’s WGS read counts #24

Open
Bio-LiHe opened this issue Jan 30, 2023 · 2 comments
Open

Comments

@Bio-LiHe
Copy link

Hi

fragCounter using CBS algorithm calculate read couts ratio between tumor and normal sample in 200bp genomic bins.

I would like to ask which is the output parameter of the normal sample? This code doesn't see the input parameters of normal.

frag -b inst/extdata/chr21.bam -d inst/extdata/gcMAP21/ -w 200  
@zining01
Copy link
Collaborator

zining01 commented Feb 5, 2023

Yes, you're correct that fragCounter doesn't see the input parameters of the normal sample. You will need to run fragCounter on your tumo and normal BAM files separately, then compute the tumor/normal ratio afterwards by dividing reads.corrected per bin of the tumor sample by the normal sample.

Hope that makes sense!

@9421g
Copy link

9421g commented Nov 9, 2024

Hi, my tumor/normal data has different sequencing depth.
Should I use (tumor.reads.corrected / tumor.mean_coverage) / (normal .reads.corrected / normal .mean_coverage)
instead of tumor.reads.corrected / normal .reads.corrected as you mention.

mean_coverage is from other tool.

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

3 participants