Entering edit mode
19 months ago
margo
▴
40
I am trying to write a fasta file in R using this code:
write.fasta(sequences=df$seq, names=df$location, file.out="fasta", open = "w", nbchar = 33, as.string = FALSE)
df$seq
contains my sequences and df$locations
contains locations
However, my file produced looks like this
> +111
> +4675
> -837
> -2793
> +283
> +398
AGGGGGGCCCCA....
Can anyone understand why my sequences are not linking to their specific location?
My dataframe looks like this:
location seq
+111 AGGGGC...
+4675 ATTTGGGC...
-837 AGGGTTGC...
-2793 AGGGGC...
+283 AGTGGGC...
+398 AGGGTTGC...