This is a test version of Biostars. For the public version, visit https://www.biostars.org.
BED file modification

Hello,

I have BED file with all the chromosome coordinates.

I need to remove ChrX, ChrY and ChrM from this file.

Please suggest how this can be done.

Thanks

bed ngs chromosomes

1 answer

awk '(!($1=="ChrX" || $1=="ChrY" || $1=="ChrM"))' in.bed

Log in to answer this question.