Giter Club home page Giter Club logo

Comments (4)

apetkau avatar apetkau commented on August 11, 2024

Hello @pimarin

Do you mean like this option?

image

Or do you mean you'd like to see the options in that drop-down renamed to their species name (e.g., escherichia_coli named Escherichia coli) so that they will correspond to the species output of another tool?

from staramr.

pimarin avatar pimarin commented on August 11, 2024

Hello @apetkau , I apologize the time to answer you, I was very busy...
I wan to link the species name given by another tool (from user metadata or from kraken taxonomic asssignation) to choose the good species parameter in pointfinder option of staramr.
In this tutorial, we can see that galaxy can extract from an output text information for example to give as input to another tool, So if it's possible to modify the galawy wrapper for staramr by adding a free text option for pointfinder choice it could be great !

from staramr.

pimarin avatar pimarin commented on August 11, 2024

From you wrapper xlm file for example, it could be possible to modify the '${pointfinder_db.use_pointfinder}'

#if str($pointfinder_db.use_pointfinder) != 'disabled'
      --output-pointfinder '$pointfinder'
      #if str($pointfinder_db.use_pointfinder) == 'custom'
          --pointfinder-organism '${pointfinder_db.pointfinder_custom}'
      #else
          --pointfinder-organism '${pointfinder_db.use_pointfinder}'
      #end if
  #end if

When you are in the input choice for the species name, change the last options, non_valid for the species list of non validated pointfinder species, and a text option custom

  <conditional name="pointfinder_db">
           <param name="use_pointfinder" type="select" label="Enable scanning for point mutations using the PointFinder database">
               <option value="disabled" selected="true">Disable PointFinder</option>                
               <option value="campylobacter">Campylobacter</option>
               <option value="enterococcus_faecalis">enterococcus_faecalis</option>
               <option value="enterococcus_faecium">enterococcus_faecium</option>
               <option value="escherichia_coli">escherichia_coli</option>      
               <option value="helicobacter_pylori">helicobacter_pylori</option>          
               <option value="salmonella">Salmonella</option>
               <option value="non_valid">Unvalidated</option>
               <option value="custom">Free text for species choice</option>
           </param>
           <when value="custom">
               <param name="pointfinder_species" type="text" optional="true" label="manually add the specie name from the staramr available list" help="...">
                 <validator type="regex">^[a-zA-Z]+$</validator>
                </param>
           </when>

from staramr.

apetkau avatar apetkau commented on August 11, 2024

Okay, thanks so much for the response and clarification. It shouldn't be too difficult to add this to the Galaxy wrapper (you've already pretty much posted the XML changes here 😄). However, I'm wondering if this will work with your tool, since the exact species name may not exactly match what something like Kraken would output (e.g., helicobacter_pylori vs. Helicobacter pylori). Though with some regex substitutions this could be fixed.

from staramr.

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.