gtonkinhill / fastbaps

A fast approximation to a Dirichlet Process Mixture model (DPM) for clustering genetic data
MIT License
58 stars 8 forks source link

Issue loading data #7

Closed slvrshot closed 4 years ago

slvrshot commented 5 years ago

I ran this, ensuring I am in the correct working directory with my multi-fasta alignment file:

fasta.file.name <- system.file("exdata","test.fasta", package = "fastbaps")
sparse.data <- import_fasta_sparse_nt(fasta.file.name)

and it returns:

Error in import_fasta_sparse_nt(fasta.file.name) : Can't locate file

Please help.

johnlees commented 5 years ago

Try:

sparse.data <- import_fasta_sparse_nt("test.fasta")

(The example is for loading data that comes with the package)

@gtonkinhill - it might be an idea to add this to the README, as I also ran into this error the first time I came across system.file

slvrshot commented 5 years ago

Try:

sparse.data <- import_fasta_sparse_nt("test.fasta")

(The example is for loading data that comes with the package)

@gtonkinhill - it might be an idea to add this to the README, as I also ran into this error the first time I came across system.file

Yeah the tutorial was a little confusing for importing my own files. I figured it was loading the tutorial data using system.file.

Thanks a bunch.

slvrshot commented 5 years ago

@johnlees

One last question is there a way to export the BAP clusters to text file if you already have a tree generated using a software such as RaxML?

sdwfrost commented 5 years ago

You may get some additional guidance from looking at the analyses in the repository associated with the manuscript: https://github.com/gtonkinhill/fastbaps_manuscript