Question: Filtering bed file
0
gravatar for ####
2.2 years ago by
####180
####180 wrote:

chr1 45 95 -

chr3 76 156 +

chr4 675 899 +

scaffold1 56 388 +

scaffold1 200 488 +

scaffold2 400 956 -

my bed file contains these lines and I want to remove the lines starting from scaffold any idea how to filter my bed file to exclude these lines ?

peaks bed • 939 views
ADD COMMENTlink modified 2.2 years ago by berge201580 • written 2.2 years ago by ####180
2

see https://linux.die.net/man/1/grep and option -v

ADD REPLYlink modified 2.2 years ago • written 2.2 years ago by Pierre Lindenbaum117k
1
gravatar for berge2015
2.2 years ago by
berge201580
berge201580 wrote:

try: grep -v '^scaff*' infile > outfile

ADD COMMENTlink written 2.2 years ago by berge201580

Thanks

I got confuse with v ..it worked THanks

ADD REPLYlink modified 2.2 years ago • written 2.2 years ago by ####180
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1377 users visited in the last hour