Giter VIP home page Giter VIP logo

Comments (7)

ay-lab avatar ay-lab commented on July 26, 2024

Hi, seems like there may be a problem with the format of your input files. The dictionary structure supposed to have a list of fragments in it per each chromosome seems to be empty. This may be a problem with your fragment mappability file

from fithic.

JhinAir avatar JhinAir commented on July 26, 2024

Hi, thanks for the reply. The fragment file seems to be ok, as following:
########################
1 0 20000 621 1
1 40000 60000 1073 1
1 80000 100000 837 1
1 120000 140000 976 1
1 160000 180000 1793 1
1 200000 220000 846 1
########################
The inputs were produced by HiCPro2FitHiC.py.

Best,
Jing

from fithic.

ay-lab avatar ay-lab commented on July 26, 2024

what I can guess is that you have a chromosome (maybe chr Y if human) in your input file that has no fragments above mappability threshold so hence the error. Try removing chrs that are unmappable. If it doesn't work please share your input files. thanks

from fithic.

JhinAir avatar JhinAir commented on July 26, 2024

Hi,

I've checked that all chromosomes have the mappability threshold.
The inputs are too big (about 50Mb), so I put them on the google drive. https://drive.google.com/drive/folders/1_wm-CAsXY2oDzRGPLEuPtIIIT5UPIhqA. Please let me know if they are not available. Thanks a lot!

Jing

from fithic.

ay-lab avatar ay-lab commented on July 26, 2024

as I have suspected, there are scaffolds in your fragment list and bias file that do not have any valid/mappable fragment. See the examples below. if you don't remove them fithic won't work.
Scaffold_274 20000 -1
Scaffold_275 20000 -1
Scaffold_275 60000 -1
Scaffold_275 100000 -1
Scaffold_275 140000 -1
Scaffold_275 180000 -1

from fithic.

JhinAir avatar JhinAir commented on July 26, 2024

It's working! Thanks very much! I thought fithic would deal with those -1 value.
I have another question that how the ExpCC is calculated for inter-chr interaction, as I found some ExpCC values are equal to zero?

from fithic.

ay-lab avatar ay-lab commented on July 26, 2024

It is in the below piece of code. If bias values are outside the desired range then it gets set to zero.

        if allReg or interOnly:
            prior_p=interChrProb*(bias1*bias2)
            p_val=scsp.bdtrc(interxn.getCount()-1,observedInterAllSum,prior_p)
            interCount += 1
            # computing expected contact count
            if ((bias1 >= biasLowerBound) and (bias1 <= biasUpperBound) and (bias2 >= biasLowerBound) and (bias2 <= biasUpperBound)):
                expected_CC = (observedInterAllSum * prior_p)
            else:
                expected_CC = 0

from fithic.

Related Issues (20)

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.