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

haphic pipeline #102

Open
tky199996 opened this issue Jan 25, 2025 · 4 comments
Open

haphic pipeline #102

tky199996 opened this issue Jan 25, 2025 · 4 comments

Comments

@tky199996
Copy link

Hi, I used haphic pipeline and everything worked fine, but recently when I used purge_dups to remove redundancy from my assembly sequence and then used haphic pipeline, the following error message appeared. I don't know why, can you help me take a look? It is worth noting that when I used YaHS to mount my sequence after removing redundancy, it did not report an error message.

Image

@zengxiaofei
Copy link
Owner

The FASTA file you input does not match the BAM file.

@tky199996
Copy link
Author

您输入的FASTA文件与BAM文件不匹配。
Thank you for your prompt reply. My fasta file is the fasta sequence after I used hifiasm to assemble and purgeddups to remove redundancy, and my bam file is HiC data. It should match. Is it because my fasta sequence uses purgeddups to remove redundancy? I found that when I run the haphic pipeline, the fasta sequence does not build an index. I will contact you after I try it. Thank you again.

@zengxiaofei
Copy link
Owner

zengxiaofei commented Jan 25, 2025

My fasta file is the fasta sequence after I used hifiasm to assemble and purgeddups to remove redundancy, and my bam file is HiC data.

Did you realign the Hi-C reads to the assembly after purging duplicates? If not, these two files do not match. This means that some reference IDs present in the BAM file do not exist in the FASTA file, which would cause HapHiC to throw an error. I've deliberately made the ID checking more stringent to prevent users from using incorrect or mismatched files.

@tky199996
Copy link
Author

My fasta file is the fasta sequence after I used hifiasm to assemble and purgeddups to remove redundancy, and my bam file is HiC data.

Did you realign the Hi-C reads to the assembly after purging duplicates? If not, these two files do not match.

Oh! Yes! Looks like I made a stupid mistake. Thanks for your help, I will try to run it again!

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