Monday, 18 April 2016

Split a Bed File Based on Chromosome

Cited from Splitting a `.bed` file based on chromosomes into 'chromosomeName.bed'

awk 'BEGIN{FS="\t"; OFS="\t"} {f = $1 ".bed"; print > f}' input.bed

No comments:

Post a Comment