This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bedtools: How to save output in Cygwin by creating a bed file?

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

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.

1 answer

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 :-)

Log in to answer this question.