Bed file grepping from the list
1
0
Entering edit mode
4.5 years ago
the_cowa ▴ 40

Hi Stars, I have a bed file of size 20 GB and I need to grep some names(~5000) from the list. So I used this command for this

grep -wf list input.bed >out_grepped.txt

But it is taking more than a week to finish, most will fail. Is there any other methods to do the same

bed grep awk • 1.6k views
ADD COMMENT
0
Entering edit mode

was is a "value" ?

ADD REPLY
0
Entering edit mode

Like some names , examples cat0.1,cat0.45,dog.01 ..

ADD REPLY
0
Entering edit mode
4.5 years ago

sort both files and use join https://linux.die.net/man/1/join

ADD COMMENT

Login before adding your answer.

Traffic: 1677 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