Bedtools: How to save output in Cygwin by creating a bed file?
1
0
Entering edit mode
9.5 years ago

I am using bedtools intersect to obtain my two bed files overlapped coordinates but my output is too large in cygwin I couldn't copy paste my result. Is there any other ways to save my output in a text file or bed file?

bed alignment bedtools sequence • 4.7k views
ADD COMMENT
0
Entering edit mode

Don't want to be sceptical about this Cygwin, but under "normal" linux there shouldn't be any problems. Try ubuntu.

image: cygwin

:-)

Edit: I don't know how cygwin works, but bedtools should save it's results into a file.

ADD REPLY
2
Entering edit mode
9.5 years ago
David W 4.9k
bedtools intersect -a a.bed -b b.bed > intersect_ab.bed

The > bit redirects the output into a (newly created/overwritten) file instead of printing to screen. Welcome to unix-like commands, once you 'get' this and piping you'll find you can do a lot from the command line :-)

ADD COMMENT
0
Entering edit mode

Solved. Thanks.

ADD REPLY

Login before adding your answer.

Traffic: 2536 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6