Add SKIP_ORF option in translated_search#885
Merged
Merged
Conversation
| if [ "$ORF_SKIP" ]; then | ||
| if notExists "${TMP_PATH}/t_orfs_aa.dbtype"; then | ||
| # shellcheck disable=SC2086 | ||
| "$MMSEQS" extractframes "$1" "${TMP_PATH}/t_orfs_nucl" ${EXTRACT_FRAMES_PAR} \ |
| TARGET="${TMP_PATH}/t_orfs_aa" | ||
| TARGET_ORF="${TMP_PATH}/t_orfs_aa" | ||
| TARGET="${TMP_PATH}/t_orfs_aa" | ||
| TARGET_ORF="${TMP_PATH}/t_orfs_aa" |
Member
There was a problem hiding this comment.
Please check if this whitespace should be here. From the diff, this looks wrong.
| PARAM_ORF_FILTER_S(PARAM_ORF_FILTER_S_ID, "--orf-filter-s", "ORF filter sensitivity", "Sensitivity used for query ORF prefiltering", typeid(float), (void *) &orfFilterSens, "^[0-9]*(\\.[0-9]+)?$"), | ||
| PARAM_ORF_FILTER_E(PARAM_ORF_FILTER_E_ID, "--orf-filter-e", "ORF filter e-value", "E-value threshold used for query ORF prefiltering", typeid(double), (void *) &orfFilterEval, "^([-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?)|[0-9]*(\\.[0-9]+)?$"), | ||
| PARAM_LCA_SEARCH(PARAM_LCA_SEARCH_ID, "--lca-search", "LCA search mode", "Efficient search for LCA candidates", typeid(bool), (void *) &lcaSearch, "", MMseqsParameter::COMMAND_PROFILE | MMseqsParameter::COMMAND_EXPERT), | ||
| PARAM_ORF_SKIP(PARAM_ORF_SKIP_ID, "--orf-skip", "ORF skip mode", "???", typeid(bool), (void *) &orfSkip, ""), |
Member
There was a problem hiding this comment.
PARAM_ORF_SKIP(PARAM_ORF_SKIP_ID, "--orf-skip", "Extract frames instead of ORFs", "Extract frames instead of ORFs during translated search", typeid(bool), (void *) &orfSkip, ""),
Member
There was a problem hiding this comment.
@martin-steinegger any better ideas for a parameter name?
| cmd.addVariable("ORF_SKIP", "TRUE"); | ||
| cmd.addVariable("TRANSLATE_PAR", par.createParameterString(par.translatenucs).c_str()); | ||
| cmd.addVariable("EXTRACT_FRAMES_PAR", par.createParameterString(par.extractframes).c_str()); | ||
| } |
Member
There was a problem hiding this comment.
code/whitespace style: please do } else {
| # shellcheck disable=SC2086 | ||
| "$MMSEQS" translatenucs "${TMP_PATH}/t_orfs_nucl" "${TMP_PATH}/t_orfs_aa" ${TRANSLATE_PAR} \ | ||
| || fail "translatenucs died" | ||
| "$MMSEQS" rmdb "${TMP_PATH}/t_orfs_nucl" |
Member
There was a problem hiding this comment.
The rmdb calls need ${VERBOSITY}:
# shellcheck disable=SC2086
"$MMSEQS" rmdb "${TMP_PATH}/t_orfs_nucl" ${VERBOSITY}
| # shellcheck disable=SC2086 | ||
| "$MMSEQS" translatenucs "${TMP_PATH}/q_orfs_nucl" "${TMP_PATH}/q_orfs_aa" ${TRANSLATE_PAR} \ | ||
| || fail "translatenucs died" | ||
| "$MMSEQS" rmdb "${TMP_PATH}/q_orfs_nucl" |
…tframes & translatenucs) works
| # shellcheck disable=SC2086 | ||
| "$MMSEQS" extractorfs "$2" "${TMP_PATH}/t_orfs_aa" ${ORF_PAR} \ | ||
| || fail "extract target orfs step died" | ||
| if [ "$ORF_SKIP" ]; then |
Contributor
Author
|
I agree the PR can be merged under the MIT license |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added a new parameter, and changed translated_search.sh to run extractframes and translatenucs instead of extractorf according to the user's choice