Skip to content

Instantly share code, notes, and snippets.

@vidboda
Created November 2, 2021 10:23
Show Gist options
  • Save vidboda/6234a88e2305d9e0ea20379ee0074852 to your computer and use it in GitHub Desktop.
Save vidboda/6234a88e2305d9e0ea20379ee0074852 to your computer and use it in GitHub Desktop.
Size of a bed file in bp
awk '{if (/^chr/){n+=$3-$2+1}}END{print n}' ROI.bed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment