Giter Site home page Giter Site logo

Comments (11)

nservant avatar nservant commented on June 26, 2024 3

great ! N

from crane-nature-2015.

nservant avatar nservant commented on June 26, 2024 1

Hi,
A couple of months ago, I added a '--ins" option to the spaseToDense script that should generate the right format for matrix2insulation.pl
Can you check if you used this option please ?
N

from crane-nature-2015.

nservant avatar nservant commented on June 26, 2024

Hi,
The HiC-Pro output cannot be directly loaded in matrix2insulation.pl
You have to convert it first.
I'm not 100% sure, but if I remember correctly matrix2insulation requires a dense matrix with bin names as rownames ... as in the my5C tool.
In the HiTC R package, you can load HiC-Pro data (using importC function) and export dense matrix using the export.my5C function.
I can also write a small tool to make the convertion in HiC-Pro if it helps.
Nicolas

from crane-nature-2015.

jacomegutierrez avatar jacomegutierrez commented on June 26, 2024

it would be great a small tool in HiCPro to convert matrix!

from crane-nature-2015.

jacomegutierrez avatar jacomegutierrez commented on June 26, 2024

I was trying to generated the input for matrix2insulation.pl in HiTC, first with importC then using export.my5C for all the matrix but the following error appear:

export.my5C(a, "15min_a_my5C", genome="BSgenome.Hsapiens.UCSC.hg19", per.chromosome=FALSE)
Start combining HTCexp objects ...
Object size: 77323496
Exporting data in '15min_a_my5C_hg19.mat' ...
Error in asMethod(object) :
Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, line 105

Then I try the same per chromosome, but that matrix are not symmetrical!

from crane-nature-2015.

nservant avatar nservant commented on June 26, 2024

Hi Jacome,
Will try to move on that asap.
Do you have somewhere an example of input file for matrix2insulation.pl ?
I have in mind a dense format with rownames/colnames as :
bin_number|organism|genomic_position| (ie. 35126|mm9|chr10:320001-360000)
Is that correct ?
Anyone knows if the organism is useful ? can I put a default to 'org' for instance ?
thanks

from crane-nature-2015.

jacomegutierrez avatar jacomegutierrez commented on June 26, 2024

from crane-nature-2015.

nservant avatar nservant commented on June 26, 2024

Hi Jacome
I just released the sparse2dense.py script to convert HiC-Pro data to matrix2insulation.pl input.
See https://github.com/nservant/HiC-Pro/tree/devel/bin/utils
See --ins option
N

from crane-nature-2015.

jacomegutierrez avatar jacomegutierrez commented on June 26, 2024

from crane-nature-2015.

hzaumsq avatar hzaumsq commented on June 26, 2024

When I use the hicpro result to look for Tad
1 .sparseToDense.py matrix/sample1/iced/40000/sample1_40000_iced.matrix -b matrix/sample1/raw/40000/sample1_40000_abs.bed -d -o 40000.matrix
the first step looks like correct;
2. perl /public/home/csxie/msq/tool/crane-nature-2015/scripts/matrix2insulation.pl -i 40000.matrix
ERROR: matrix must be symmetrical!
more 40000.matrix
Scaffold0 0 40000 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 291.48 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 86.158 0.0 0.0 0.0 0.0 0.0 113.291 215.461 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 350.491 0.0 0.0 0.0 0.0 352.66 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 81.84 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 104.334 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Then I got a error

from crane-nature-2015.

guleiathms avatar guleiathms commented on June 26, 2024

How much memory I should use for hg19, if I don't set -c? I used 120G, but it still runs out of memory.
Thanks.

from crane-nature-2015.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.