Assignment 4 You are given two data sets (.xlsx files), stored the position of cancer cells during migration experiment in two different matrices, Collagen Matrix with a high concentration of collagen...

1 answer below »
Using Rstudio answer the questions


Assignment 4 You are given two data sets (.xlsx files), stored the position of cancer cells during migration experiment in two  different matrices, Collagen Matrix with a high concentration of collagen and Collagen Matrix with a low concentration of collagen. The structure of data in each file is as follows:  • The first three columns store the cell coordinate point (X,Y,Z), X coordinate stored in first, Y in the second and Z the third column  • Column four contain the information about the time step.  • Column five is the ID of cells. Each cell has a unique ID.  Using the provided data sets, answer the following questions:  a) How many cancer cells were analyzed in each matrix? Write a program to answer this question. b) How many cells have a full track of migration? Write a program to answer this question. c) Find the speed for each individual cell in each matrix using the following formula:  Speed= (Net Cell Displacement)/total time   ** You may calculate the distance between two points in the space using:  ���������������� = √(���� − ����)�� + (���� − ����)�� + (���� − ����)��  where (��1, ��1, ��1) is the coordinate of the first point and (��2, ��2, ��2) is the   coordinate of the second point. The interval between two consecutive   time steps is 40 mins or (2/3)hour.  d) For cells migrated in the two matrices:  I. Create a boxplot of the migration speed.  II. Find the mean, median, standard deviation of the migration speed in each matrix  III. To the boxplots of part (I.) add  (-) The relevant data points to each boxplot (-) Add Mean Line segment   e) Does really the concertation of collagen (low and high) have impact on cell migration speed? Support your answer by applying a proper hypothesis testing method. Clearly define the  null and alternative hypothesis, explain response and predictor parameters used in your  analysis. Sheet1 XpositionYpositionZpositionTime StepID 142.76998.647101.811001110 169.472203.963103.32611002112 261.373191.473106.18111003113 102.487259.923107.06611004114 43.1146307.178113.75511005119 446.81435.1064103.25411006123 622.728236.292102.82911007125 330.804317.066101.02411008126 405.472209.677106.27211009130 522.96225.651104.83911010131 516.545313.613106.96811011133 820.223107.746102.27911012152 947.83124.849102.51511013155 846.538247.822103.58311014157 729.786267.726105.87811015162 761.28238.089108.75811016166 807.053217.442124.10111017170 118.724427.571110.90911018185 205.482533.752108.75311019187 129.492461.46112.1411020188 147.583516.718112.12311021189 159.428619.891117.32111022192 278.201629.596125.44111023195 422.281495.796103.62511024202 342.226534.414105.79311025205 534.033529.789109.07311026207 894.713515.54592.255911027212 745.204623.13894.720411028214 900.804389.645104.03711029218 759.974520.554107.0911030219 698.275541.254108.25711031221 745.356357.359113.45511032222 269.569777.331101.16411033229 86.5101645.935118.34211034237 155.756734.642127.41311035238 520.556716.88791.077211036239 460.665641.72194.010711037240 492.111653.42793.036311038241 349.116704.30793.726111039242 401.193773.5992.280611040244 522.242684.34699.254511041245 344.758638.968102.12711042247 441.098837.601102.95111043248 513.554858.238104.8311044250 399.839828.478111.59911045251 763.659805.12887.896511046257 845.602837.23288.540611047259 741.285657.861123.4211048267 977.265787.4391.655111049271 968.397670.641106.76111050273 16.7061292.295145.07511051300 757.636166.183134.15211052310 905.464193.947147.16911053315 214.589360.986138.65811054330 213.428623.051144.55511055331 7.70986364.949166.65111056334 648.408383.908139.35511057340 124.854655.693148.77311058352 476.199641.478156.9111059357 607.704419.64899.52651106014004 739.976417.792109.8381106114010 517.858155.815120.3311106214019 534.424426.964941107215501 526.425442.9581261107015524 546.626425.51795.25621107315537 528.644440.3641061107415549 517.695481.6311021107515570 199.19552.7451101106515605 372.502841.1151141106915627 2.8678383.09126.0621107615637 855.611662.0111301107715660 849.415654.2381221107815683 694.982476.902981106315706 569.288431.996981106715724 116.05103.41899.05261108015726 890.371723.4931261108315766 866.576725.312981108115789 866.289711.4251181108215790 927.655641.051941108415815 139.93297.720596.76432100114024 168.791206.63398.0882100214025 260.559190.922100.2052100314026 100.401261.272101.462100414027 44.1278305.558108.4142100514028 454.57125.914699.18692100614029 626.358238.29397.72762100714030 330.919318.35696.05992100814031 407.965207.041102.0392100914032 523.583224.52100.1362101014033 514.652308.713101.5592101114034 815.992107.39196.61442101214035 943.938128.10996.1682101314036 845.829246.05197.8132101414037 757.695235.783103.9052101614038 725.89267.797102.1552101514039 804.556216.957119.2572101714040 209.754531.897103.3022101914041 120.09427.514105.7762101814042 130.452459.549106.4922102014043 152.007517.787107.6592102114044 161.28617.755110.3952102214045 275.74626.934121.6112102314046 458.497635.76690.76972103714047 421.563494.36498.53182102414048 346.655638.61298.01872104214049 532.767528.321103.8782102614050 341.173534.047101.4672102514051 888.721515.4287.28742102714053 744.327619.77789.82042102814054 689.056462.41897.90712106314055 900.833389.923101.4222102914056 760.824517.753101.6242103014057 699.644537.262102.9992103114058 744.489356.923108.6432103214059 268.37776.75296.1072103314060 185.685789.18898.31122106414061 77.2644654.245112.4192103414062 157.921727.525123.7532103514063 519.137714.16386.20282103614064 396.035771.69886.93472104014065 498.166654.56188.67482103814066 356.553696.10190.97322103914067 527.185682.58494.98782104114068 435.98836.75498.30172104314069 511.47854.76998.76612104414070 398.322826.143105.8552104514071 762.365805.26382.48312104614072 837.553834.00183.40972104714073 741.03655.997117.1342104814075 982.059789.34885.81432104914076 967.854668.773101.092105014077 12.6094290.249141.3652105114078 755.142165.966128.7532105214079 905.05190.991142.0032105314080 214.483361.308133.5142105414081 215.19620.962138.7922105514082 11.1929363.416161.8432105614083 647.235381.914135.0822105714084 124.508653.872143.7952105814085 473.229638.953151.8092105914086 610.199425.01797.41642106014088 725.002423.10798.01732106114089 517.858156.803115.7122106214090 532.258426.091902107215502 527.863438.4551142107015525 550.9418.0395.52592107315538 527.426440.4531022107415550 519.744477.593982107515571 194.479552.771022106515606 369.157838.8111022106915628 1.76135383.09109.3362107615638 854.93660.0951182107715661 845.259654.1891062107815684 558.87434.401942106715725 118.546104.12196.35122108015727 863.3719.434982108115750 896.941718.8911222108315767 862.399709.0441142108215791 935.319642.794862108415816 140.08395.627392.73213100114092 170.516205.67194.16543100214093 102.54261.63894.84863100414094 260.105192.49896.60663100314095 41.7991306.452105.0163100514096 335.991313.29491.92323100814097 455.05521.241294.85063100614098 523.023224.23995.74393101014099 627.616240.22893.41123100714100 407.22206.70298.52243100914101 514.949309.2297.31623101114102 814.052106.89791.95713101214103 939.598137.57694.11563101314104 845.041249.25994.1483101414105 756.606233.12899.59293101614106 723.313267.40297.83653101514107 803.492215.008115.6883101714108 753.889166.837124.5113105214109 215.006526.62198.95293101914110 195.199564.02898.05273106514111 121.078424.466101.0583101814112 133.155457.772102.4883102014113 156.963546.737102.6983106614114 154.463516.145104.0313102114115 159.936619.083105.7843102214116 271.797627.76116.4983102314117 457.109635.92585.49173103714118 563.575429.36293.26063106714119 423.678493.75193.46313102414120 345.674637.16293.06013104214121 533.974527.21498.36783102614122 338.571533.96296.26573102514123 887.322514.53384.25263102714125 740.1621.63285.54143102814126 693.535461.96995.42213106314127 899.715387.58796.97853102914128 759.722515.81498.0823103014129 699.241537.52899.05883103114130 748.495353.631102.2353103214131 267.755777.23791.92063103314132 179.654792.89893.13363106414133 72.6034661.144107.3433103414134 161.188724.45120.7493103514135 496.185650.90182.01833103814136 362.873698.65883.46573103914137 520.061714.04881.56993103614138 397.323773.09582.34113104014139 529.264684.14888.75723104114140 431.867837.60994.46473104314141 510.271854.61894.65413104414142 397.64826.281101.6253104514143 760.982803.73278.09653104614144 838.211835.15878.91553104714145 741.893657.128113.1333104814147 982.059788.12181.89823104914148 968668.84296.54923105014149 12.5135289.966137.4083105114150 904.685190.661137.4943105314151 214.101360.379129.2943105414152 214.375621.212134.673105514153 8.11742363.196157.6533105614154 647.074382.579131.43105714155 124.101655.061138.6613105814156 472.906639.857147.1083105914157 612.695420.93694.39783106014159 727.497421.39794.5673106114160 512.867149.842116.5333106214161 530.301428.856903107215503 524.746441.621143107015526 550.732413.03994.28563107315539 529.36440.422983107415551 519.282480.511903107515572 366.768832.264983106915629 3.44788370.61298.09523107615639 855.08661.3021063107715662 849.996653.9911143107815685 123.537101.5899.25933108015728 865.458718.908943108115751 890.819728.1161103108315768 862.399709.0441143108215792 935.399638.986863108415817 141.76697.125390.11754100114163 167.399208.15190.50574100214164 99.8863263.59190.52914100414165 254.672196.46994.10954100314166 37.8868307.298101.9244100514167 458.02120.580291.05574100614168 524.213224.93490.84854101014169 630.416243.71790.68054100714170 336.984313.38388.83744100814171 399.427209.08394.16384100914172 514.707309.72193.4484101114173 501.085142.903113.1914106214174 815.073108.24889.16914101214175 845.61248.14391.44444101414176 940.503148.46194.35574101314177 722.008268.79795.43394101514178 752.333230.0196.95874101614179 800.785212.835112.5784101714180 755.737167.362122.4654105214181 214.55521.17195.38774101914182 125.848425.50798.74774101814183 133.412456.38299.5664102014184 161.03551.49399.88914106614185 187.584574.52796.38524106514186 154.171516.484102.2624102114187 159.674620.31103.4034102214188 274.543627.701114.4454102314189 212.566360.106125.9854105414190 455.636635.25182.67134103714191 567.523429.31289.90834106714192 421.122494.03990.96314102414193 344.909638.04690.25834104214194 532.733527.19495.32644102614195 336.699535.60192.98284102514196 889.971513.11281.19324102714198 740.426622.78981.73474102814199 891.755386.73493.34264102914200 689.244450.30593.98184106314201 759.196514.26394.99384103014202 698.54537.73494.97794103114203 744.692347.98898.11754103214204 267.013777.16788.59634103314205 183.524793.02390.3384106414206 65.7634671.21106.144103414207 155.811736.446113.144106814208 166.896718.302121.3594103514209 495.288650.96179.49384103814210 520.948713.26978.93624103614211 397.905772.1779.26644104014212 365.229693.43380.95394103914213 530.846685.25384.87624104114214 431.916837.1391.11024104314215 510.767853.64291.13094104414216 397.732825.25999.15144104514217 756.287803.87575.01654104614218 841.85837.32275.56214104714219 740.661657.99109.0454104814220 982.059788.0678.64334104914222 968.778667.51293.97374105014223 14.2808290.913134.4044105114224 901.055191.455134.0814105314225 212.116624.11131.4974105514226 6.76659363.081155.064105614227 645.384383.035129.2654105714228 125.348653.443136.1514105814229 476.372640.513145.3834105914230 632.661426.15988.27724106014232 727.497420.69891.22564106114233 526.961424.691864107215504 525.227440.7211104107015527 550.178413.03988.75624107315540 529.02441.1461024107415552 521.583481.68824107515573 369.155833.802904106915630 2.53796368.116105.6914107615640 857.202661.5441104107715663 851.266655.2281104107815686 121.042103.80989.19464108015729 887.366723.0941104108315769 857.081709.8581064108215794 870.116725.096984108115795 936.652643.279784108415818 138.12298.351586.56175100114235 166.229206.99187.75115100214236 96.2245265.29987.83945100414237 249.85199.58690.32565100314238 34.5731310.8299.47365100514239 461.68220.855186.97015100614240 336.618317.81586.40555100814241 405.412208.45790.75015100914242 523.013223.6588.31455101014243 631.406245.2788.24285100714244 516.448311.88790.4845101114245 498.864147.435109.4285106214246 815.504107.21386.95795101214247 845.638249.37189.64525101414248 941.196150.29593.87835101314249 746.668224.24794.59555101614250 721.669269.20192.96945101514251 797.826211.34111.6815101714252 760.088170.193121.2015105214253 214.258514.3392.14325101914254 125.594426.19397.05725101814255 133.954456.13597.98815102014256 165.383549.08398.75945106614257 197.906578.91196.38985106514258 153.368516.596101.7245102114259 162.55617.394101.9495102214260 275.079627.123113.0595102314261 211.189360.484124.2655105414262 458.442636.82180.32245103714263 343.769637.8887.94845104214264 570.92431.37688.91915106714265 420.401494.59288.86615102414266 332.588535.53491.01395102514267 532.982527.9292.82785102614269 895.372512.97278.67775102714271 739.622622.43378.94625102814272 894.128383.99791.33565102914273 693.695457.69591.32435106314274 760.131515.17795.48875103014275 700.842535.46493.19785103114276 743.435348.78597.535103214277 647.322382.615126.6875105714278 269.161778.30686.54175103314279 183.205794.9488.98565106414280 68.9893679.832102.8625103414281 158.96737.998110.9515106814282 168.575719.028121.2555103514283 488.939648.27976.73125103814284 350.898685.14578.78095103914285 520.013714.39777.09975103614286 398.691773.16977.60635104014287 532.397686.08383.17095104114288 427.219838.46290.29425104314289 509.766854.91789.55035104414290 397.879826.50798.60675104514291 755.608805.60872.69825104614292 841.964838.17773.40455104714293 740.879658.489106.2585104814294 982.059786.77676.93325104914296 968.834667.34691.66435105014297 13.2823291.416131.9765105114298 900.127191.445131.6215105314299 214.582623.021129.0635105514300 8.03457362.667153.0015105614301 124.31653.971134.1325105814302 479.24641.923141.5875105914303 635.156429.12295.8545106014305 727.497418.51792.63855106114306 528.685428.002865107215505 529443.5361025107015528 547.686410.54387.3235107315541 538.972449.4841185107415553 519.929485.573825107515574 368.267833.405905106915631 1.94373380.595100.6425107615641 857.933655.9231185107715664 846.522655.4411025107815687 118.546103.22685.94585108015730 856.788715.082945108215753 888.635719.9261145108315770 868.167730.564865108115796 931.118635.739825108415819 137.61497.586484.976100114308 166.089208.57387.68676100214309 94.0816264.3985.32016100414310 246.695199.29988.64556100314311 31.5823310.68597.24226100514312 458.96218.771185.71456100614313 523.801224.76185.19256101014314 630.068241.76185.24276100714315 338.034316.25784.24066100814316 404.637204.8988.89956100914317 518.459313.33988.32636101114318 502.536148.975107.8446106214319 815.479107.47586.17736101214320 846.387254.01987.14636101414321 724.914271.03590.82276101514322 943.079149.89993.19266101314323 748.094225.86692.50276101614324 799.535210.288109.3926101714325 764.498170.905120.3936105214326 227.034511.61987.41726101914327 127.136425.38994.85956101814328 134.522456.37995.7986102014329 165.147516.32194.15626102114330 199.833577.82495
Answered 4 days AfterMar 22, 2022

Answer To: Assignment 4 You are given two data sets (.xlsx files), stored the position of cancer cells during...

Mohd answered on Mar 23 2022
121 Votes
-
-
-
3/23/2022
Importing datasets
library(readxl)
library(magrittr)
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
library(ggplot2)
library(rmarkdown)
matrix2highcollagenconcentration <- read_excel("New folder (2)/matrix2highcollagenconc
entration.xlsx")
## New names:
## * `` -> ...6
View(matrix2highcollagenconcentration)
matrix1lowcollagenconcentration <- read_excel("New folder (2)/matrix1lowcollagenconcentration.xlsx")
View(matrix1lowcollagenconcentration)
1. How many cancer cells were analyzed in each matrix? Write a program to answer this question.
unique(matrix1lowcollagenconcentration$ID)
## [1] 1019 1009 1008 1021 1011 1010 1012 1014 1015 1044 1001 1017 1018 1041 1002
## [16] 1020 1013 1038 1027 1026 1023 1024 1025 1042 1046 1040 1045 1028 1003 1031
## [31] 1006 1039 1032 1033 1004 1029 1034 1005 1035 1043 1036 1030 1007 1037 1049
## [46] 1050 1051 1047 1052 1016 1053 1054 1048 1055 1056 1084 1061 1064 1065 1067
## [61] 1078 1068 1073 1074 1075 1076 1077 1081 1080 1082 1058 1059 1060 1057 1062
## [76] 1066 1069 1071 1072 1063 1070 1083 1085 1086 1087 1125 1088 1122 1090 1098
## [91] 1092 1096 1093 1094 1095 1100 1131 1106 1129 1102 1104 1107 1105 1103 1108
## [106] 1110 1109 1112 1113 1128 1127 1089 1123 1114 1116 1117 1126 1118 1132 1097
## [121] 1101 1130 1119 1111 1120 1121 1124 1091 1133 1099 1115 1134 1135 1136 1137
## [136] 1138 1139 1140 1147 1144 1146 1152 1154 1153 1148 1150 1165 1167 1142 1141
## [151] 1166 1162 1168 1151 1156 1169 1157 1163 1159 1160 1158 1171 1161 1149 1155
## [166] 1164 1143 1170 1145 1172 1079 1022 1173 1174 1175 1176 1177 1178 1179 1180
## [181] 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195
## [196] 1196 1197 1198 1199 1200 1201 1204 1205 1202 1207 1208 1209 1211 1212 1213
## [211] 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228
## [226] 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1247 1210
## [241] 1242 1245 1244 1246 1206 1243 1203
unique(matrix2highcollagenconcentration$ID)
## [1] 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015
## [16] 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
## [31] 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
## [46] 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060
## [61] 1061 1062 1072 1070 1073 1074 1075 1065 1069 1076 1077 1078 1063 1067 1080
## [76] 1083 1081 1082 1084 1064 1066 1068 1079 1071 1085 1086 1087 1088 1089 1090
## [91] 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105
## [106] 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
## [121] 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135
## [136] 1139 1140 1141 1138 1136 1137 1142 1143 1144 1146 1147 1145 1148 1149 1150
## [151] 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165
## [166] 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180
## [181] 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195
## [196] 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210
## [211] 1211 1212 1213 1217 1216 1215 1218 1219 1214
summary(matrix1lowcollagenconcentration)
## Xposition Yposition Zposition Time Step
## Min. : 1.248 Min. : 1.248 Min. : 25.46 Min. : 1.000
## 1st Qu.: 321.032 1st Qu.:264.961 1st Qu.:104.48 1st Qu.: 5.000
## Median : 608.992 Median :456.639 Median :151.25 Median : 9.000
## Mean : 577.221 Mean :475.181 Mean :145.37 Mean : 9.446
## 3rd Qu.: 826.499 3rd Qu.:684.302 3rd Qu.:182.00 3rd Qu.:14.000
## Max. :1162.150 Max. :977.064 Max. :282.97 Max. :18.000
## ID
## Min. :1001
## 1st Qu.:1064
## Median :1126
## Mean :1125
## 3rd Qu.:1186
## Max. :1247
summary(matrix2highcollagenconcentration)
## Xposition Yposition Zposition Time Step
## Min. : 1.248 Min. : 1.248 Min. : 40.69 Min. : 1.00
## 1st Qu.:...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here