Giter VIP home page Giter VIP logo

Comments (8)

rrdai77 avatar rrdai77 commented on July 26, 2024

Hi! I've encountered the same issue. Have you resolved this issue?

from fithic.

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

Hi, this is generally about file formatting and having wrong number of fields in one of the input files. I could help best if you paste a few of the lines from each input file.

from fithic.

rrdai77 avatar rrdai77 commented on July 26, 2024

I have an error while running fithic:

Command:
fithic -f 02_hicpro2fithic/fithic.fragmentMappability.gz -i 02_hicpro2fithic/fithic.interactionCounts.gz -t 02_hicpro2fithic/fithic.biases.gz -r 10000 -o 02_fithic_outputs

My input files are created by the hicpro2fithic.py of HiC-Pro_3.1.0 (version), and the output biases file (fithic.biases.gz) is blank every other line, but not in HiC-Pro_2.11.1 (versions). So I wonder if it's the version issue of subscripts (hicpro2fithic.py)?

input files: (hicpro2fithic.py of HiC-Pro_3.1.0)
zcat fithic.biases.gz | head

chr1 5000 -1

chr1 15000 -1

chr1 25000 -1

chr1 35000 -1

chr1 45000 -1

chr1 55000 -1

zcat fithic.fragmentMappability.gz | head
chr1 0 5000 0 0
chr1 10000 15000 0 0
chr1 20000 25000 0 0
chr1 30000 35000 0 0
chr1 40000 45000 0 0
chr1 50000 55000 0 0

zcat fithic.interactionCounts.gz | head
chr1 3005000 chr1 3005000 166
chr1 3005000 chr1 3015000 142
chr1 3005000 chr1 3025000 90
chr1 3005000 chr1 3035000 42
chr1 3005000 chr1 3045000 15
chr1 3005000 chr1 3055000 51

The following input files for fithic are error-free!

input files: (hicpro2fithic.py of HiC-Pro_2.11.1)
zcat fithic.biases.gz | head

chr1 5000 -1
chr1 15000 -1
chr1 25000 -1
chr1 35000 -1
chr1 45000 -1
chr1 55000 -1

So is it because of the version issue?

from fithic.

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

Blank lines will do it. Please remove all the blank lines and try. I will get in touch with HiCPro developers about this. Or you can post this on their github issues if you don't mind.

from fithic.

rrdai77 avatar rrdai77 commented on July 26, 2024

Thanks! It is error-free after removing all the blank lines, but how to avoid the blank lines in the output biases file (fithic.biases.gz) of hicpro2fithic.py from HiC-Pro_3.1.0 (python3)? That's what needs to be resolved.

from fithic.

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

I posted it on HiCpro github. They should take care of it soon, an extra \n in Line 87 of the script. Likely got introduced during Python 3 conversion.

from fithic.

rrdai77 avatar rrdai77 commented on July 26, 2024

Thanks! That's great!

from fithic.

thekingofall avatar thekingofall commented on July 26, 2024

thanks."zcat fithic.biases.gz | grep -v '^$' | gzip > fithic.biases2.gz"

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.