Closed yueyaog closed 1 year ago
Hi Gao,
Thanks for bringing this error to my attention! I think the easiest fix would be to not use mappability correction. We tried it in response to a reviewer suggestion, but found that mappability correction created a lot of noise in the coverage profiles and decided not to use it going forward. I haven't completely removed it from the python scripts yet, but set up the snakefile to always skip the mappability correction. I think this may be related to your error.
If you absolutely need to use mappability correction, you'll probably need a different version of the snakefile. There is one here (config.yaml and snakefile) that is set up to run mappability correction:
https://github.com/adoebley/Griffin_analyses/tree/main/delfi_data_cancer_detection/TFBS_nucleosome_profiling_unfiltered_v2
Let me know if you have more questions, -Anna-Lisa
Thanks, Anna-Lisa. It makes a lot of sense. I will not use mappability correction in my analysis.
I am experimenting with different configurations of Griffin for nucleosome profiling, and I noticed that when I set mappability_correction = 'True' and GC_map_corrected_bw = 'path/to/GC_map_corrected.bw' in the griffin_nucleosome_profiling.snakefile, the pipeline throws the following error:
The issue seems to be caused by a TypeError due to the
fetch_bw_values
function expecting a list but receiving a float number. It seems that this error is specific to the combination ofmappability_correction
andGC_map_corrected_bw
options. I think you should able to reproduce the error by settingmappability_correction = 'True'
andGC_map_corrected_bw = 'path/to/GC_map_corrected.bw'
in thegriffin_nucleosome_profiling.snakefile
and run the snakefile.Thank you for your attention to this matter.