How can I download the length of short and long arms for each chromosome of mouse? because when I did this -
x <- fread("https://hgdownload.cse.ucsc.edu/goldenpath/mm10/database/cytoBand.txt.gz",
col.names = c("chrom","chromStart","chromEnd","name","gieStain"))
x[ , .(length = sum(chromEnd - chromStart)),
by = .(chrom, arm = substring(name, 1, 1)) ]
chrom arm length
1: chr1 q 195471971
2: chr10 q 130694993
3: chr11 q 122082543
4: chr12 q 120129022
5: chr13 q 120421639
6: chr14 q 124902244
7: chr15 q 104043685
8: chr16 q 98207768
9: chr17 q 94987271
10: chr18 q 90702639
11: chr19 q 61431566
12: chr2 q 182113224
13: chr3 q 160039680
14: chr4 q 156508116
15: chr5 q 151834684
16: chr6 q 149736546
17: chr7 q 145441459
18: chr8 q 129401213
19: chr9 q 124595110
20: chrX q 171031299
21: chrY q 91744698
chrom arm length
I am getting only one arm length, Is this right ?
Thank you
Thank you for posting the answer. Can you please up-vote and / or Accept the other answers that have assisted you?