question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find cooler file after loading in data

See original GitHub issue

I used this command:

cooler load -f coo chromsizes.tsv:1 output.tsv matrix.cool --count-as-float

but afterwards no matrix.cool file appeared in my current directory or anywhere on my machine. Here is the file I tried to convert: output.tsv

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nvictuscommented, Sep 18, 2018

It looks like there’s a mismatch between the matrix you’re asking for (1kb resolution) and the one you are providing… it looks like it might be restriction fragment-delimited? You would have to provide a bed file with the bin segmentation that was used.

If your goal was to aggregate that matrix to 1kb, then try cooler cload pairs:

cooler cload pairs \
    --assembly dm6 \
    --tril-action drop \
    -c1 1 -p1 2 -c2 4 -p2 5 \
    --field count,7,float,sum \
    dm6.chrom.sizes:1000 matrix.bg2.gz matrix.1000.cool 

I used the following chrom sizes and it worked:

2L	23513712
2R	25286936
3L	28110227
3R	32079331
4	1348131
X	23542271
Y	3667352
1reaction
daniellenguyencommented, Aug 17, 2018

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't find cooler file after loading in data · Issue #127 - GitHub
I used this command: cooler load -f coo chromsizes.tsv:1 output.tsv matrix.cool --count-as-float but afterwards no matrix.cool file appeared ...
Read more >
CLI Reference — cooler 0.8.11 documentation
cooler cload pairs¶. Bin any text file or stream of pairs. Pairs data need not be sorted. Accepts compressed files. To pipe input...
Read more >
cooler Documentation - Read the Docs
Cooler is a Python support library for .cool/.mcool files: an efficient storage format for high resolution genomic interaction matrices.
Read more >
cooler2bedpe: Read a .cool file into R and output the data in ...
This function will dump the contents of the file and format them into BEDPE format in R. The resulting object cant then be...
Read more >
Kernels not finding input files | Data Science and ... - Kaggle
On the kernels in Quora (duplicate of duplicates), I'm getting this: FileNotFoundError: File b'../input/train.csv' does not exist.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found