Chromosome sizes downloading (in bp).
1
0
Entering edit mode
11 weeks ago
Jimpix • 0

Hi! From where can I download human and mouse chromosomes sizes (whole genome at once) in base pairs? I need this in file for example .tsv or similar which could I load into python. Can someone give me tips or link?

Appreciate the help!

chromosome sizes • 284 views
ADD COMMENT
2
Entering edit mode

Easiest Way To Obtain Chromosome Length?

Please use the search function, many threads on this.

ADD REPLY
0
Entering edit mode

Get chromosome sizes from fasta file

This is a good one too!

ADD REPLY
0
Entering edit mode
11 weeks ago

The UCSC Kent Utilities fetchChromSizes tool can be used here.

If you just need sizes of nuclear chromosomes (i.e., no pseudo-chromosomes):

$ fetchChromSizes hg38 | grep -v '_*_' > hg38.chromSizes

If you need a BED file for set operations:

$ fetchChromSizes hg38 | grep -v '_*_' | awk -v FS="\t" -v OFS="\t" '{ print $1, "0", $2 }' | sort-bed - > hg38.bed

Replace hg38 with your assembly of interest.

ADD COMMENT

Login before adding your answer.

Traffic: 2483 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6