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

Question on TAD parameter settings #920

Open
YiChienLee1010 opened this issue Dec 27, 2024 · 2 comments
Open

Question on TAD parameter settings #920

YiChienLee1010 opened this issue Dec 27, 2024 · 2 comments

Comments

@YiChienLee1010
Copy link

Hi
I want to plot TADs on my matrix but have some problems and I am not sure which step caused the issue.

I am using Omni-C data, and I create 256 sets of 4 base random restriction enzyme sites to build a matrix.
My commands for each step are as follows.

#mapping
bwa mem -A1 -B4 -E50 -L0 -t 8 assembly.fa LGH24_R1_v2.fastq.gz > LGH24_R1_v2.sam (same for R2)
samtools view -@ 32 -Shb LGH24_R1_v2.sam > LGH24_R2_v2.bam (same for R2)

#hicFindRestSite
cat random_site.txt | parallel -j 5 'hicFindRestSite --fasta ref.fa --searchPattern {} --outFile cutsites{}.bed'
*random_site.txt contain all 256 randome restriction enzyme site 

#hicBuildMatrix
hicBuildMatrix -s LGH24_R1_v2.bam LGH24_R2_v2.bam --outFileName Matrix_bin50000_scaff0001.h5 --QCfolder Matrix_bin50000_scaff0001_QC --restrictionCutFile (list all 256 cutsites) --restrictionSequence (list all 256 randome sequences)  --danglingSequence (list all 256 randome sequences)  -b Matrix_bin50000_scaff0001.bam --binSize 50000 --threads 8  --region scaff0001

#hicCorrectMatrix
hicCorrectMatrix diagnostic_plot --matrix Matrix_bin50000_scaff0001.h5 -o hicCorrectMatrix_bin50000_scaff0001.png
hicCorrectMatrix correct --matrix  Matrix_bin50000_scaff0001.h5 --filterThreshold -1.5 5  -o hicCorrectMatrix_bin50000_scaff0001.h5

#hicFindTADs
hicFindTADs --matrix hicCorrectMatrix_bin50000_scaff0001.h5 --outPrefix hicCorrectMatrix_bin50000_scaff0001_TAD_default --correctForMultipleTesting fdr 
make_tracks_file --trackFiles hicCorrectMatrix_bin50000_scaff0001.h5 hicCorrectMatrix_bin50000_scaff0001_TAD_default_domains.bed -o scaff0001_TAD_default.ini
hicPlotTADs --tracks scaff0001_TAD_default.ini --region scaff0001:1-178105659 -o scaff0001_TAD_default.png

scaff0001_TAD_default.ini

[x-axis]
fontsize = 10

[hicCorrectMatrix_bin50000_scaff0001]
file = hicCorrectMatrix_bin50000_scaff0001.h5
depth = 1000
transform = log1p
file_type = hic_matrix
height = 15
show_masked_bins = false

[hicCorrectMatrix_bin50000_scaff0001_TAD_default_domains]
file = hicCorrectMatrix_bin50000_scaff0001_TAD_default_domains.bed
file_type = domains
border_color = black
color = none
display = triangles
title = hicCorrectMatrix_bin50000_scaff0001_TAD_default_domains
height = 15
overlay_previous = share-y
labels = false
fontsize = 10

scaff0001_TAD_default.png
scaff0001_TAD_default_hight15

I also tried --binSize 10000 at the hicBuildMatrix step, but it also doesn't work.
I had set different highs to see any difference, but it still looked weird. I had set depths from 10kb, 40kb, and 120kb, but also no better result.

Is this related to bin size? or the plotting parameter?
Hicexplorer version 3.7.6

Any suggestions?
Thanks!

@joachimwolff
Copy link
Collaborator

joachimwolff commented Dec 28, 2024 via email

@YiChienLee1010
Copy link
Author

Hi,
Thanks for your reply!!!
I tried increasing the width from 1000 to 10000000. But it still does not have a better look; I guess 170M is too large for making a plot?
Anyway, it looks much better and is expected after shrinking the range to 5MB and increasing the width, as you suggested.
scaff0001_TAD_default_5Mb

Thank you so much for your time and suggestions.
Best,
YiChien

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