Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSA problem in R Studio #94

Open
oliver7423 opened this issue Aug 11, 2023 · 1 comment
Open

MSA problem in R Studio #94

oliver7423 opened this issue Aug 11, 2023 · 1 comment

Comments

@oliver7423
Copy link

Hi! I'm working for my midterms and I need answers ASAP

I downloaded sequences from NCBI (Complete Record > Fasta) and I installed necessary packages. By the time I reached using msa, the error appears. I don't know what to do anymore. Help! This is the codes by the way.

AlignNeeded = TRUE # The program reads fasta file and aligns it
if (AlignNeeded) {

file <- readDNAStringSet(fname)#for reading multiple DNA sequences from msa package
file
}

cb<- msa(file) # multiple sequence alignment from msa package
cb # aligned the 120 sequences in the file

use default substitution matrix
Error in convertAlnRows(result$msa, type) : There is an invalid aln file!

AFTER READING A SOLUTION HERE, I TRIED IT OUT, HERE'S THE PROBLEM

cb<- msa(file) # multiple sequence alignment from msa package
use default substitution matrix
Error in convertAlnRows(result$msa, type) : There is an invalid aln file!
library(Biostrings)
file_path <- "sequence-5.fasta"
cb <- msa(file_path, filetype = "sequence-5.fasta", type = "DNA")
Error in msaFun(inputSeqs = inputSeqs, cluster = cluster, gapOpening = gapOpening, :
The following parameters are not known
(or have been specifiedmore often than once):
filetype

PLEASE HELP ME

@oliver7423
Copy link
Author

im good. i just needed an aligned file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant