Thursday, 5 January 2012

how to split BED file according to chromsome - SEQanswers

Gosh i was thinking hey it's easy to code this in python or perl and after 30 mins of messing around  it hit me that csplit might be an easier way to do this .. but with googling it turns out that awk is probably the best solution .. [ Credit quinlana ] 

  awk '{print $0 >> $1".bed"}' example.bed

No comments:

Post a Comment

Datanami, Woe be me