i have a fasta file of nucleic acid sequences with sequences beginning like
>YHR055C cdna:known chromosome:EF4:VIII:214533:214718:-1 gene:YHR055C gene_biotype:protein_coding transcript_biotype:protein_coding ATGTTCAGCGAATTAATTAACTTCCAAAATGAAGGTCATGAGTGCCAATGCCAATGTGGT AGCTGCAAAAATAATGAACAATGCCAAAAATCATGTAGCTGCCCAACGGGGTGTAACAGC GACGACAAATGCCCCTGCGGTAACAAGTCTGAAGAAACCAAGAAGTCATGCTGCTCTGGG AAATGA
but the command in R
read.fasta(file = system.file("x.fa", package = "seqinr"), + seqtype = "DNA", as.string = FALSE, forceDNAtolower = TRUE, + set.attributes = TRUE, legacy.mode = TRUE, seqonly = FALSE, strip.desc = FALSE) Error in read.fasta(file = system.file("x.fa", package = "seqinr"), : no line starting with a > character found In addition: Warning message: In file(con, "r") : file("") only supports open = "w+" and open = "w+b": using the former
i have tried with many other files in my pc where DNA or amino acid sequences are there. but it cannot find the ">" character.