Closed kanglizhu closed 2 years ago
Hi, I think this may be because they cannot find the input file. I‘m trying to change the "modisco.py" and retry. Here is the code that i changed, but i'm not sure that's the right thing to do. ` """ import h5py modisco_results = workflow(task_names=task_names, contrib_scores=contrib_scores, hypothetical_contribs=hypothetical_contribs, one_hot=one_hot, null_per_pos_scores=null_per_pos_scores)
logger.info(f"Saving modisco file to {output_path}")
grp = h5py.File(output_path,'r+')
modisco_results.save_hdf5(grp)
grp.flush()
grp.close()
`
Hi, I think this may be because they cannot find the input file. I‘m trying to change the "modisco.py" and retry. Here is the code that i changed, but i'm not sure that's the right thing to do. ` """ import h5py modisco_results = workflow(task_names=task_names, contrib_scores=contrib_scores, hypothetical_contribs=hypothetical_contribs, one_hot=one_hot, null_per_pos_scores=null_per_pos_scores) # save the results logger.info(f"Saving modisco file to {output_path}") grp = h5py.File(output_path,'r+') modisco_results.save_hdf5(grp) grp.flush() grp.close()
`
It doesn't work.
Dear developers,
I want to discover motifs with TF-MoDISco. When i run "bpnet modisco-run contrib.scores.h5 --premade=modisco override='TfModiscoWorkflow.max_seqlets_per_metacluster=20000' modisco/", i got an warning message
H5pyDeprecationWarning: The default file mode will change to 'r' (read-only) in h5py 3.0. To suppress this warning, pass the mode you need to h5py.File(), or set the global default h5.get_config().default_file_mode, or set the environment variable H5PY_DEFAULT_READONLY=1. Available modes are: 'r', 'r+', 'w', 'w-'/'x', 'a'. See the docs for details. grp = h5py.File(output_path)"
and an error message
Any help or guidance would be greatly appreciated!
Thank you!
kangli zhu