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

Update Galaxy STARamr and add a text option for pointfinder species #161

Open
pimarin opened this issue Nov 22, 2022 · 4 comments
Open

Update Galaxy STARamr and add a text option for pointfinder species #161

pimarin opened this issue Nov 22, 2022 · 4 comments

Comments

@pimarin
Copy link

pimarin commented Nov 22, 2022

Hello,

With the new version of the galaxy tool 0.9.1, is it also possible to add an option in the galaxy wrapper related to the pointfinder species list ?
I'm using STARamr in a workflow with the species input determined by another tool. It would be great if the pointfinder species could be manage by the output of another tool to select in the available specie.

@apetkau
Copy link
Member

apetkau commented Nov 22, 2022

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?

@pimarin
Copy link
Author

pimarin commented Dec 7, 2022

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 !

@pimarin
Copy link
Author

pimarin commented Dec 7, 2022

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>

@apetkau
Copy link
Member

apetkau commented Dec 9, 2022

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.

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