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

agat_sp_manage_IDs.pl and agat_sp_merge_annotations.pl throws out annotations #83

Closed
sanyalab opened this issue Oct 22, 2020 · 2 comments

Comments

@sanyalab
Copy link

HI Jacques,

I have several gff3 files that look like below

##gff-version 3
##sequence-region Chr01 1 306748077
#!Date 2020-10-21
#!Type DNA
#!Source-version EMBOSS 6.6.0.0
Chr01 fuzznuc nucleotide_motif 13777291 13777318 28 - . ID=Chr01.1;note=*pat pattern:CGTGGGCGTGGGCGAGGCGGCGCGGAGT

I would like to concatenate these and change the "ID" to something else like "Chr01_MOTIF1", "Chr01_MOTIF2" and so on. I have tried both agat_sp_manage_IDs.pl and agat_sp_merge_annotations.pl, but they throw these annotations out, as child features are not provided. I do not have information to create the child features. How do I change the IDs using AGAT?

Thanks
Abhijit

@Juke34
Copy link
Collaborator

Juke34 commented Oct 22, 2020

I could write a troubleshooting paragraph in the Readme.
As it is defined in the AGAT's feature json file nucleotide_motif feature must have a child otherwise it throws it away.
To modify this behaviour you should follow these steps:

agat_convert_sp_gxf2gxf.pl --expose

then modify the features_level1.json to replace "nucleotide_motif":"8", by "nucleotide_motif":"standalone",

then you can run agat_sp_manage_IDs.pl or agat_sp_merge_annotations.pl normally (the modified json file should be in the same place where you run the script).

@sanyalab
Copy link
Author

sanyalab commented Oct 23, 2020 via email

@Juke34 Juke34 closed this as completed in cb89ed6 Oct 30, 2020
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