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

Can I change Hi-C data? #1

Open
naturalstay opened this issue Aug 26, 2022 · 4 comments
Open

Can I change Hi-C data? #1

naturalstay opened this issue Aug 26, 2022 · 4 comments

Comments

@naturalstay
Copy link

Hi, thank you for the powerful script.
Now, I have the haplotype-resolved contig-level assemblies, but I don't have the child Hi-C. I have only the Hi-C data of this sample. Can I use this script to get haplotype-resolved Hi-C data.
Look forward to your reply.

@adonis316
Copy link
Member

Hi,
Thank you for using this script. There are two ways to generate haplotype-resolved Hi-C data.

  1. If you have no haplotype-resolved assemblies, then please use haplotype-resolved k-mers to bin the Hi-C data.
  2. If you already have haplotype-resolved assemblies, then you can use this script directly to generate haplotype-resolved Hi-C data. You have to provide two haplotype-resolved contig-level assemblies, and one Hi-C dataset for the same sample. It should work for you.

Thanks,
Mengyang

@naturalstay
Copy link
Author

Thank you for your reply.
Now I understand the Hi-C data used here, but I have another question.
The line 107 and line 109 for the HTB.sh, awk '{if($3==$4) printf("%s\t%s\n",$1,$5+$6);}', it seems that only the reads pairs are aligned to the same contig are retained, others were filtered. I think this is unreasonable for Hi-C data. What do you think?
Thanks,
Look forward to your reply.

@adonis316
Copy link
Member

Thank you for the suggestion. This is a strong constraint on filtering multiple alignments due to the short read length for Hi-C reads. It worked great if the input haplotype-resolved contig assemblies are with good contiguity. But it might reduce links to build scaffolds among contigs. We will remove this constraint in the next version.

Thanks,
Mengyang

@naturalstay
Copy link
Author

Thank you for your reply.

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