PLEASE ANSWER IN R PROGRAMMING chr_size.csv: chr,length 2,113.7938 1,108.3575 5,100.0519 7,99.0545 4,98.4585 11,97.9802
Posted: Sun May 15, 2022 1:03 pm
PLEASE ANSWER IN R PROGRAMMING
chr_size.csv:
chr,length
2,113.7938
1,108.3575
5,100.0519
7,99.0545
4,98.4585
11,97.9802
3,92.4665
X,89.33
6,88.9674
10,87.9816
8,86.095
9,85.052
13,77.21
14,76.3987
12,73.485
17,71.1663
18,69.3252
15,68.264
16,67.7184
19,66.7762
qtl_maps_small.csv:
marker,chr,pos
backupUNC160136386,16,51.424
backupJAX00642837,7,40.0976
backupUNC120783111,12,18.941
UNC070433580,7,64.9233
JAX00717214,X,47.5383
JAX00583264,5,30.829
UNC081371717,8,62.606
backupJAX00654337,7,67.417
backupUNC150345256,15,11.9527
JAX00165603,8,50.4285
backupUNC080534893,8,61.5942
backupJAX00466928,18,54.0795
backupUNC160349027,16,33.4251
UNC060113568,6,29.37
JAX00203426,13,41.7175
JAX00106081,3,16.9028
UNC150240442,15,40.3473
UNC111374186,11,41.907
UNC090368888,9,59.631
UNC150258053,15,47.263
backupUNC080376445,8,50.074
UNC110100720,11,40.593
UNC010551393,1,16.5789
backupUNC100277875,10,5.861
JAX00131489,5,38.2473
JAX00029595,11,49.4159
backupUNC200012541,X,29.312
backupUNC180094558,18,23.809
UNC200192385,X,49.815
UNC010984546,1,63.0755
backupUNC020104494,2,47.1964
JAX00450589,17,60.689
backupUNC200112735,X,47.8563
UNC160035995,16,22.402
backupUNC030018403,3,5.6974
UNC100022527,10,6.363
UNC130539462,13,45.297
UNC040054581,4,21.2492
backupUNC030475072,3,33.612
UNC140244744,14,36.322
backupUNC181051909,18,21.9202
backupUNC140381698,14,66.038
UNC120024317,12,8.072
backupUNC200011470,X,28.326
JAX00094009,2,28.2623
UNC050013072,5,3.43
UNC040545039,4,47.816
UNC010243790,1,52.983
backupUNC121120966,12,45.018
UNC100021939,10,5.9596
backupUNC040088866,4,34.0947
JAX00387738,14,49.221
backupUNC010101265,1,29.0802
UNC100156403,10,17.8847
JAX00545719,4,6.2584
backupJAX00024664,11,8.623
UNC070408499,7,61.159
backupJAX00116373,4,6.9239
UNC040913408,4,8.732
backupJAX00516508,3,7.4154
UNC101431286,10,49.1369
UNC040386948,4,2.56
UNC171138957,17,33.237
backupUNC070523867,7,44.8203
JAX00066632,16,9.3409
UNC120117709,12,18.057
UNC050318764,5,3.972
backupUNC160222545,16,38.88
JAX00591556,5,53.2038
UNC190090409,19,48.2548
JAX00598072,5,72.7639
backupUNC080507138,8,38.5707
UNC080656100,8,36.7162
backupUNC150056097,15,8.2843
UNC030314351,3,37.825
UNC021507726,2,69.202
UNC200581861,X,39.95
UNC010720695,1,26.992
backupUNC120458166,12,61.196
backupUNC040036735,4,12.998
JAX00671644,8,33.879
JAX00392473,15,2.153
UNC060396818,6,45.742
backupUNC081473870,8,26.9045
backuprs6294371,6,28.7129
backupUNC020120299,2,53.374
UNC031025635,3,21.8536
UNC010680647,1,97.936
backupJAX00215705,2,11.8617
backupUNC090318792,9,26.3531
JAX00018360,10,29.2058
UNC080272242,8,35.5692
UNC200246879,X,73.953
JAX00443156,17,32.0558
JAX00478992,19,39.2676
UNC120426410,12,38.0987
UNC040532350,4,42.361
backupUNC071302801,7,50.5261
JAX00233862,8,5.726
backupUNC060305985,6,34.8571
Q3. You are given two csv files: gtl maps small.csv and chr size.csv. [20 points) qtl maps small.csv contains the locations of some important genetic markers in the chromosomes of humans. Each row in the file represents a genetic marker: first column is the name of the marker, second column is the name of the chromosome the marker is located, third column is the location of the marker in the chromosome. chr size.csv contains the length of each chromosome. First column is the chromosome name, and second column is the length of the chromosome. Your goal is to write R code to generate the plot below to visually represent the data in the two files. In the plot, vertical lines represent the length of each chromosome. It should be arranged from largest to smallest. The dots on the lines represent the locations of the markers in the chromosome. Use geom linerange to plot the vertical lines, and geom point to plot the dots.
90- pos 30- 0- 10 89 chr 13 14 12 17 10 15169
chr_size.csv:
chr,length
2,113.7938
1,108.3575
5,100.0519
7,99.0545
4,98.4585
11,97.9802
3,92.4665
X,89.33
6,88.9674
10,87.9816
8,86.095
9,85.052
13,77.21
14,76.3987
12,73.485
17,71.1663
18,69.3252
15,68.264
16,67.7184
19,66.7762
qtl_maps_small.csv:
marker,chr,pos
backupUNC160136386,16,51.424
backupJAX00642837,7,40.0976
backupUNC120783111,12,18.941
UNC070433580,7,64.9233
JAX00717214,X,47.5383
JAX00583264,5,30.829
UNC081371717,8,62.606
backupJAX00654337,7,67.417
backupUNC150345256,15,11.9527
JAX00165603,8,50.4285
backupUNC080534893,8,61.5942
backupJAX00466928,18,54.0795
backupUNC160349027,16,33.4251
UNC060113568,6,29.37
JAX00203426,13,41.7175
JAX00106081,3,16.9028
UNC150240442,15,40.3473
UNC111374186,11,41.907
UNC090368888,9,59.631
UNC150258053,15,47.263
backupUNC080376445,8,50.074
UNC110100720,11,40.593
UNC010551393,1,16.5789
backupUNC100277875,10,5.861
JAX00131489,5,38.2473
JAX00029595,11,49.4159
backupUNC200012541,X,29.312
backupUNC180094558,18,23.809
UNC200192385,X,49.815
UNC010984546,1,63.0755
backupUNC020104494,2,47.1964
JAX00450589,17,60.689
backupUNC200112735,X,47.8563
UNC160035995,16,22.402
backupUNC030018403,3,5.6974
UNC100022527,10,6.363
UNC130539462,13,45.297
UNC040054581,4,21.2492
backupUNC030475072,3,33.612
UNC140244744,14,36.322
backupUNC181051909,18,21.9202
backupUNC140381698,14,66.038
UNC120024317,12,8.072
backupUNC200011470,X,28.326
JAX00094009,2,28.2623
UNC050013072,5,3.43
UNC040545039,4,47.816
UNC010243790,1,52.983
backupUNC121120966,12,45.018
UNC100021939,10,5.9596
backupUNC040088866,4,34.0947
JAX00387738,14,49.221
backupUNC010101265,1,29.0802
UNC100156403,10,17.8847
JAX00545719,4,6.2584
backupJAX00024664,11,8.623
UNC070408499,7,61.159
backupJAX00116373,4,6.9239
UNC040913408,4,8.732
backupJAX00516508,3,7.4154
UNC101431286,10,49.1369
UNC040386948,4,2.56
UNC171138957,17,33.237
backupUNC070523867,7,44.8203
JAX00066632,16,9.3409
UNC120117709,12,18.057
UNC050318764,5,3.972
backupUNC160222545,16,38.88
JAX00591556,5,53.2038
UNC190090409,19,48.2548
JAX00598072,5,72.7639
backupUNC080507138,8,38.5707
UNC080656100,8,36.7162
backupUNC150056097,15,8.2843
UNC030314351,3,37.825
UNC021507726,2,69.202
UNC200581861,X,39.95
UNC010720695,1,26.992
backupUNC120458166,12,61.196
backupUNC040036735,4,12.998
JAX00671644,8,33.879
JAX00392473,15,2.153
UNC060396818,6,45.742
backupUNC081473870,8,26.9045
backuprs6294371,6,28.7129
backupUNC020120299,2,53.374
UNC031025635,3,21.8536
UNC010680647,1,97.936
backupJAX00215705,2,11.8617
backupUNC090318792,9,26.3531
JAX00018360,10,29.2058
UNC080272242,8,35.5692
UNC200246879,X,73.953
JAX00443156,17,32.0558
JAX00478992,19,39.2676
UNC120426410,12,38.0987
UNC040532350,4,42.361
backupUNC071302801,7,50.5261
JAX00233862,8,5.726
backupUNC060305985,6,34.8571
Q3. You are given two csv files: gtl maps small.csv and chr size.csv. [20 points) qtl maps small.csv contains the locations of some important genetic markers in the chromosomes of humans. Each row in the file represents a genetic marker: first column is the name of the marker, second column is the name of the chromosome the marker is located, third column is the location of the marker in the chromosome. chr size.csv contains the length of each chromosome. First column is the chromosome name, and second column is the length of the chromosome. Your goal is to write R code to generate the plot below to visually represent the data in the two files. In the plot, vertical lines represent the length of each chromosome. It should be arranged from largest to smallest. The dots on the lines represent the locations of the markers in the chromosome. Use geom linerange to plot the vertical lines, and geom point to plot the dots.
90- pos 30- 0- 10 89 chr 13 14 12 17 10 15169