Dear R-help colleagues,

I am looking for a way to read my txt file into R such that it can pass the 
check_input() function and be processed by in GCalignR.

The vignette mentioned to save data in txt format, with first row listing 
items, 2nd row listing RT and Area, third rows and afterwards concatenate 
multiple RT and area from items listed in first row.

I did this but did not find an effective way to import this data. Tried 
read.delim, scan, read individual and combine into a list. Saved to system.file 
and read as the example data. None worked.

Any suggestions?

Thank you very much.

Hui

Wave Life Sciences Email Confidentiality Notice: This message, including any 
attachments, is for use by the intended recipient(s) and may be proprietary, 
confidential and/or privileged. If you are not the intended recipient(s), 
please destroy all copies of this message and any attachments. Any use, 
forwarding, copying, or printing of this message or portion thereof by anyone 
other than the intended recipient(s) is prohibited. This email neither 
constitutes an agreement to conduct transactions by electronic means nor 
creates any legally binding contract or enforceable obligation in the absence 
of a fully signed written contract.
C1      C2      C5      C6      C7      C8                                      
        
RT      Area                                                                    
        
1.087   23496   1.092   24761   1.064   24072   1.054   25994   1.057   24694   
1.055   25909
1.175   1414    1.176   1575    1.254   5875    1.256   5655    1.254   5733    
1.253   5839
1.404   52325   1.403   53215   1.442   52240   1.439   52832   1.439   54252   
1.439   52290
1.861   1612    1.856   1738    1.919   1414    1.915   1463    1.916   1182    
1.921   2015
2.218   15769   2.209   16149   2.2     23198   2.175   24563   2.18    27456   
2.186   28536
2.338   8597    2.332   7692    2.557   1236    2.553   1495    2.554   1483    
2.552   1351
2.443   2141    2.444   1750    2.639   321     2.596   487     2.603   735     
2.643   459
2.499   497     2.83    2708    2.675   418     2.684   1310    2.687   1403    
2.696   1488
2.837   2702    4.783   3840    2.726   1672    2.772   524     2.779   309     
2.783   749
4.803   3795    7.2     713     2.78    339     4.75    2898    4.75    2884    
4.752   2593
7.214   626     7.367   766     4.795   2861    7.27    683     7.263   672     
7.28    443
7.386   915     8.039   476     7.289   607     7.438   838     7.437   972     
7.427   908
8.042   515     8.124   6042    7.467   901     8.086   375     8.089   407     
8.101   601
8.134   9481    8.22    838     8.118   376     8.162   7503    8.156   10975   
8.149   8229
8.231   1041    8.254   1357    8.195   10861   8.281   3246    8.274   3324    
8.267   3170
8.261   1057    8.359   1055    8.312   2908    8.352   790     8.346   965     
8.343   784
8.376   980     8.397   1386    8.392   878     8.396   1674    8.393   1707    
8.381   1518
8.414   1013    8.571   734     8.423   1555    8.442   648     8.452   707     
8.412   758
8.571   320     8.634   8970    8.484   915     8.584   1141    8.578   985     
8.567   1196
8.643   12213   8.834   1065    8.616   565     8.68    10756   8.674   13686   
8.668   11901
8.838   983     8.962   2493    8.71    12936   8.853   1428    8.835   1514    
8.84    1353
8.977   1244    9.055   743     8.882   1161    8.979   4054    8.968   4347    
8.966   4563
9.06    435     9.146   949     9       2702    9.07    868     9.064   703     
9.055   967
9.152   1361    9.209   1006    9.103   466     9.213   1878    9.209   2152    
9.197   1966
9.209   596     9.349   1212    9.236   1925    10.152  1183    10.137  1075    
10.128  1015
9.355   1075    9.393   237     10.165  1118    10.548  1006    10.554  709     
10.536  839
9.41    354     9.502   615     10.572  971     10.826  1354    10.819  1054    
10.819  1054
9.512   372     9.573   886     10.853  1388    10.995  1650    10.994  1833    
10.981  1533
9.578   577     10.051  1180    11.024  2037    11.619  19484   11.609  17742   
11.601  18170
10.059  1077    10.473  1092    11.642  19604   11.878  1089    11.866  1101    
11.846  1508
10.484  1298    10.644  1508    11.899  729     11.957  6499    11.94   6530    
11.933  6785
10 .657 2334    10.879  2330    11.973  5520    12.096  42189   12.084  41771   
12.075  44095
10.888  3244    11.485  19996   12.114  39444   12.286  1793    12.25   1752    
12.249  1927
11.498  20784   11.582  558     12.294  1688    12.341  5841    12.321  6898    
12.311  6569
11.594  445     11.735  1068    12.35   6045    12.366  6450    12.349  14981   
12.342  14857
11.773  817     12.003  35631   12.379  14897   12.376  6997    12.428  14819   
12.415  14277
12.016  33867   12.136  1363    12.457  13612   12.453  12494   12.536  33336   
12.524  33801
12.147  1486    12.176  1826    12.565  33854   12 .561 31314   12.659  26947   
12.641  24203
12.186  1575    12.327  9500    12.69   25310   12.683  23235   12.707  9326    
12.699  10399
12.339  11960   12.396  6520    12.741  12097   12.742  12480   13.087  12188   
13.068  8535
12.41   7822    12.488  8617    13.118  12055   13.108  7098    13.232  11416   
13.206  11474
12.496  9540    12.57   23776   13.265  11045   13.252  12253   13.347  20966   
13.32   21331
12.578  28845   12.644  10471   13.377  20499   13.363  20526   13.482  5801    
13.439  6147
12.655  11676   12.779  10980   13.503  5641    13.488  5265    13.511  12986   
13.484  13116
12.766  11653   12.783  7031    13.535  13844   13.517  12572   13.578  921     
13.554  1252
12.783  8764    13.162  6416    13.601  1002    13.588  1135    13.894  1849    
13.863  2147
13.164  11977   13.352  13815   13.917  1564    13.898  2094    13.968  480     
13.937  618
13.345  13129   13.435  16657   13.977  427     13.973  578     14.128  3286    
14.098  3628
13.431  18421   13.515  13485   14.143  2756    14.129  3441    14.304  18903   
14.286  19712
13.519  15612   13.557  3951    14.339  15585   14.323  17879   14.342  6216    
14.323  6810
13.55   5001    13.738  1087    14.368  6665    14.355  7136    14.408  7025    
14.391  5334
13.741  917     14.021  2381    14.4 43 7464    14.4 31 5291    14.473  883     
14.458  581
14.017  2374    14.088  786     14.512  759     14.498  632     14.636  1716    
14.614  1615
14.084  681     14.248  2879    14.666  1727    14.654  1597    14.821  637     
14.807  459
14.248  2927    14.344  7165    14.858  579     14.844  523     14.868  2800    
14 .853 2894
14.351  8920    14.433  15019   14.901  2508    14.888  2615    14.969  13890   
14.944  14862
14.434  13731   14.525  3757    14.993  12216   14.981  13671   15.028  2571    
15.001  3066
14.522  6866    14.732  3251    15.044  3164    15.037  2768    15.098  943     
15.08   861
14.735  3500    14.983  2082    15.112  769     15.099  952     15.157  426     
15.156  509
14.985  2353    15.105  15932   15.209  689     15.191  607     15.269  15446   
15.237  15880
15.108  15956   15.421  16155   15.285  16420   15.271  16940   15.324  1992    
15.306  1665
15.425  17124   15.585  2190    15.349  1885    15.331  1950    15.463  18783   
15.448  19986
15.581  2023    15.638  9845    15.493  16928   15.473  18614   15.507  36103   
15.494  42566
15.644  11161   15.687  30713   15.537  34404   15.521  41083   15.6    24363   
15.581  27581
15.685  28501   15.779  21858   15.623  22421   15.606  25217   15.758  1101446 
15.731  1213450
15.78   21557   15.926  1080592 15.775  10 87291        15.763  1183430 15.925  
9093    15.894  10130
15.93   1069995 16.097  9152    15.932  12095   15.918  12358   16.055  19702   
16.025  25125
16.106  9227    16.209  25172   16.069  21303   16.0 54 24433   16.137  487     
16.114  1153
16.228  23803   16.263  2587    16.167  953     16.143  880     16.218  684     
16.19   2149
16.285  2531    16.374  976     16.238  2076    16.218  1682    16.477  1406    
16.484  1177
16.401  719     16.858  9956    16.288  913     16.493  1011    16.729  13913   
16.688  14671
16.663  1 955   17.389  17275   16.508  1503    16.723  12203   16.826  1286    
16.816  1004
16.876  11076   17.448  7667    16.741  13165   16.805  1664    17.01   4659    
16.991  2383
17.407  10626   17.641  3059    16.831  1855    17.024  2783    17.191  1332    
17.166  822
17.459  1499    17.709  3956    17.039  2294    17.188  649     17.291  20604   
17.261  17272
17.644  4168    17.807  10980   17.196  672     17.285  17891   17.35   10307   
17.311  5486
17.722  6428    17.835  7845    17.301  13187   17.331  6446    17.489  1129    
17.46   1216
17.851  4510    18.014  8067    17.342  4015    17.494  1275    17.539  3648    
17.502  3294
18.025  1258    18.12   1379    17.493  885     17.529  3129    17.613  4993    
17.586  5105
18.133  1437    18.194  26367   17.548  3620    17.616  4562    17.708  10737   
17.693  5986
18.204  26100   18.4    3082    17.628  4412    17.727  6952    17.731  12913   
17.714  7974
18.409  2991    18.461  1331    17.666  1618    17.744  8857    17.936  8429    
17.902  5054
18.476  2139    18.561  2802    17.738  3079    17.937  5833    18.056  2395    
18.012  2841
19.129  1467    19.01   4201    17.761  4925    18.046  2442    18.225  24065   
18.196  24510
19.586  1605    19.111  1260    17.954  2376    18.228  24408   18.316  2931    
18.278  2804
19.761  1530    19.243  3392    18.058  2530    18.308  2527    18.404  1340    
18.373  1878
20.008  953     19.351  5667    18.242  22993   18.40 1 1395    18.609  302     
18.895  922
20.396  2136    19.409  2163    18.321  3223    18.59   239     18.659  914     
18.996  1390
20.944  1573    19.488  3393    1 8.428 1834    18.939  1440    18.953  3007    
19.143  524
21.252  491     19.518  1774    18.6 09 379     19.011  1681    19.035  1557    
19.261  892
21.278  325     19.662  468     18.938  815     19.174  1389    19.182  3328    
19.629  1170
21.297  76      19 .731 3605    19.039  1471    19.29   1687    19.283  5741    
19.989  949
21.319  278     19.942  3217    19.548  1052    19 .340 994     19.333  2751    
20.36   1660
21.35   127     20.006  2807    19.678  1140    19.44   2081    19.417  2892    
20.915  2475
21.367  490     20.183  678     20.03   1031    19.506  674     19.452  2203    
21.271  590
21.377  474     20.229  1195    20.413  1790    19.58   232     19.5    738     
21.31   428
21.409  1043    20.391  1906    20.967  1960    19.665  1704    19.609  728     
21.338  276
21.476  334     20.911  2351    21.315  393     19.88   943     19.676  4223    
21.366  208
21.506  1309    21.052  1095    21.348  260     19.968  589     19.893  2371    
21.398  334
21.542  1359    21.105  1169    21.381  257     20.025  906     19.968  1489    
21.412  576
21.571  3045    21.193  2739    21.402  179     20.392  1330    20.002  517     
21.421  831
21.603  3402    21.227  1087    21.43   232     20.953  1944    20.105  443     
21.455  1683
21.646  1674    21.245  2078    21.446  561     21.18   190     20.154  801     
21.501  630
21.697  2972    21.278  6140    21.456  663     21.294  683     20.343  679     
21.525  883
21.716  1874    21.302  1517    21.488  1664    21.328  774     20.387  2359    
21.555  1869
21.766  3147    21.316  1699    21.535  503     21.358  363     20.835  1224    
21.589  1216
21.838  3204    21.335  614     21.556  1011    21.378  463     20.941  801     
21.619  3809
21.893  3108    21.366  1814    21.588  1768    21.411  368     20.987  1604    
21.655  4235
                21.39   4473    21.622  1680    21.428  798     21.042  1140    
21.697  1778
                21.407  2489    21.6 53 3777    21.437  746     21.188  1968    
21.747  3184
                21.422  3726    21.687  4026    21.472  1793    21.242  1043    
21.764  1707
                21.432  6815    21.73   1965    21.49   512     21.272  1597    
21.815  2335
                21.457  6420    21.781  2629    21.518  456     21.284  1259    
21.886  2513
                21.501  3066    21.795  1903    21.537  953     21.313  4927    
21.944  2855
                21.528  4837    21.849  2460    21.571  2011    21.343  2181    
21.965  500
                21.547  5767    21.923  2590    21.607  1524    21.358  2304    
22.049  189
                21.577  6171    21.979  2768    21.636  3790    21.379  2054    
22.101  1158
                21.6    3078    22.002  556     21.672  4453    21.412  3105    
22.136  627
                21.65   1086    22.089  207     21.714  2030    21.432  1438    
22.263  721
                21.663  3218    22.136  1246    21.765  3460    21.44   2267    
22.521  2106
                21.694  3298    22.17   679     21.783  1630    21.459  2518    
        
                21.715  1089    22.295  919     21.833  2601    21.477  2225    
        
                21.765  2638    22.555  1909    21.904  2715    21.487  4404    
        
                21.826  3773                    21.962  2870    21.513  5446    
        
                21.892  2691                    21.988  454     21.559  3002    
        
                                                22.065  163     21.585  2368    
        
                                                22.119  1082    21.604  2721    
        
                                                22.153  664     21.629  4970    
        
                                                22.279  997     21.659  3826    
        
                                                22.539  1796    21.704  929     
        
                                                                21.715  1352    
        
                                                                21.754  2205    
        
                                                                21.763  1992    
        
                                                                21.819  2216    
        
                                                                21.886  3249    
        
                                                                21.941  2793    
        
                                                                21.962  566     
        
                                                                22.051  225     
        
                                                                22.098  1219    
        
                                                                22.129  690     
        
                                                                22.26   912     
        
                                                                22.521  1948    
        
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to