leopoldc / boost-hic Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
As tested in different size of input matrix, profiling the running time of function fastFloyd,
I found that its time complexity is extremely high at about O(n^5).
Here is the test result
matrix size | running time |
---|---|
1000 * 1000 | 5s |
2000 * 2000 | 126s |
3000 * 3000 | 1000s |
So if I want to boost the Hi-C data in chromosome 1, It nearly costs 80 hours.
Is there anyway to accelerate this function, parallelizing or writing in C?
The README says that it uses python2.7, but the scripts seem to actually be written for python3. Additionally, I found some lines in HiCutils.py have tab indentation while others have space indentation. This caused it to break with some python implementations.
Hi @LeopoldC. Thank you for sharing this tool. I'd like to ask if there's a way to convert the h5 output matrix to hic or cool format. I've so far tried hicConvertFormat, but it's not working.
Thank you.
Hi @LeopoldC. While running Boost-HiC, the following warning is encountered, although the job is still running. I'm wondering if this is something one has to worry about, since the analysis has been running for almost 2 days with only filteredbin.txt, inputmat_filtered.hdf5 and inputmat.hdf5 in the output directory.
main.py:26: RuntimeWarning: divide by zero encountered in true_divide
FFmat=np.power(HiCutils.fastFloyd(1/np.power(normmat.copy(),alpha)),-1/alpha) #to dist, FF, to contact in one line
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.