Open cpanse opened 4 years ago
I could not use plot(XIC)
sessionInfo() R version 4.0.0 (2020-04-24) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.4
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages: [1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
other attached packages:
[1] factoextra_1.0.7 gridExtra_2.3 tidyr_1.0.3 stringr_1.4.0 ggplot2_3.3.0 dplyr_0.8.5 mzR_2.22.0 Rcpp_1.0.4.6
[9] devtools_2.3.0 usethis_1.6.1 rawDiag_0.0.32 protViz_0.6.8
loaded via a namespace (and not attached):
[1] Biobase_2.48.0 httr_1.4.1 pkgload_1.0.2 bit64_0.9-7 jsonlite_1.6.1 modelr_0.1.7
[7] assertthat_0.2.1 blob_1.2.1 cellranger_1.1.0 ggrepel_0.8.2 remotes_2.1.1 sessioninfo_1.1.1
[13] pillar_1.4.4 RSQLite_2.2.0 backports_1.1.6 lattice_0.20-41 glue_1.4.0 digest_0.6.25
[19] rvest_0.3.5 colorspace_1.4-1 pkgconfig_2.0.3 broom_0.5.6 haven_2.2.0 purrr_0.3.4
[25] scales_1.1.0 processx_3.4.2 tibble_3.0.1 generics_0.0.2 ellipsis_0.3.0 withr_2.2.0
[31] tidyverse_1.3.0 BiocGenerics_0.34.0 hexbin_1.28.1 cli_2.0.2 magrittr_1.5 crayon_1.3.4
[37] readxl_1.3.1 memoise_1.1.0 ps_1.3.2 fs_1.4.1 ncdf4_1.17 fansi_0.4.1
[43] nlme_3.1-147 forcats_0.5.0 xml2_1.3.2 pkgbuild_1.0.8 tools_4.0.0 prettyunits_1.1.1
[49] hms_0.5.3 lifecycle_0.2.0 munsell_0.5.0 reprex_0.3.0 callr_3.4.3 compiler_4.0.0
[55] rlang_0.4.6 grid_4.0.0 rstudioapi_0.11 testthat_2.3.2 gtable_0.3.0 codetools_0.2-16
[61] DBI_1.1.0 R6_2.4.1 lubridate_1.7.8 knitr_1.28 bit_1.1-15.2 rprojroot_1.3-2
[67] ProtGenerics_1.20.0 readr_1.3.1 desc_1.2.0 stringi_1.4.6 vctrs_0.2.4 dbplyr_1.4.3
[73] tidyselect_1.0.0 xfun_0.13
Read one example file.
rawfile <- file.path("./raw/20180220_14_autoQC01.raw")
Tell me the peptide sequence you would like to extract peaks:
pepSeq <- c("AGGSSEPVTGLADK", "GDLDAASYYAPVR", "FLLQFGAQGSPLFK")
Calculate the tehoretical mass of M+2H based on peptide sequence:
mass2Hplus <- (parentIonMass(pepSeq) + 1.008)/2
Extract the selected peptides from the data file:
XIC <- readXICs(rawfile = rawfile, masses = mass2Hplus, tol = 10) plot(XIC) Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y'
@viviantra thanks for reporting. until we patch that you can use
plot.XICs(XIC)
That works. Thank you!
!! Linux
!! Microsoft Windows 2012
!! macOS 10.15.4 - Darwin 19.4.0