YuLab-SMU / ggmsa

:traffic_light: Visualizing publication-quality multiple sequence alignment using ggplot2
http://yulab-smu.top/ggmsa
200 stars 22 forks source link

Basic question: how to upload MSA into R to use with ggmsa #62

Closed Franz4272 closed 1 year ago

Franz4272 commented 1 year ago

Hi,

I have a very basic question since I am inexperienced with R. How do I upload an MSA of protein sequences saved as a fasta file to R to use with ggmsa? On your website you use:

protein_sequences <- system.file("extdata", "sample.fasta", package = "ggmsa")

However, it seems this function is used to retrieve an premade MSA from the ggmsa package? How would I upload my own MSA?

Thank you, Franz

Franz4272 commented 1 year ago

Never mind I was able to use the fa_read() from the seqmagick package. Thanks!