Entering edit mode
Hi, I tried to uploead my template but I'm having this error, do I need to had an especific format for ma Fasta file?
> library(openPrimeR)
There are missing/non-functioning external tools.
To use the full potential of openPrimeR, please make sure
that the required versions of the speciied tools are
installed and that they are functional:
o MELTING (http://www.ebi.ac.uk/biomodels/tools/melting/)
o ViennaRNA (http://www.tbi.univie.ac.at/RNA/)
o OligoArrayAux (http://unafold.rna.albany.edu/OligoArrayAux.php)
o MAFFT (http://mafft.cbrc.jp/alignment/software/)
o Pandoc (http://pandoc.org)
The number of cores for was set to '2' by 'parallel_setup()'
> fasta.file <- system.file("/Downloads/secuence.fasta", package = "openPrimeR")
> fasta.file
Error: unexpected '>' in ">"
> fasta.file <- system.file("/Downloads/secuence.fasta", package = "openPrimeR")
> fasta.file
[1] ""
> sessionInfo()
R version 4.2.2 (2022-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Manjaro Linux
Matrix products: default
BLAS: /usr/lib/libblas.so.3.11.0
LAPACK: /usr/lib/liblapack.so.3.11.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] openPrimeR_1.20.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.10 plyr_1.8.8 pillar_1.8.1
[4] compiler_4.2.2 RColorBrewer_1.1-3 GenomeInfoDb_1.34.7
[7] XVector_0.38.0 bitops_1.0-7 iterators_1.0.14
[10] tools_4.2.2 zlibbioc_1.44.0 lifecycle_1.0.3
[13] tibble_3.1.8 gtable_0.3.1 pkgconfig_2.0.3
[16] rlang_1.0.6 foreach_1.5.2 cli_3.6.0
[19] GenomeInfoDbData_1.2.9 stringr_1.5.0 dplyr_1.1.0
[22] Biostrings_2.66.0 generics_0.1.3 S4Vectors_0.36.1
[25] vctrs_0.5.2 IRanges_2.32.0 stats4_4.2.2
[28] grid_4.2.2 tidyselect_1.2.0 glue_1.6.2
[31] R6_2.5.1 fansi_1.0.4 reshape2_1.4.4
[34] ggplot2_3.4.0 magrittr_2.0.3 codetools_0.2-18
[37] scales_1.2.1 BiocGenerics_0.44.0 GenomicRanges_1.50.2
[40] colorspace_2.1-0 utf8_1.2.2 stringi_1.7.12
[43] lpSolveAPI_5.5.2.0-17.9 RCurl_1.98-1.10 munsell_0.5.0
[46] crayon_1.5.2
> fasta.file <- "secuence.fasta"
> seq.df <- read_templates(fasta.file)
Error in read_templates_single(fname, hdr.structure = hdr.structure, delim = delim, :
Unsupported template input file type or error reading data for file: 'secuence.fasta'
My FASTA file has this format, do I have to convert it to .fa?
>NC_000017.11:c41277500-41196312 Homo sapiens chromosome 17, GRCh38.p14 Primary Assembly
GAGGTATAATTAACAAATAAAAATTGTGTATATGTAAGGTATAAAAGGTTATGTTTTGAGGTATATATAT ATATACAGTGTGAAATAATAATATATTTATTAGCTCACATAGTCACCATTTCCTTTTTATTGTTGTGGTG TGAACATTTAAGATCCACTTTCTCAGCAAATTTCAGGTATACAATAAAGTATTTTAAACTATGTCCACAT TAGAGTGCACCAGATCTGCAGAACATATTCGTCTTATATAACTGATGTTGGTCATGAGAATGTGCTAGTT
I also tried this but it isn't working
Your code is actually incorrect. Try it again with the right quotations, e.g. like this:
read_templates("/home/Downloads/BRCA1.fasta")
I got the same error
I saw that rdrr.io has this code for the validate templates, I dont know if I need this format or no.
Case close, it was my error for not putting the correct quotations, thanks for helping me.