I have downloaded the genetic clustering code FastBaps from https://github.com/gtonkinhill/fastbaps
I followed the instructions on this website very closely from the "introduction" section of ReadMe, but the first figure that gets produced is identical the figure posted on github. I thought that all I needed to do was swap out the fasta file with my own, which I did with "ny_ct_2.fa"
this is a screenshot of what I wrote
I have attached a photo of the code I wroteFa in RStudio and I would appreciate if anyone could tell me how to fix this bug. Thanks.
CodePudding user response:
You imported the same file as the example.
fasta.file.name <- system.file("extdata", "seqs.fa", package = "fastbaps")
# etc...
To import your file do:
fasta.file.name <- "/Users/schuylersloman/Documents/CODE/BIO_LAB/SENIOR_YEAR/ny_ct_2.fa"
sparse.data <- import_fasta_sparse_nt(fasta.file.name)
# etc...