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

build my own gc and map rds file #6

Open
jinghu23 opened this issue Oct 8, 2020 · 3 comments
Open

build my own gc and map rds file #6

jinghu23 opened this issue Oct 8, 2020 · 3 comments

Comments

@jinghu23
Copy link

jinghu23 commented Oct 8, 2020

Hi, I just tried to use fragCounter to obtain corrected read depth data and I got some error infos. It looks like some goes wrong with the gc file. I guess the GC file you offer is for WGS, however my bam files are from panel sequencing. So I wonder how to make the GC and mappability files? Thanks in advance~

Jay

@mskilab
Copy link
Collaborator

mskilab commented Oct 8, 2020 via email

@jinghu23
Copy link
Author

You will need to harmonize the gc and mappability files with your read depth data so the bins are the same One easy way is as follows: (using the gUtils operation %$%, assuming everything is a GRanges - it aggregates ie averages the data on the right hand side with the ranges on the left) gcpanel = rdpanel[, c()] %$% gcwgs mappanel = rdpanel[, c()] %$% mapwgs

On Wed, Oct 7, 2020 at 10:31 PM jinghu23 @.***> wrote: Hi, I just tried to use fragCounter to obtain corrected read depth data and I got some error infos. It looks like some goes wrong with the gc file. I guess the GC file you offer is for WGS, however my bam files are from panel sequencing. So I wonder how to make the GC and mappability files? Thanks in advance~ Jay — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#6>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC73JEN5DGW5Q376UNWDQ2TSJUP7LANCNFSM4SIE7FJQ .

Thx for ur reply. However, I was confused by what u list above. Does rdpanel mean the read depth info of panel? So should I process the panel rd data before feed to fragCounter to construct the PON?

@xtYao
Copy link

xtYao commented Jan 4, 2021

You will need to harmonize the gc and mappability files with your read depth data so the bins are the same One easy way is as follows: (using the gUtils operation %$%, assuming everything is a GRanges - it aggregates ie averages the data on the right hand side with the ranges on the left) gcpanel = rdpanel[, c()] %$% gcwgs mappanel = rdpanel[, c()] %$% mapwgs

On Wed, Oct 7, 2020 at 10:31 PM jinghu23 @.***> wrote: Hi, I just tried to use fragCounter to obtain corrected read depth data and I got some error infos. It looks like some goes wrong with the gc file. I guess the GC file you offer is for WGS, however my bam files are from panel sequencing. So I wonder how to make the GC and mappability files? Thanks in advance~ Jay — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#6>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC73JEN5DGW5Q376UNWDQ2TSJUP7LANCNFSM4SIE7FJQ .

Thx for ur reply. However, I was confused by what u list above. Does rdpanel mean the read depth info of panel? So should I process the panel rd data before feed to fragCounter to construct the PON?

I believe rdpanel represents the GRanges of the genomic bins covering the effective targets of the capturing panel you are using. For example, if a panel only covers GRanges("1:1-400"), then rdpanel is GRanges(c("1:1-200", "1:201-400")). Just like in WGS we divide the whole genome into bins, here you are just dividing the subset of genomic regions covered by the panel.

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