f"Unknown/ unsupported file extension found for file {self.model_path}."
"Unknown/ unsupported file extension found for file "
+f"{self.model_path}."
)
# restore old loglevel
...
...
@@ -586,8 +587,8 @@ class ModelScorer:
alignments=list()
ifself.seqres:
# SEQRES is provided by user, requires mapping to model chains
# option 1: all chains align to this single SEQRES (monomer or homo-oligomer)
# option 1: all chains align to this single SEQRES (monomer or
# homo-oligomer)
iflen(self.seqres)==1:
forchinself.peptide_processed_model.chains:
try:
...
...
@@ -595,7 +596,8 @@ class ModelScorer:
alignments.append(aln)
except:
raiseRuntimeError(
f"Failed to align chain {ch.GetName()} of {self.model_path} to provided SEQRES."
f"Failed to align chain {ch.GetName()} of "
+f"{self.model_path} to provided SEQRES."
)
# option2: Map chains using names (whatever-mer, as long as
...
...
@@ -609,14 +611,16 @@ class ModelScorer:
break
ifch_seqresisNone:
raiseRuntimeError(
f"Failed to find SEQRES for chain of name {ch.GetName()} in provided SEQRES list."
"Failed to find SEQRES for chain of name "
+f"{ch.GetName()} in provided SEQRES list."
)
try:
aln=AlignChainToSEQRES(ch,ch_seqres)
alignments.append(aln)
except:
raiseRuntimeError(
f"Failed to align chain {ch.GetName()} of {self.model_path} to provided SEQRES."
f"Failed to align chain {ch.GetName()} of "
+f"{self.model_path} to provided SEQRES."
)
else:
# No SEQRES provided, extract SEQRES from protein => SEQRES==ATOMSEQ
...
...
@@ -780,7 +784,8 @@ def _check_qmtl(args):
# expect qmtl to be mounted at /qmtl
ifnotos.path.exists("/qmtl"):
raiseRuntimeError(
"For running QMEANDisCo you need to mount the downloadable QMTL data to /qmtl"
"For running QMEANDisCo you need to mount the downloadable QMTL "
+"data to /qmtl"
)
expected_files=[
...
...
@@ -806,7 +811,8 @@ def _check_qmtl(args):
p=os.path.join("/qmtl","dates.csv")
ifnotos.path.exists(p):
raiseRuntimeError(
f"If datefilter argument is provided, you additionally need to provide the QMTL specific {p}"
"If datefilter argument is provided, you additionally need to "
+f"provide the QMTL specific {p}"
)
...
...
@@ -839,19 +845,24 @@ def _parse_args():
"--seqres",
dest="seqres",
default=None,
help="SEQRES for models in FASTA format - Single sequence for homomers/homo-oligomers - Multiple sequences for hetero-oligomers with name based matching",
help="SEQRES for models in FASTA format - Single sequence for "
+"homomers/homo-oligomers - Multiple sequences for hetero-oligomers "
+"with name based matching",
)
parser.add_argument(
"--profiles",
nargs="+",
default=None,
help="Precomputed HHblits sequence profile(s) in a3m format that match target sequence(s) provided in seqres - must contain psipred annotation",
help="Precomputed HHblits sequence profile(s) in a3m format that match "
+"target sequence(s) provided in seqres - must contain psipred "
+"annotation",
)
parser.add_argument(
"--workdir",
dest="workdir",
default=None,
help="Location for intermediate output, normally temporary. If given, output remains for debug purposes",
help="Location for intermediate output, normally temporary. If given, "