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

error regarding addSpecies and assignSpecies command in DADA2 #1979

Open
abhisek061github opened this issue Jul 2, 2024 · 3 comments
Open

Comments

@abhisek061github
Copy link

I am facing a problem with addSpecies and assignSpecies both commands in DADA2. I didn't get any species-level information for our data. I followed your standard pipeline (https://benjjneb.github.io/dada2/tutorial_1_8.html). I used trimmed 16s data from fastp for my analysis. I used tryRC = TRUE but also didn't work, allowMultiple = FALSE, but also didn't work. I get assigned up to genus level with assignTaxonomy command but with addSpecies or assignSpecies commands I couldn't add species-level information. My commands are the following - Please help me to fix this.

taxa <- assignSpecies(taxa, refFasta = "/home/omic/Downloads/Final_analysis/fasta_files/rdp_species_assignment_18.fa.gz", allowMultiple = FALSE, tryRC = FALSE, n = 2000, verbose = TRUE )

taxa <- addSpecies(taxa, refFasta = "/home/omic/Downloads/Final_analysis/fasta_files/rdp_species_assignment_18.fa.gz", allowMultiple = FALSE, tryRC = FALSE, n = 2000, verbose = TRUE)

I tried silva and RDP both species databases for species assignment getting such error. Do you know how I can fix this?

0 out of 712 were assigned to the species level.
Of which 0 had genera consistent with the input table.

@abhisek061github abhisek061github changed the title error regarding addSpecies and assignSpecies command error regarding addSpecies and assignSpecies command in DADA2 Jul 2, 2024
@benjjneb
Copy link
Owner

benjjneb commented Jul 4, 2024

Could you provide a little more information on your sequencing data? What kind of environment and what locus/primer-set are you sequencing? Could you provide some example sequences that are not getting assigned, maybe 3 random sequences from your 712?

@abhisek061github
Copy link
Author

Hi, Thank you for your kind responses. I have two primer sequences for sequencing 16s data.. Primer sequences are in 5' --> 3' orientation.

  1. CCTACGGGNGGCWGCAG
  2. GACTACHVGGGTATCTAATCC
    and I have two adapter
  3. P7 adapter read1 AGATCGGAAGAGCACACGTCTGAACTCCAGTCA
  4. P5 adapter read2 AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT
    I have tried to trim those adaptor sequences with the help of fastp and now I am trying to remove those primer sequences with cutadapt. If anybody knows which command is best for me to remove those primers from my data, please let me know. Thanks. I hope my problem will solve when I trim the primmer.

[3' adapter] -a ADAPTER

[5' adapter] -g ADAPTER

[Anchored 3' adapter] -a ADAPTER$

[Anchored 5' adapter]-g ^ADAPTER

[5' or 3' (both possible)] -b ADAPTER

@abhisek061github
Copy link
Author

abhisek061github commented Jul 5, 2024

my problem is solved when I trimmed primer sequences with filterAndTrim command in DADA2 thanks. I trimmed 20 based on the starting and end positions of the reads. Thanks.

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