Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning [E::idx_find_and_load] Could not retrieve index file for #205

Open
CCCKW opened this issue Jan 24, 2024 · 9 comments
Open

warning [E::idx_find_and_load] Could not retrieve index file for #205

CCCKW opened this issue Jan 24, 2024 · 9 comments

Comments

@CCCKW
Copy link

CCCKW commented Jan 24, 2024

pairtools parse /cluster/home/Kangwen/Hic/data_new/snHic_index/XY5/snHic_SRR0_tmp/SRR0.qc.bam -c /cluster/home/Kangwen/common/hg38/hg38.fa.chrom.sizes --drop-sam --drop-seq --output-stats SRR0.stats --assembly hg38 --no-flip --add-columns mapq --walks-policy all -o SRR0.pairs.gz --nproc-in 60 --nproc-out 60
[E::idx_find_and_load] Could not retrieve index file for '/cluster/home/Kangwen/Hic/data_new/snHic_index/XY5/snHic_SRR0_tmp/SRR0.qc.bam'
writer fwrite: bug encountered
writer writer_write_block: bug encountered

How to solve this?

@golobor
Copy link
Member

golobor commented Jan 24, 2024

A quick question - the error message suggests that it's missing an index file - have you tried indexing the .bam file?

@Phlya
Copy link
Member

Phlya commented Jan 24, 2024

A quick question - the error message suggests that it's missing an index file - have you tried indexing the .bam file?

To index a bam file it needs to be sorted, which breaks pairtools.

@CCCKW
Copy link
Author

CCCKW commented Jan 24, 2024

A quick question - the error message suggests that it's missing an index file - have you tried indexing the .bam file?

To index a bam file it needs to be sorted, which breaks pairtools.

how to index the .bam file?

@Phlya
Copy link
Member

Phlya commented Jan 24, 2024

I don't know why you might be getting this error, pairtools doesn't need an index generally...

I think that is just a warning that I have been seeing recently also, and the error is actually something else, about writing? Maybe you don't have permissions to write in the folder, or no space?.. Not sure.

@Phlya
Copy link
Member

Phlya commented Jan 24, 2024

@CCCKW
Copy link
Author

CCCKW commented Jan 24, 2024

After running pairtools parse, the column of pairtype in the .pairs files I got was 'XX'. Whether this is the reason?
image

@Phlya
Copy link
Member

Phlya commented Jan 24, 2024

The pairs you are showing are all unmapped (! for both chromosomes), so the pair type XX is normal for them.

@amvarani
Copy link

I have a similar warning here, but pairtools parse continues and generates the pairsam file.

[E::idx_find_and_load] Could not retrieve index file for 'aligned.bam'

@Phlya
Copy link
Member

Phlya commented Jan 24, 2024

Yes, the warning by itself is harmless.

@golobor golobor changed the title something wrong with pairtools parse warning [E::idx_find_and_load] Could not retrieve index file for Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants