Skip to content

Instantly share code, notes, and snippets.

@vidboda
Last active July 29, 2024 09:56
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}}END{print n}' ROI.bed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment