-
Hey, me again! I have trouble understanding stumpy.motifs. I have written the following lines of code:
As a result I get a tuple with two ndarrays of size (1,2) - i.e. the motif_distances and motif_indices. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
@SaVoAMP Good question. It sounds like we need to add some more details to the documentation to make these things clearer. So, in an attempt to conserve memory/space, we opted to only return essential information to the user that satisfies several key criterion that are defined by the input parameters. When you set So, in theory, if everything works out nicely and you have great candidate motifs (that aren't disqualified) that then have an abundance of matches (that aren't disqualified), then you should expect to get a Of course, you can set the Now that I think about it, perhaps it would make more sense to always make sure that the returned arrays have shape Let me know if that makes sense. I'd be curious to get your feedback so that we can improve this. |
Beta Was this translation helpful? Give feedback.
@SaVoAMP Good question. It sounds like we need to add some more details to the documentation to make these things clearer. So, in an attempt to conserve memory/space, we opted to only return essential information to the user that satisfies several key criterion that are defined by the input parameters. When you set
max_matches=10
, this is the upper limit as to how many matches are allowed to be returned for each "candidate motif". As you can imagine, for each "candidate motif", it is possible for it to have many, many matches (i.e., beyond 10) OR it can have no matches (i.e., when the distance between the candidate and the matches is greater thanmax_distance
). Similarly, when you setmax…