Open NMaziak opened 8 months ago
I have the code running on a dataset with "chr" in the chromosome name. Here's what I did:
Downloaded the code from this GitHub repository using the Code -> Download Zip file
Unzipped the code
unzip FLAMINGOrLite-master.zip
Modified the R code in the package to not have the gsub. It's in the FLAMINGOrLite-master/R/data_utils.R
file. Here's the change (commented out the old, the new line is below):
#chr_number <- gsub("chr","",chr_name)
chr_number <- chr_name
Rebuilt the package
R CMD BUILD FLAMINGOrLite-master
Reinstalled the package
R CMD INSTALL FLAMINGOrLite_0.0.0.9000.tar.gz
Now running the code on my dataset it runs as follows:
library(FLAMINGOrLite)
res = flamingo_main(hic_data='inter_30.hic', file_format='hic', domain_res=1e6, frag_res=5e3, chr_name='chr19',normalization='NONE',nThread=2)
Note: that the run hasn't finished yet but it's been running for about 10 minutes so far.
Update, that it did successfully run.
Hello, I have a similar issue as previously found on Flamingor
If I input this:
I get the error, I suspect it comes from the gsub in the function construct_obj_from_hic
My hic was alligned to ucsc, so there is "chr". When I run:
strawr::readHicChroms("matrix.hic")
I get as expected:If the gsub is not necessary it would be great to be able to run the tool.
Thanks again, Noura