Open Kuanhao-Chao opened 3 years ago
Here is all info in detail:
library(BiocManager) Bioconductor version 3.12 (BiocManager 1.30.10), ?BiocManager::install for help BiocManager::valid()
R version 4.0.2 (2020-06-22) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252
[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] BiocManager_1.30.10
loaded via a namespace (and not attached): [1] compiler_4.0.2 tools_4.0.2 yaml_2.2.1
Bioconductor version '3.12'
create a valid installation with
BiocManager::install(c( "BiocParallel", "bookdown", "broom", "callr", "cli", "cpp11", "data.table", "digest", "DT", "e1071", "foreach", "iterators", "labeling", "MatrixGenerics", "multtest", "phyloseq", "quantreg", "rgdal", "rhdf5", "Rhdf5lib", "rlang", "rmarkdown", "S4Vectors", "seqinr", "statmod", "tibble" ), update = TRUE, ask = FALSE)
more details: BiocManager::valid()$too_new, BiocManager::valid()$out_of_date
Warning message: 26 packages out-of-date; 0 packages too new
library(sangeranalyseR) Loading required package: stringr Loading required package: ape Loading required package: Biostrings Loading required package: BiocGenerics Loading required package: parallel
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get,
grep, grepl, intersect, is.unsorted, lapply, Map, mapply, match,
mget, order, paste, pmax, pmax.int, pmin, pmin.int, Position,
rank, rbind, Reduce, rownames, sapply, setdiff, sort, table,
tapply, union, unique, unsplit, which.max, which.min
Loading required package: S4Vectors Loading required package: stats4
Attaching package: ‘S4Vectors’
The following object is masked from ‘package:base’:
expand.grid
Loading required package: IRanges
Attaching package: ‘IRanges’
The following object is masked from ‘package:grDevices’:
windows
Loading required package: XVector
Attaching package: ‘Biostrings’
The following object is masked from ‘package:ape’:
complement
The following object is masked from ‘package:base’:
strsplit
Loading required package: DECIPHER Loading required package: RSQLite Loading required package: reshape2 Loading required package: phangorn Loading required package: sangerseqR Loading required package: gridExtra
Attaching package: ‘gridExtra’
The following object is masked from ‘package:BiocGenerics’:
combine
Loading required package: shiny Loading required package: shinydashboard
Attaching package: ‘shinydashboard’
The following object is masked from ‘package:graphics’:
box
Loading required package: shinyjs You can use shinyjs to call your own JavaScript functions: https://deanattali.com/shinyjs/extend
Attaching package: ‘shinyjs’
The following object is masked from ‘package:shiny’:
runExample
The following object is masked from ‘package:RSQLite’:
show
The following object is masked from ‘package:Biostrings’:
show
The following object is masked from ‘package:XVector’:
show
The following object is masked from ‘package:IRanges’:
show
The following object is masked from ‘package:S4Vectors’:
show
The following object is masked from ‘package:stats4’:
show
The following objects are masked from ‘package:methods’:
removeClass, show
Loading required package: data.table data.table 1.13.0 using 2 threads (see ?getDTthreads). Latest news: r-datatable.com
Attaching package: ‘data.table’
The following objects are masked from ‘package:reshape2’:
dcast, melt
The following object is masked from ‘package:IRanges’:
shift
The following objects are masked from ‘package:S4Vectors’:
first, second
Loading required package: plotly Loading required package: ggplot2
Attaching package: ‘plotly’
The following object is masked from ‘package:ggplot2’:
last_plot
The following object is masked from ‘package:XVector’:
slice
The following object is masked from ‘package:IRanges’:
slice
The following object is masked from ‘package:S4Vectors’:
rename
The following object is masked from ‘package:stats’:
filter
The following object is masked from ‘package:graphics’:
layout
Loading required package: DT
Attaching package: ‘DT’
The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
Loading required package: zeallot Loading required package: excelR Loading required package: shinycssloaders Loading required package: ggdendro Loading required package: shinyWidgets
Attaching package: ‘shinyWidgets’
The following object is masked from ‘package:shinyjs’:
alert
Loading required package: openxlsx Loading required package: tools Loading required package: rmarkdown Loading required package: kableExtra Loading required package: seqinr
Attaching package: ‘seqinr’
The following object is masked from ‘package:shiny’:
a
The following object is masked from ‘package:sangerseqR’:
read.abif
The following object is masked from ‘package:Biostrings’:
translate
The following objects are masked from ‘package:ape’:
as.alignment, consensus
Loading required package: BiocStyle
Attaching package: ‘BiocStyle’
The following objects are masked from ‘package:rmarkdown’:
html_document, md_document, pdf_document
The following object is masked from ‘package:shiny’:
markdown
Loading required package: logger Welcome to sangeranalyseR
in my example I have four readings (.ab1)
list.files("C:\Users\JORDAN\Desktop\test_R_sanger_join") [1] "Cruces1_c1_M13F.ab1" "Cruces1_c1_M13R.ab1" "Cruces1_c2_M13F.ab1" [4] "Cruces1_c2_M13R.ab1" my_aligned_contigs <- SangerAlignment(parentDirectory = "C:\Users\JORDAN\Desktop\test_R_sangerjoin", suffixForwardRegExp = "[0-9]+F+", suffixReverseRegExp = "[0-9]+_R+") INFO [2020-21-10 11:41:55] * INFO [2020-21-10 11:41:55] Start creating SangerAlignment instance INFO [2020-21-10 11:41:55] * INFO [2020-21-10 11:41:55] **** You are using Regex Method to group AB1 files! SUCCESS [2020-21-10 11:41:55] >> 'SangerAlignment' S4 instance is created !! View(my_aligned_contigs) launchApp(my_aligned_contigs) INFO [2020-21-10 11:42:09] Your input is 'SangerAlignment' S4 instance INFO [2020-21-10 11:42:09] >>> outputDir : C:\Users\JORDAN\AppData\Local\Temp\RtmpS2126X
Listening on http://127.0.0.1:3646
Warning: Error in value[[3L]]: Couldn't normalize path in addResourcePath
, with arguments: prefix
= 'AdminLTE-2.0.6'; directoryPath
= 'C:/Users/biocbuild/bbs-3.12-bioc/R/library/shinydashboard/AdminLTE'
[No stack trace available]
The browser opens with this message: "An error has occurred! Couldn't normalize path in
addResourcePath
, with arguments:prefix
= 'AdminLTE-2.0.6';directoryPath
= 'C:/Users/biocbuild/bbs-3.12-bioc/R/library/shinydashboard/AdminLTE"writeFasta("C:\Users\JORDAN\Desktop\test_R_sanger_join") ERROR [2020-21-10 11:42:25] 'object' must be S4 instance! writeFasta(my_aligned_contigs) INFO [2020-21-10 11:42:29] Your input is 'SangerAlignment' S4 instance INFO [2020-21-10 11:42:29] >>> outputDir : C:\Users\JORDAN\AppData\Local\Temp\RtmpS2126X INFO [2020-21-10 11:42:29] Start to write 'SangerAlignment' to FASTA format ... INFO [2020-21-10 11:42:29] >> Writing 'alignment' to FASTA ... Error in writeXStringSet(alignmentObject, file.path(outputDir, "Sanger_contigs_alignment.fa"), : 'x' must be an XStringSet object writeFasta(my_aligned_contigs, outputDir = "C:\Users\JORDAN\Desktop\test_R_sanger_join") INFO [2020-21-10 11:42:32] Your input is 'SangerAlignment' S4 instance INFO [2020-21-10 11:42:32] >>> outputDir : C:\Users\JORDAN\Desktop\test_R_sanger_join INFO [2020-21-10 11:42:32] Start to write 'SangerAlignment' to FASTA format ... INFO [2020-21-10 11:42:32] >> Writing 'alignment' to FASTA ... Error in writeXStringSet(alignmentObject, file.path(outputDir, "Sanger_contigs_alignment.fa"), : 'x' must be an XStringSet object sessionInfo() R version 4.0.2 (2020-06-22) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252
[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages:
[1] tools stats4 parallel stats graphics grDevices utils
[8] datasets methods base
other attached packages:
[1] sangeranalyseR_0.99.28 logger_0.1 BiocStyle_2.17.1
[4] seqinr_3.6-1 kableExtra_1.2.1 rmarkdown_2.4
[7] openxlsx_4.2.2 shinyWidgets_0.5.4 ggdendro_0.1.22
[10] shinycssloaders_1.0.0 excelR_0.4.0 zeallot_0.1.0
[13] DT_0.15 plotly_4.9.2.1 ggplot2_3.3.2
[16] data.table_1.13.0 shinyjs_2.0.0 shinydashboard_0.7.1
[19] shiny_1.5.0 gridExtra_2.3 sangerseqR_1.25.0
[22] phangorn_2.5.5 reshape2_1.4.4 DECIPHER_2.17.1
[25] RSQLite_2.2.1 Biostrings_2.57.2 XVector_0.29.3
[28] IRanges_2.23.10 S4Vectors_0.27.13 BiocGenerics_0.35.4
[31] ape_5.4-1 stringr_1.4.0 BiocManager_1.30.10
loaded via a namespace (and not attached):
[1] nlme_3.1-148 bit64_4.0.5 webshot_0.5.2 httr_1.4.2
[5] R6_2.4.1 DBI_1.1.0 lazyeval_0.2.2 colorspace_1.4-1
[9] ade4_1.7-15 withr_2.3.0 tidyselect_1.1.0 bit_4.0.4
[13] compiler_4.0.2 rvest_0.3.6 xml2_1.3.2 scales_1.1.1
[17] quadprog_1.5-8 digest_0.6.25 pkgconfig_2.0.3 htmltools_0.5.0
[21] fastmap_1.0.1 htmlwidgets_1.5.2 rlang_0.4.7 rstudioapi_0.11
[25] generics_0.0.2 jsonlite_1.7.1 dplyr_1.0.2 zip_2.1.1
[29] magrittr_1.5 Matrix_1.2-18 Rcpp_1.0.5 munsell_0.5.0
[33] lifecycle_0.2.0 stringi_1.5.3 yaml_2.2.1 MASS_7.3-51.6
[37] zlibbioc_1.35.0 plyr_1.8.6 grid_4.0.2 blob_1.2.1
[41] promises_1.1.1 crayon_1.3.4 lattice_0.20-41 knitr_1.30
[45] pillar_1.4.6 igraph_1.2.6 fastmatch_1.1-0 glue_1.4.2
[49] evaluate_0.14 vctrs_0.3.4 httpuv_1.5.4 gtable_0.3.0
[53] purrr_0.3.4 tidyr_1.1.2 xfun_0.18 mime_0.9
[57] xtable_1.8-4 later_1.1.0.1 viridisLite_0.3.0 tibble_3.0.3
[61] memoise_1.1.0 ellipsis_0.3.1
Hi @Jordan-Soria ,
Sorry for my late reply. I am still working on the launchApp
problem that you encountered. I will find a Windows OS computer to test it recently.
And for the writeFasta
error that you encountered, I recently fixed some bugs in sangeranalyseR in the latest commit. Please run your writeFasta
function again too see whether the problem is solved. If it is convenient for you, could you send me your data (kuanhao.chao@gmail.com), so I can check it for you ?
Thanks a lot!
Howard
Hi @Jordan-Soria ,
Sorry for my late reply. I am still working on the
launchApp
problem that you encountered. I will find a Windows OS computer to test it recently.And for the
writeFasta
error that you encountered, I recently fixed some bugs in sangeranalyseR in the latest commit. Please run yourwriteFasta
function again too see whether the problem is solved. If it is convenient for you, could you send me your data (kuanhao.chao@gmail.com), so I can check it for you ?Thanks a lot!
Howard
Hi, Ok, I will install the library again to see now it works and if it does not work I will put the info_session on the github again. Thanks a lot for your effort!! :-)
A greeting, José.
Hi again, I have installed the development version
install_github("roblanf/sangeranalyseR", ref = "develop")
Now some bugs have been fixed, but others remain. The app now works but it continues without generating an assembly of the sequences that I introduced. I'm going to upload here a file with the folder used with .abi sequences example that i'm using. I have these sequences correctly aligned, checked and assembled both in a single contig with the pregap4 software, maybe there is something wrong when I run the commands. Also I send you the session_info and some screenshots of the steps that I have been doing, may that be helpful.
A greeting, José.
test_R_sanger_join.zip session_info_2_github development version sangerR.txt
I was thinking if you have simple example sequences like the manual that you know work in R so I can try it in my R if it is not inconvenient, Thanks!
Hi @Jordan-Soria
I have tried your data. The reason why there was no consensus read in your R shiny app is because it was not created correctly. You used the wrong regular expression representation. Please try the following codes to see whether it works for you.
suffixForwardRegExp <- "_[0-9]*_F.ab1"
suffixReverseRegExp <- "_[0-9]*_R.ab1"
sangerAlignment<- SangerAlignment(inputSource = "ABIF",parentDirectory = "/path/to/your/directory",
suffixForwardRegExp = suffixForwardRegExp, suffixReverseRegExp = suffixReverseRegExp)
launchApp(sangerAlignment)
writeFasta(sangerAlignment)
And thanks to your report, I have fixed the R shiny apps to handle NULL exception. Please install sangeranalyseR in the newest commit.
cheers,
Howard
Hi!
Okay, now is working the code. if i have a problem i tell you
Thanks!!
El jue., 12 nov. 2020 a las 8:09, Kuan-Hao, Chao (notifications@github.com) escribió:
Hi @Jordan-Soria https://github.com/Jordan-Soria
I have tried your data. The reason why there was no consensus read in your R shiny app is because it was not created correctly. You used the wrong regular expression representation. Please try the following codes to see whether it works for you.
suffixForwardRegExp <- "_[0-9]F.ab1" suffixReverseRegExp <- "[0-9]_R.ab1" sangerAlignment<- SangerAlignment(inputSource = "ABIF",parentDirectory = "/path/to/your/directory", suffixForwardRegExp = suffixForwardRegExp, suffixReverseRegExp = suffixReverseRegExp)
launchApp(sangerAlignment)
writeFasta(sangerAlignment)
And thanks to your report, I have fixed the R shiny apps to handle NULL exception. Please install sangeranalyseR in the newest commit.
cheers,
Howard
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/roblanf/sangeranalyseR/issues/61#issuecomment-725886033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AROUZN2WDJ4RU37KND6I6NDSPOC2TANCNFSM4SZMYQJA .
@Kuanhao-Chao, what safety-checks can we add into the data-loading process to make users aware of this?
My suggestion is that when the data loads we output to the display a summary something like:
100 reads detected
12 contigs detected from [regular expression / csv file]
25 forward reads assigned to 12 contigs according to [regular expression / csv file]
3 reverse reads assigned to 2 contigs according to [regular expression / csv file]
for more information see [object]
where [object]
describes exactly how the user would see the table of which reads had been assigned to which contigs (the table should contain every read in the input folder, as well as whether it has been assigned to a contig or not, etc)
what do you think?
@roblanf That sounds like a great idea! I’ll include this feature recently 👍
These are the summary tables after S4 objects are successfully created. It is included in the newest commit.
Update sangeranalyseR reads creation df table:
SangerRead
SangerContig
SangerAlignment
launchApp(sangerAlignment) INFO [2021-03-18 18:03:32] Your input is 'SangerAlignment' S4 instance INFO [2021-03-18 18:03:32] >>> outputDir : C:\Users\896456\AppData\Local\Temp\Rtmpshj7t0
addResourcePath
, with arguments: prefix
= 'AdminLTE-2.0.6'; directoryPath
= 'C:/Users/biocbuild/bbs-3.12-bioc/R/library/shinydashboard/AdminLTE'
[No stack trace available]I have tried to use
install_github("roblanf/sangeranalyseR", ref = "develop")
as you said, but it doesn't work.
I have used
my_alignedcontigs <- SangerAlignment(parentDirectory = "C:/Users/896456/Desktop/TFG/secuencias/", suffixForwardRegExp = "[0-9]+F", suffixReverseRegExp = "[0-9]+_R")
and I also have tried to use
suffixForwardRegExp <- "_[0-9]F.ab1" suffixReverseRegExp <- "[0-9]_R.ab1" sangerAlignment<- SangerAlignment(inputSource = "ABIF",parentDirectory = "C:/Users/896456/Desktop/TFG/secuencias/", suffixForwardRegExp = suffixForwardRegExp, suffixReverseRegExp = suffixReverseRegExp)
but I have the same problem when I put
launchApp(sangerAlignment)
Can you help me, please? Thank you
Cheers, Virginia
@Jordan-Soria , @Kuanhao-Chao , @roblanf Dear friends, help me to solve this launch shiny app error, kindly please help me error shiny.txt
@Jordan-Soria @Kuanhao-Chao @roblanf I have used this link example https://github.com/roblanf/sangeranalyseR
hi all, I sadly have to report the same error on windows 10 Dell laptop. I'm using:
The script code is working with no issues on Ubuntu 20 machine.
sessionInfo()
R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: Europe/Rome
tzcode source: internal
attached base packages:
[1] tools parallel stats4 stats graphics grDevices utils datasets
[9] methods base
other attached packages:
[1] sangeranalyseR_1.12.0 logger_0.2.2 BiocStyle_2.30.0
[4] seqinr_4.2-36 knitr_1.45 rmarkdown_2.25
[7] openxlsx_4.2.5.2 shinyWidgets_0.8.0 ggdendro_0.1.23
[10] shinycssloaders_1.0.0 excelR_0.4.0 zeallot_0.1.0
[13] DT_0.31 plotly_4.10.3 ggplot2_3.4.4
[16] data.table_1.14.10 shinyjs_2.1.0 shinydashboard_0.7.2
[19] shiny_1.8.0 gridExtra_2.3 sangerseqR_1.38.0
[22] phangorn_2.11.1 reshape2_1.4.4 DECIPHER_2.30.0
[25] RSQLite_2.3.4 Biostrings_2.70.1 GenomeInfoDb_1.38.2
[28] XVector_0.42.0 IRanges_2.36.0 S4Vectors_0.40.2
[31] BiocGenerics_0.48.1 ape_5.7-1 stringr_1.5.1
loaded via a namespace (and not attached):
[1] DBI_1.1.3 bitops_1.0-7 rlang_1.1.2
[4] magrittr_2.0.3 ade4_1.7-22 compiler_4.3.2
[7] vctrs_0.6.5 quadprog_1.5-8 pkgconfig_2.0.3
[10] crayon_1.5.2 fastmap_1.1.1 ellipsis_0.3.2
[13] utf8_1.2.4 promises_1.2.1 purrr_1.0.2
[16] bit_4.0.5 xfun_0.41 zlibbioc_1.48.0
[19] cachem_1.0.8 jsonlite_1.8.8 blob_1.2.4
[22] later_1.3.2 R6_2.5.1 bslib_0.6.1
[25] stringi_1.8.3 jquerylib_0.1.4 Rcpp_1.0.11
[28] httpuv_1.6.13 Matrix_1.6-4 igraph_1.6.0
[31] tidyselect_1.2.0 yaml_2.3.8 rstudioapi_0.15.0
[34] codetools_0.2-19 lattice_0.22-5 tibble_3.2.1
[37] plyr_1.8.9 withr_2.5.2 evaluate_0.23
[40] zip_2.3.0 pillar_1.9.0 BiocManager_1.30.22
[43] rsconnect_1.1.1 generics_0.1.3 RCurl_1.98-1.13
[46] munsell_0.5.0 scales_1.3.0 xtable_1.8-4
[49] glue_1.6.2 lazyeval_0.2.2 fastmatch_1.1-4
[52] grid_4.3.2 tidyr_1.3.0 crosstalk_1.2.1
[55] colorspace_2.1-0 nlme_3.1-164 GenomeInfoDbData_1.2.11
[58] cli_3.6.2 fansi_1.0.6 viridisLite_0.4.2
[61] dplyr_1.1.4 gtable_0.3.4 sass_0.4.8
[64] digest_0.6.33 htmlwidgets_1.6.4 memoise_2.0.1
[67] htmltools_0.5.7 lifecycle_1.0.4 httr_1.4.7
[70] mime_0.12 bit64_4.0.5 MASS_7.3-60 `
R problem SangeranalyseR workflow: