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

domain_res problems #4

Closed
shenlinyong opened this issue Jun 28, 2022 · 5 comments
Closed

domain_res problems #4

shenlinyong opened this issue Jun 28, 2022 · 5 comments

Comments

@shenlinyong
Copy link

frag_res = xxx mean at xxxkb resolution the 3D model was built?
domain_res: Size of the domains in bps mean the resolution of the domains? What should I set its size based on? I don't quite understand?

@haowang0508
Copy link
Collaborator

haowang0508 commented Jun 28, 2022

Hi,

frag_res refers to the final resolution of the 3D chromatin structures, i.e. 5000 (5kb) or 1000 (1kb).
domain_res refers to the resolution of the larger domain in the hierarchical reconstruction procedure, it should be larger than frag_res, I would suggest using 1000000 (1mb) or 500000 (500kb). Usually keeping domain_res /frag_res ~ 100 is a good choice.

@shenlinyong
Copy link
Author

Hello,

Thank you very much for your answer. But I have a new error reported when I run the software, even though 191 Genomic_loc_domain_xxx.txt files have been generated.

The following is the code I ran:

library(FLAMINGOr)
library(GenomicFeatures)
library(Matrix)

getwd()
setwd("/home/SLY68/2022/hic/juicer/down_analysis/raw/hic")

all_size <- read.table("/storage/SLY68/2022/hic/juicer/restriction_sites/GRCg7b_genomic.size")
for(i in 32:72){
  chr_name=as.character(all_size[1,1])
  chr_size = all_size[1,2]
  res = flamingo.main_func_large(hic_data_low='./fat.hic',
                               file_format='hic',
                               domain_res=1e6,frag_res=5e3,
                               chr_size=chr_size,
                               chr_name=chr_name,
                               normalization='KR',
                               downsampling_rates=0.75,
                               lambda=10,max_dist=0.01,nThread=90,n_row=30000)

Here is the log file with the error report:

 1 [1] "/storage/SLY68/2022/hic/juicer/down_analysis/raw/hic"
      2 [1] "Contact map is too large, large matrix mod is on"
      3 [1] "Dividing domains..."
      4 [1] "Processing Fragments..."
      5 [1] "caching datasets..."
      6 x being coerced from class: matrix to data.table
      7 x being coerced from class: matrix to data.table
      ...
     84 x being coerced from class: matrix to data.table
     85 x being coerced from class: matrix to data.table
     86 [1] "Reconstructing backbones..."
     87 Loading required package: nlme
     88 This is mgcv 1.8-36. For overview type 'help("mgcv-package")'.
     89 [1] "Reconstructing intra-domain structures..."
     90 Error in checkForRemoteErrors(val) : 
     91   one node produced an error: cannot open the connection
     92 Calls: flamingo.main_func_large ... clusterApply -> staticClusterApply -> checkForRemoteErrors
     93 In addition: Warning message:
     94 In dir.create("Domain_data") : 'Domain_data' already exists
     95 Execution halted

你好,

frag_res 是指 3D 染色质结构的最终分辨率,即 5000 (5kb) 或 1000 (1kb)。 domain_res是指层次重构过程中较大域的分辨率,应该大于frag_res,我建议使用1000000(1mb)或500000(500kb)。通常保持 domain_res /frag_res ~ 100 是一个不错的选择。

@haowang0508
Copy link
Collaborator

haowang0508 commented Jun 28, 2022 via email

@haowang0508
Copy link
Collaborator

haowang0508 commented Jun 28, 2022 via email

@haowang0508
Copy link
Collaborator

Hello,

Thank you very much for your answer. But I have a new error reported when I run the software, even though 191 Genomic_loc_domain_xxx.txt files have been generated.

The following is the code I ran:

library(FLAMINGOr)
library(GenomicFeatures)
library(Matrix)

getwd()
setwd("/home/SLY68/2022/hic/juicer/down_analysis/raw/hic")

all_size <- read.table("/storage/SLY68/2022/hic/juicer/restriction_sites/GRCg7b_genomic.size")
for(i in 32:72){
  chr_name=as.character(all_size[1,1])
  chr_size = all_size[1,2]
  res = flamingo.main_func_large(hic_data_low='./fat.hic',
                               file_format='hic',
                               domain_res=1e6,frag_res=5e3,
                               chr_size=chr_size,
                               chr_name=chr_name,
                               normalization='KR',
                               downsampling_rates=0.75,
                               lambda=10,max_dist=0.01,nThread=90,n_row=30000)

Here is the log file with the error report:

 1 [1] "/storage/SLY68/2022/hic/juicer/down_analysis/raw/hic"
      2 [1] "Contact map is too large, large matrix mod is on"
      3 [1] "Dividing domains..."
      4 [1] "Processing Fragments..."
      5 [1] "caching datasets..."
      6 x being coerced from class: matrix to data.table
      7 x being coerced from class: matrix to data.table
      ...
     84 x being coerced from class: matrix to data.table
     85 x being coerced from class: matrix to data.table
     86 [1] "Reconstructing backbones..."
     87 Loading required package: nlme
     88 This is mgcv 1.8-36. For overview type 'help("mgcv-package")'.
     89 [1] "Reconstructing intra-domain structures..."
     90 Error in checkForRemoteErrors(val) : 
     91   one node produced an error: cannot open the connection
     92 Calls: flamingo.main_func_large ... clusterApply -> staticClusterApply -> checkForRemoteErrors
     93 In addition: Warning message:
     94 In dir.create("Domain_data") : 'Domain_data' already exists
     95 Execution halted

你好,
frag_res 是指 3D 染色质结构的最终分辨率,即 5000 (5kb) 或 1000 (1kb)。 domain_res是指层次重构过程中较大域的分辨率,应该大于frag_res,我建议使用1000000(1mb)或500000(500kb)。通常保持 domain_res /frag_res ~ 100 是一个不错的选择。

Hello did you fix the issue?

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