Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assigntaxonomy #2026

Open
UniAlberta opened this issue Sep 23, 2024 · 6 comments
Open

assigntaxonomy #2026

UniAlberta opened this issue Sep 23, 2024 · 6 comments

Comments

@UniAlberta
Copy link

Hi, I used https://doi.plutof.ut.ee/doi/10.15156/BIO/2959334 for ITS taxonomic assignment. I run taxa <- assignTaxonomy(seqtab.nochim, unite.ref, multithread = FALSE, tryRC = TRUE) and get an error of Error in .Call2("fasta_index", filexp_list, nrec, skip, seek.first.rec, :
reading FASTA file E:/RDAR_raw_seq_amplicon_2023/Breton_ITS_2023/sh_general_release_all_04.04.2024.tgz: ">" expected at beginning of line 1.
Do you know how I can fix it?

@HitMonk
Copy link

HitMonk commented Sep 25, 2024

Ah! Your file is still zipped. You need to unzip it. the extension reads .tgz. Unzip the file, and check the first 10 lines to confirm it is a fasta file.

@UniAlberta
Copy link
Author

Thanks for your reply! I did so. It`s a fast file. I attached the 2 files in the zipped folder downloaded from UNITE here.
image

@HitMonk
Copy link

HitMonk commented Sep 25, 2024

Yea looks like its good. The command should work when you replaced the zipped file with the unzipped file?

@UniAlberta
Copy link
Author

UniAlberta commented Sep 25, 2024

unite.ref <- "~/sh_general_release_all_04.04.2024.tgz"
taxa <- assignTaxonomy(seqtab.nochim, unite.ref, multithread = FALSE, tryRC = TRUE)
Error in .Call2("fasta_index", filexp_list, nrec, skip, seek.first.rec, :
reading FASTA file ~/sh_general_release_all_04.04.2024.tgz: ">" expected at beginning of line 1

@HitMonk
Copy link

HitMonk commented Sep 25, 2024

unite.ref <- "~/sh_general_release_all_04.04.2024.tgz"

This command should be the unzipped fasta file. Not the zipped file. It should read like this:

unite.ref <- "~/sh_general_release_04.04.2024/sh_general_release_dynamic_04.04.2024.fasta

@UniAlberta
Copy link
Author

Thanks for your help. I combined the 2 fasta files that were in the zipped folder and worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants