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

The question about regenerating a HiC contact map for the final assembly #84

Open
qdu-beep opened this issue Mar 8, 2024 · 0 comments

Comments

@qdu-beep
Copy link

qdu-beep commented Mar 8, 2024

Hello developer,

After successfully running the Step1 and Step2, I got the two files ( out_JBAT.FINAL.agp and out_JBAT.FINAL.fa). I want to regenerate a .hic file corresponding to the final assembly. I'm not sure if the input files I chose to complete the Step 3 are correct ( the original BED/BAM file, contigs.fa.fai, out_JBAT.FINAL.agp and out_JBAT.FINAL.fa.chrom.sizes). I would be very grateful if you could provide some help! my commands are as follows.

Step1. juicerbox.sh

/software/HapHiC/scripts/../utils/juicer pre -a -q 1 -o out_JBAT samblasterHiCfilter2.bed scaffolds.raw.agp asm.fa.fai >out_JBAT.log 2>&1
(java -jar -Xmx32G /software/HapHiC/scripts/../utils/juicer_tools.1.9.9_jcuda.0.8.jar pre out_JBAT.txt out_JBAT.hic.part <(cat out_JBAT.log | grep PRE_C_SIZE | awk '{print $2" "$3}')) && (mv out_JBAT.hic.part out_JBAT.hic)

Step2. After adjusting in juicerbox

/software/HapHiC/scripts/../utils/juicer post -o out_JBAT out_JBAT.review.assembly out_JBAT.liftover.agp asm.fa

Step3. Regenerating a HiC contact map for the final assembly

(/software/HapHiC/scripts/../utils/juicer pre samblasterHiCfilter2.bed out_JBAT.FINAL.agp asm.fa.fai | sort -k2,2d -k6,6d -T ./ --parallel=8 -S32G | awk 'NF' > alignments_sorted.txt.part) && (mv alignments_sorted.txt.part alignments_sorted.txt)

(java -jar -Xmx32G /software/HapHiC/scripts/../utils/juicer_tools.1.9.9_jcuda.0.8.jar pre alignments_sorted.txt out.hic.part out_JBAT.FINAL.fa.chrom.sizes) && (mv out.hic.part out.hic)

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

1 participant