Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'shift' tool. #40

Open
arq5x opened this issue Nov 28, 2012 · 14 comments
Open

Add a 'shift' tool. #40

arq5x opened this issue Nov 28, 2012 · 14 comments

Comments

@arq5x
Copy link
Owner

arq5x commented Nov 28, 2012

shift should move an interval left or right by either a fixed number of bases or a specific fraction of a chromosome.

@ttriche
Copy link

ttriche commented Sep 17, 2014

any news on this before I write it? :-)

@arq5x
Copy link
Owner Author

arq5x commented Sep 17, 2014

Unfortunately, I haven't gotten around to this yet. Sorry!

@ttriche
Copy link

ttriche commented Sep 17, 2014

nevermind, it looks like bedtools slop does this anyhow (at least in 2.2.0)

thanks!

Statistics is the grammar of science.
Karl Pearson http://en.wikipedia.org/wiki/The_Grammar_of_Science

On Wed, Sep 17, 2014 at 1:36 PM, Aaron Quinlan notifications@github.com
wrote:

Unfortunately, I haven't gotten around to this yet. Sorry!


Reply to this email directly or view it on GitHub
#40 (comment).

@arq5x
Copy link
Owner Author

arq5x commented Sep 17, 2014

That is a slightly different op...

@ttriche
Copy link

ttriche commented Sep 17, 2014

eh, I may just use pandas on the bedGraph then ;-)

Statistics is the grammar of science.
Karl Pearson http://en.wikipedia.org/wiki/The_Grammar_of_Science

On Wed, Sep 17, 2014 at 2:22 PM, Aaron Quinlan notifications@github.com
wrote:

That is a slightly different op...


Reply to this email directly or view it on GitHub
#40 (comment).

@ttriche
Copy link

ttriche commented Sep 17, 2014

Actually scratch that, I think I will go ahead and pick at the C++ data structures to make it fast and stream-capable. Why not do it right, (more or less) once and for all.

@ttriche
Copy link

ttriche commented Sep 17, 2014

It is better to do so with the bedtools2 repository though, yes?

@arq5x
Copy link
Owner Author

arq5x commented Sep 17, 2014

The code in the slop tool will get you 90% of the way.

@arq5x
Copy link
Owner Author

arq5x commented Sep 17, 2014

Indeed.

@brentp
Copy link
Contributor

brentp commented Sep 18, 2014

seems like this could just be a new option in slop.

@arq5x
Copy link
Owner Author

arq5x commented Sep 18, 2014

Perhaps, but I see them as fundamentally different. Slop maintains the "center" of the interval and extends the ends in both or either direction. The purpose of shift is to move the interval left or right, but not change its size.

@arq5x
Copy link
Owner Author

arq5x commented Sep 18, 2014

I think I must be a bit bad at choosing verbs for the tools, as some of these cause confusion for many!

@brentp
Copy link
Contributor

brentp commented Sep 18, 2014

could be fun to think of the verb first, then decide what the tool will do:

bedtools cork

bedtools sanction

bedtools advise

etc.

@arq5x
Copy link
Owner Author

arq5x commented Sep 18, 2014

I like the way you think, sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants