Dev compute matrix strand 20220301 #1128
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Welcome to deepTools GitHub repository! Please check the following regarding
your pull request :
This is my sketch of a way of allowing computeMatrix to deal with stranded pairs of bigWig files (e.g. "...forw.bw" & "...rev.bw"), without having to run it for each strand.
Please note that this is much more a "concrete suggestion" than a stable feature. I haven't added Travis tests; indeed, I haven't sent any pull requests before, to anything.
It adds a class, pyBigWigStranded, which is just a wrapper for a pair of pyBigWig objects. (It might well make sense for this to be part of pyBigWig, but I wasn't sure how to do that.) Having done that, the main other changes to computeMatrix are that:
Again, to reiterate: this is very much a sketch, but to me it seems possibly convenient.