Open
Description
Hi Avanti, When I modify part of the example code and then have an error to be reported here. I don't know why. Could you help me out?
tfmodisco_results = modisco.tfmodisco_workflow.workflow.TfModiscoWorkflow(
#Slight modifications from the default settings
sliding_window_size=5,
flank_size=5,
target_seqlet_fdr=0.15,
seqlets_to_patterns_factory=
modisco.tfmodisco_workflow.seqlets_to_patterns.TfModiscoSeqletsToPatternsFactory(
#Note: as of version 0.5.6.0, it's possible to use the results of a motif discovery
# software like MEME to improve the TF-MoDISco clustering. To use the meme-based
# initialization, you would specify the initclusterer_factory as shown in the
# commented-out code below:
# initclusterer_factory=modisco.clusterinit.memeinit.MemeInitClustererFactory(
# meme_command="meme", base_outdir="meme_out",
# max_num_seqlets_to_use=10000, nmotifs=10, n_jobs=1),
trim_to_window_size=5,
initial_flank_to_add=5,
final_flank_to_add=5,
final_min_cluster_size=6,
n_cores=10)
)(
task_names=["0"],#, "task1", "task2"],
contrib_scores=task_to_scores,
hypothetical_contribs=task_to_hyp_scores,
one_hot=one_hot_seqs,
null_per_pos_scores=null_per_pos_scores)
IndexError: cannot do a non-empty take from an empty axes.
Metadata
Metadata
Assignees
Labels
No labels