Code Monkey home page Code Monkey logo

Comments (2)

SionBayliss avatar SionBayliss commented on August 15, 2024

Hi Alex,

You can rename locus tags/IDs to their original values using the following script:

/tools/subsample/subsample_outputs.pl -i PIRATE.gene_families.ordered.tsv -o PIRATE.gene_families.ordered.renamed.tsv --field "prev_locus"

It won't transfer annotation to alignments but will give you an easy way of looking up/converting your previous locus tags and/or may form a basis of a script to do so.

All the best,
Sion

from pirate.

alexweisberg avatar alexweisberg commented on August 15, 2024

Dear Sion,

Thank you. I have modified the align_feature_sequences.pl script to include an option for printing additional information to the headers of the fasta alignments. When using the "--full-annot" option, the output looks something like this:

>Rhizobium_jaguaris_CCGE525_00216 prev_ID:CCGE525_35950 prev_locus:CCGE525_35950 genome:Rhizobium_jaguaris_CCGE525 gene:ehuB protein_id:AYG64154.1 product:ectoine/hydroxyectoine ABC transporter substrate-binding protein EhuB

I've attached that modified script to this message: align_feature_sequences_mod.pl.gz

As an aside, I have found that NCBI gff files largely work correctly in PIRATE if I first run them through the AGAT (https://github.com/NBISweden/AGAT) script "agat_convert_sp_gxf2gxf.pl" and then manually add the ##FASTA block to the end of the file. This way I can include the original locus tags and annotation from NCBI without reannotating them in prokka.

Best,
Alex

from pirate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.