Skip to content
Snippets Groups Projects
Verified Commit 3be3cf3d authored by Xavier Robin's avatar Xavier Robin
Browse files

log: warn user when things get filtered out

parent bf7dbe0b
No related branches found
No related tags found
No related merge requests found
...@@ -790,6 +790,8 @@ class ChainMapper: ...@@ -790,6 +790,8 @@ class ChainMapper:
seq_id_thr = self.mdl_map_pep_seqid_thr, seq_id_thr = self.mdl_map_pep_seqid_thr,
min_aln_length = self.min_pep_length) min_aln_length = self.min_pep_length)
if idx is None: if idx is None:
ost.LogWarning("Could not map model chain %s to any chem group"
" in the target" % s.name)
mdl_chains_without_chem_mapping.append(s.GetName()) mdl_chains_without_chem_mapping.append(s.GetName())
else: else:
mapping[idx].append(s.GetName()) mapping[idx].append(s.GetName())
...@@ -802,6 +804,8 @@ class ChainMapper: ...@@ -802,6 +804,8 @@ class ChainMapper:
seq_id_thr = self.mdl_map_nuc_seqid_thr, seq_id_thr = self.mdl_map_nuc_seqid_thr,
min_aln_length = self.min_nuc_length) min_aln_length = self.min_nuc_length)
if idx is None: if idx is None:
ost.LogWarning("Could not map model chain %s to any chem group"
" in the target" % s.name)
mdl_chains_without_chem_mapping.append(s.GetName()) mdl_chains_without_chem_mapping.append(s.GetName())
else: else:
mapping[idx].append(s.GetName()) mapping[idx].append(s.GetName())
...@@ -1601,9 +1605,11 @@ class ChainMapper: ...@@ -1601,9 +1605,11 @@ class ChainMapper:
# filter out short chains # filter out short chains
if n_pep > 0 and n_pep < self.min_pep_length: if n_pep > 0 and n_pep < self.min_pep_length:
ost.LogWarning("Skipping short peptide chain: %s" % ch.name)
continue continue
if n_nuc > 0 and n_nuc < self.min_nuc_length: if n_nuc > 0 and n_nuc < self.min_nuc_length:
ost.LogWarning("Skipping short nucleotide chain: %s" % ch.name)
continue continue
# the superfast residue number based alignment adds some # the superfast residue number based alignment adds some
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment