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

panaroo_2_pagoo error #53

Closed
hayleyjaywilson opened this issue Oct 21, 2021 · 6 comments
Closed

panaroo_2_pagoo error #53

hayleyjaywilson opened this issue Oct 21, 2021 · 6 comments

Comments

@hayleyjaywilson
Copy link

Hi, I am following the panaroo_2_pagoo instructions exactly and using the gene_presence_absence.csv file (unchanged from its output from panaroo) and I am getting the following error:
gffs <- list.files(path = "full_path/new_spades_annotations/",
pattern = "[.]gff$",
full.names = TRUE)
gpa_csv <- "full_path/panaroo_spades/gene_presence_absence.csv"

library(pagoo)
pg <- panaroo_2_pagoo(gene_presence_absence_csv = gpa_csv,
gffs = gffs)

Reading csv file (panaroo).
Processing csv file.
Warning in panaroo_2_pagoo(gene_presence_absence_csv = gpa_csv, gffs = gffs) :
Removing refound genes with stop codon (tagged with '_stop')
Error in df[[COL]][[ROW]] <- df[[COL]][[ROW]][-INDEX] :
replacement has length zero

I have tried a number of things and I do not seem to be getting anywhere! Can anyone help?

@iferres
Copy link
Owner

iferres commented Oct 21, 2021

Hi @hayleyjaywilson, thanks for giving pagoo a try!

I'm not sure what the error means, but I guess is something related to keys which don't match between the gffs and the csv file. In some cases Panaroo changes some identifiers if it finds repeated contig or gene names between samples, and uses it own nomenclature, breaking the relationship between input (gff files) and output (csv). How many gffs are you using? If there aren't many and if you don't mind you could send me the gff files and the csv so I can reproduce the error and try to fix it.

Otherwise I suggest you to try to build the pagoo input from scratch (see this tutorial), although you need to have some R skills to do that.

@hayleyjaywilson
Copy link
Author

hayleyjaywilson commented Oct 21, 2021 via email

@iferres
Copy link
Owner

iferres commented Oct 21, 2021

Oh.. that's a lot 😅

Yes, probably making a subset is best, although make sure that the error keeps popping up.

@hayleyjaywilson
Copy link
Author

hayleyjaywilson commented Oct 21, 2021 via email

@iferres
Copy link
Owner

iferres commented Oct 21, 2021

Great, you can attach it here or send them to my email. iferres@pasteur.edu.uy
Don't forget to attach the gffs and the csv. I have some some things to do, I expect to be more available since next Tuesday, I'll try to come back asap.

@iferres
Copy link
Owner

iferres commented Oct 27, 2021

Hey @hayleyjaywilson I just pushed a patch.
Please reinstall pagoo like:

devtools::install_github("iferres/pagoo")

Let me know if it fixes the error.

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