Skip to content

Commit

Permalink
fixed problems in hybridassembler approach with new mmseqs parameter …
Browse files Browse the repository at this point in the history
…validation
  • Loading branch information
AnnSeidel committed Jul 11, 2019
1 parent e9bf462 commit da18dca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/hybridassembler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ while [ $STEP -lt $NUM_IT ]; do
# 3. Ungapped alignment protein 2 nucl
if notExists "${TMP_PATH}/aln_nucl_$STEP"; then
"$MMSEQS" proteinaln2nucl "$INPUT_NUCL" "$INPUT_NUCL" "$INPUT_AA" "$INPUT_AA" "${TMP_PATH}/aln_$STEP" "${TMP_PATH}/aln_nucl_$STEP" \
|| fail "Ungapped alignment step died"
|| fail "Ungapped alignment 2 nucl step died"
fi

# 4. Assemble
Expand Down
2 changes: 1 addition & 1 deletion lib/mmseqs
4 changes: 2 additions & 2 deletions src/assembler/mergereads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ int mergereads(int argn, const char **argv, const Command& command) {
free(r2);
free(r1);
}
resultWriter.close();
headerResultWriter.close();
resultWriter.close(true);
headerResultWriter.close(true);

Debug(Debug::INFO) << "\nDone.\n";

Expand Down
8 changes: 5 additions & 3 deletions src/plass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ std::vector<struct Command> commands = {
"Map protein alignment to nucleotide alignment",
NULL,
"Martin Steinegger <martin.steinegger@mpibpc.mpg.de> ",
"<i:queryDB> <i:targetDB> <i:alnDB> <o:alnDB>",
CITATION_MMSEQS2, {{"queryDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::sequenceDb },
{"targetDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::sequenceDb },
"<i:nuclQueryDB> <i:nuclTargetDB> <i:aaQueryDB> <i:aaTargetDB> <i:alnDB> <o:alnDB>",
CITATION_MMSEQS2, {{"nuclQueryDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::sequenceDb },
{"nuclTargetDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::sequenceDb },
{"aaQueryDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::sequenceDb },
{"aaTargetDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::sequenceDb },
{"alnDB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA, &DbValidator::alignmentDb },
{"alnDB", DbType::ACCESS_MODE_OUTPUT, DbType::NEED_DATA, &DbValidator::alignmentDb }}},
{"kmermatcher", kmermatcher, &par.kmermatcher, COMMAND_EXPERT,
Expand Down

0 comments on commit da18dca

Please sign in to comment.