Skip to content

Add new tool: mapDamage #7081

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

thaulagnon
Copy link

@thaulagnon thaulagnon commented Jun 27, 2025

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)

Hello!

I'm submitting this PR to add the ancient DNA authentication tool mapDamage, as announced in issue #7076 .

This is my first time making a wrapper, so I'm not 100% sure if I handled the data tables perfectly, I'd be really grateful if someone could double-check.

Have a nice day!


sbam_file='$sbam_file' && ## This line would fit better inside the if statement, but for some reason doing that breaks everything when using --rescale.

file_extension=\${sbam_file\#\#*.} &&
Copy link
Contributor

Choose a reason for hiding this comment

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

This will always be .dat.

Just use $sbam_file.ext.

Comment on lines +22 to +27
## RENAMING INPUT FILE SO THAT OUTPUT ALWAYS HAS SAME NAME (essential for fasta and rescaled bam, whose name depends on input).

sbam_file='$sbam_file' && ## This line would fit better inside the if statement, but for some reason doing that breaks everything when using --rescale.

file_extension=\${sbam_file\#\#*.} &&
ln -s '$sbam_file' alignment.\${file_extension} &&
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
## RENAMING INPUT FILE SO THAT OUTPUT ALWAYS HAS SAME NAME (essential for fasta and rescaled bam, whose name depends on input).
sbam_file='$sbam_file' && ## This line would fit better inside the if statement, but for some reason doing that breaks everything when using --rescale.
file_extension=\${sbam_file\#\#*.} &&
ln -s '$sbam_file' alignment.\${file_extension} &&
ln -s '$sbam_file' alignment.$sbam_file.ext &&

That should work. .ext is the Galaxy datatype, in your case either bam or `sam

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.

4 participants