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

cool file and output file #7

Open
Nuturetree opened this issue Oct 9, 2024 · 3 comments
Open

cool file and output file #7

Nuturetree opened this issue Oct 9, 2024 · 3 comments

Comments

@Nuturetree
Copy link

Hi !
author
Thank you for developing such a user-friendly tool and providing detailed documentation. I have two simple questions I'd like to ask:

  1. Does a cool file need to be balanced (like: cooler balance test.cool)?
  2. How can BNBC write the batch effect removal results to an output file?
    Looking forward to your response.
    Nutures
@cafletezbrant
Copy link
Contributor

Hi Nutures,

Thanks for the kind words! To your questions:

  1. No, matrix balancing is not required for use of BNBC, if your downstream analytic goal is to compare Hi-C data across samples. Note that comparison of interactions within one sample does require correction such as matrix balancing, however.
  2. Can you clarify what you are after here? As a function, bnbc::bnbc() returns a set of matrices, represented as a contactGroup class. The matrices themselves can be obtained by calling bnbc::contacts() on the output of bnbc::bnbc(). You can write these matrices to disk in your favorite way of writing R matrices/data.frames to disk.

Hope this helps,
Kipper

@Nuturetree
Copy link
Author

Hi Kipper,
Thank you very much for your prompt response. I need to confirm a few details with you:

  1. I can use cooler to generate a cool file. Does this file need to be balanced built-in balance process before it is used as an input for BNBC?
  2. I noticed that BNBC has its own data normalization process, cgEx.cpm <- logCPM(cgEx) and cgEx.smooth <- boxSmoother(cgEx.cpm, h=5). Is this step necessary?
  3. How should the statement "Note that comparison of interactions within one sample does require correction such as matrix balancing, however" be understood? Could you provide an example for clarification?

Looking forward to your response and thank you very much.
Nutures

@cafletezbrant
Copy link
Contributor

Hi,

  1. No, matrix balancing is not required for use of BNBC.
  2. logCPM is essential, boxSmoother often gives good performance in improving concordance between replicates.
  3. I think my question is very germane - what is your analytic goal? What comparisons are you trying to make?

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

2 participants