Closed lucsnip closed 7 months ago
Would you mind to run the -his
step in debug mode. i.e., -v d
, The debug log might help to identify the issue.
-Arijit
Yes, here is the debug log:
2024-02-06 15:39:46,230 - cnvpytor - DEBUG - Start logging...
2024-02-06 15:39:46,230 - cnvpytor.genome - DEBUG - Checking reference genome resource files.
2024-02-06 15:39:46,230 - cnvpytor.genome - INFO - Reading configuration file 'mm39_ref_conf.py'.
2024-02-06 15:39:46,231 - cnvpytor.genome - INFO - Importing reference genome data: 'mm39'.
2024-02-06 15:39:46,231 - cnvpytor.root - DEBUG - App class init: filename 'WSB_mm39_rd.pytor'; max cores 8.
2024-02-06 15:39:46,231 - cnvpytor.io - DEBUG - Opening h5 file 'WSB_mm39_rd.pytor'
2024-02-06 15:39:46,262 - cnvpytor.io - DEBUG - File 'WSB_mm39_rd.pytor' successfully opened.
2024-02-06 15:39:46,272 - cnvpytor.root - DEBUG - Using GC content from database for reference genome 'mm39'.
2024-02-06 15:39:46,272 - cnvpytor.io - DEBUG - Opening h5 file '/storage/E_drive/Snipes/genome/mm39_gc_ap.pytor'
2024-02-06 15:39:46,386 - cnvpytor.io - DEBUG - File '/storage/E_drive/Snipes/genome/mm39_gc_ap.pytor' successfully opened in read-only mode.
2024-02-06 15:39:46,386 - cnvpytor.root - DEBUG - Using strict mask from database for reference genome 'mm39'.
2024-02-06 15:39:46,386 - cnvpytor.io - DEBUG - Opening h5 file '/storage/E_drive/Snipes/genome/mm39_mask_file.pytor'
2024-02-06 15:39:46,386 - cnvpytor.io - DEBUG - File '/storage/E_drive/Snipes/genome/mm39_mask_file.pytor' successfully opened in read-only mode.
2024-02-06 15:39:46,437 - cnvpytor.root - INFO - Calculating global statistics.
2024-02-06 15:39:46,438 - cnvpytor.root - INFO - Calculating global statistics.
2024-02-06 15:39:46,439 - cnvpytor.root - INFO - Calculating global statistics.
2024-02-06 15:39:46,440 - cnvpytor.root - INFO - Calculating global statistics.
2024-02-06 15:39:46,441 - cnvpytor.io - DEBUG - Closing h5 file 'WSB_mm39_rd.pytor'
2024-02-06 15:39:46,441 - cnvpytor.io - DEBUG - Closing h5 file '/storage/E_drive/Snipes/genome/mm39_gc_ap.pytor'
2024-02-06 15:39:46,441 - cnvpytor.io - DEBUG - Closing h5 file '/storage/E_drive/Snipes/genome/mm39_mask_file.pytor'
Would you mind sharing a sample and reference genome related file via email. I will check in details.
Note: If you would like to avoid typing -conf REL_PATH/example_ref_genome_conf.py
each time you run cnvpytor, you can create an bash alias or make configuration permanent by copying example_ref_genome_conf.py
to ~/.cnvpytor/reference_genomes_conf.py
.
-Arijit
Ok, I've figured it out. There was a mismatch between the bam header and the gc content and mask files. I fixed the header and remade those files, and the histogram command now runs as it should.
I have generated GC content, mask, and conf file for my reference genome, and used these to generate an RD file. When I run
his
command, it calculates global statistics and then terminates without calculating histograms:I am not sure what is happening here. I've used this reference genome and accompanying files on another dataset without this issue. Here is the ls output as well: