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

das tool: do not allow empty labels #5955

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

bernt-matthias
Copy link
Contributor

@bernt-matthias bernt-matthias commented Apr 16, 2024

just use element identifiers if not given. Seems to be what the tool does by default: https://github.com/cmks/DAS_Tool/blob/bb0954f4f45a2340e9cb9b896d412e477c6c49fc/src/DAS_Tool.R#L398

No idea what the --labels argument is good for. But with --labels '' the program just fails. So this might be a solution.

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

just use element identifiers if not given
@@ -46,7 +53,15 @@ DAS_Tool
<param argument="--contigs" type="data" format="fasta" label="Contig sequences"/>
<repeat name="binning" title="Bins" min="1">
<param argument="--bins" type="data" format="tabular" label="Contigs-to-bin table" help="Tabular with two columns: contig-IDs and bin-IDs. Fasta_to_Contigs2Bin can be used to Converts genome bins in fasta format to Contigs-to-bin table"/>
<param argument="--labels" type="text" value="" label="Name of binning prediction tool used to generate the table"/>
<param argument="--labels" type="text" value="" label="Name of binning prediction name" help="If left empty the identifier of the contig-to-bin table is used. Only alphanumeric characters, dash, underscore and dor are allowed. Other characters are replaced by underscore.">
<sanitizer invalid_char="_">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_ is invalid and then you add it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invalid_char specifies the character used as a replacement for invalid characters. _ is a valid char.

Idea is that this does the same as the regexp that is applied to the element_identifiers in the cheetah code (which I took from what we use all the time).

@bgruening
Copy link
Member

bump?

@bgruening bgruening merged commit b509850 into galaxyproject:main Apr 29, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants