Hello! this was the error! as you wrote here, the method name was incorrect. Thank you so much, i solved the problem partialy. I will open other answer to tell what is the error now. THank you!
Hi! im trying to get a list of dna sequences of a list of genes that i got from a RNA-seq analysis. I was reading that fastaR could bring me a solution. Then i installed with this
install.packages("remotes")
remotes::install_github("sethiyap/fastaR")
and then performed this
genelist <- scan("genelist.txt", what="character", sep=NULL)
faSomeRecords(gene_list=genelist, fasta_file="genoma.fna", outfile="sc_myGenelist.fa")
but i get this error
faSomeRecords(gene_list=genelist, fasta_file="genoma.fna", outfile="sc_myGenelist.fa")
Error in faSomeRecords(gene_list = genelist, fasta_file = "genoma.fna", :
no se pudo encontrar la función "faSomeRecords"
it is in spanish but means something like "the function faSomeRecords was not found"
What is the problem???
Thank you all!!!
3 answers
Please read the documentation. The method name is fa_some_records(), not faSomeRecords().
EDIT: I apologize, it looks like they updated their code to use fa_ instead of fa a few months ago, and some online manuals (this one, for example) have not yet caught on. It's always better to read the documentation provided by the author for these github-based packages.
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they work.

yes , i did it manually. And i had to install a lot of dependencies to get it right Thank you!
Thank you everyone for your answers. Finally it works like this
library(fastaR)
genelist <- scan("genelist.txt", what="character", sep=NULL)
fa_some_records(gene_list=genelist, fasta_file="genoma.fna", outfile="sc_myGenelist.fa")
Thank you!
Log in to answer this question.
You installed those modules, but did you load them?
thank you for your answer, this is what i performed to laod the libraries
And i got the same error:
Thank you!
if i perform this
i get this
Thanks!