big.peaks.col: Peak search by first derivatives

Description Usage Arguments Details Value References Examples

Description

This function find all peaks by taking the first derivative based on 'rle' function. Is used in different Fragma functions.

Usage

1

Arguments

x

A vector of heights or intensities

tre

A scalar value deciding when peaks will be ignored

Details

No major details.

Value

Retuns the biggest peaks for a vector of intensities.

out

a vector of positions where the derivative is zero and therefore a peak was found

References

Covarrubias-Pazaran G, Diaz-Garcia L, Schlautman B, Salazar W, Zalapa J. Fragman: An R package for fragment analysis. 2016. BMC Genetics 17(62):1-8.

Robert J. Henry. 2013. Molecular Markers in Plants. Wiley-Blackwell. ISBN 978-0-470-95951-0.

Ben Hui Liu. 1998. Statistical Genomics. CRC Press LLC. ISBN 0-8493-3166-8.

Examples

1
2
data(my.plants)
big.peaks.col(my.plants[[1]][,1],100)#for any color

Example output

$pos
  [1]  767  773  778  780  791  801  803  806  809  818  829  831  834  836  840
 [16]  843  853  861  863  865  875  883  886  895  904  906  911  912  917  924
 [31]  939  944  950  959  983  996 1028 1030 1046 1079 1103 1115 1116 1130 1140
 [46] 1150 1160 1164 1174 1184 1200 1211 1223 1231 1241 1249 1264 1273 1291 1302
 [61] 1308 1314 1319 1328 1361 1368 1370 1376 1383 1395 1402 1407 1408 1415 1417
 [76] 1419 1422 1425 1443 1466 1470 1481 1483 1495 1497 1504 1512 1515 1516 1521
 [91] 1523 1546 1550 1559 1678 1691 1940 1942 1990 1999 2008 2189 2192 2195 2199
[106] 2638 2650 2661 2670 2682 2792 2796 3004 3026 3040 3051 3060 3061 3066 3068
[121] 3091 3097 3112 3123 3135 3156 3166 3175 3178 3180 3183 3185 3188 3195 3206
[136] 3213 3215 3218 3229 3240 3252 3829 3831 3833 3836 3838 3840 3848 3850 3860
[151] 3871 3882 3892 3912 3934 3947 3958 3970 3981 3994 4004 4648 4695

$hei
  [1]   306   192   301   298   315   181   184   185   162   616   115   113
 [13]   112   116   124   129   414   371   407   441   397   202   224   531
 [25]   171   159   164   164   240   410   265   732   550   470  1658  1990
 [37]  9285  9326 32608  5457  4109  2037  2037  1860  2396  2768  1018  1195
 [49]  2286  1939   937   793  1152   855  1347  1131  2522  2787   723   600
 [61]   370   625   525   470   471   336   346   262   420   277   169   271
 [73]   271   206   211   222   247   243   916   190   103   121   102   192
 [85]   197   310   138   133   133   152   161   102   118   177   102   127
 [97]   657   664   177   301   194   105   115   133   135   132   167   455
[109]   490   272   163   277   144   118   110   270   170   170   103   107
[121]   308   205  1285 22917  1305   160   234   213   180   148   144   125
[133]   115   246   293   159   186   193  1109 20563  1134   116   112   114
[145]   130   124   110   128   137   155   314   265   305   620  3407  1424
[157] 23456  1927  7556   513   174  1035   532

Fragman documentation built on May 2, 2019, 8:26 a.m.