-
Notifications
You must be signed in to change notification settings - Fork 236
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
optionally break maf in pieces before Rnacode call #697
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bernt-matthias please also increase the tool version to 0.3.1. I guess we should add the perl script to the conda package.
tools/rna_tools/rnacode/rnacode.xml
Outdated
@@ -10,6 +10,15 @@ | |||
<version_command>RNAcode --version</version_command> | |||
<command> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use detect_errors
here and remove the stdio?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be fine
tools/rna_tools/rnacode/rnacode.xml
Outdated
breakMAF.pl | ||
--maxlength $cond_breakmaf.maxlength | ||
--desiredLength $cond_breakmaf.desiredLength | ||
< $alignment > aln && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment should be single quoted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
could you update the conda package? |
Yes I can, but this take some time :( |
Since breakMAF.pl did not help with the RNAcode bug (ViennaRNA/RNAcode#8) I wrote a shell script that processes each part of split maf separately (which could also open some possibilities for parallel processing). I left this option optional. I added the breakMAF.pl since it seems not to be included in the latest release of RNAcode, but is only available from github. |
I'm not so happy with creating a copy of the maf in the beginning of the script .. any thoughts on this? Also replacing '.' by '-' (ViennaRNA/RNAcode#7) could be implemented easily .. but this could also be handled by a separate tool. |
tools/rna_tools/rnacode/rnacode.xml
Outdated
RNAcode | ||
|
||
#if $cond_breakmaf.select_breakmaf == 'breakmaf' | ||
$__tool_directory__/breakMAF.pl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should be quoted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bgruening if I quote $cond_breakmaf.select_breakmaf then it does not work (i.e. the else path is used all the time). I guess you meant to quote something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bernt-matthias You need to quote $__tool_directory__/breakMAF.pl
, i.e. '$__tool_directory__/breakMAF.pl'
, since $__tool_directory__
may contain spaces.
tools/rna_tools/rnacode/rnacode.xml
Outdated
#end if | ||
|
||
#if $cond_breakmaf.select_breakmaf == 'breakmaf' and $cond_breakmaf.processseparately == 'yes' | ||
$__tool_directory__/processMAF.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quoted
Which copy? Does a symlink work? |
I meant the 'copy' created by breakMAF.pl. I was thinking about using a named pipe. But I'm unsure how this needs to be used. I guess breakMAF would need to run in the background. I also don't know if RNAcode takes input from stdin... |
@bgruening another question calling the perl and bash scripts directly caused an error because execute rights are needed for others (our galaxy runs jobs as real user). should I always use |
This smells like chmod +x on the conda side? |
@bgruening we will apply it on the hg38 alignments with 20 or 99 other mammals .. quite large :) |
Seriously? Crazy :) |
You call. Merge? |
Hoping that this is a good idea: galaxyproject/galaxy#5884 I switched to pipes. I'm fine to merge. If you think its not a good idea we can revert the last commit. |
Available from the toolshed and usegalaxy.eu. |
Uses breakMAF.pl (from RNAcode package) to break the alignment into pieces. Unfortunately the perl script seems to be missing in the conda package.
Of course we could also have a separate tool (but I don't see if splitting is interesting somewhere else).