Skip to content

Commit

Permalink
Modified wgs_sv_calling workflow sample sheet filter: _yield_result_f…
Browse files Browse the repository at this point in the history
…iles_dna_short()
  • Loading branch information
eudesbarbosa committed Feb 18, 2022
1 parent 6bbdd8a commit 1cdb024
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions snappy_pipeline/workflows/wgs_sv_calling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,16 +822,15 @@ def _yield_result_files_dna_short(self, tpl, **kwargs):
)
continue
ngs_library = pedigree.index.dna_ngs_library
seq_platform = ngs_library.extra_infos["seqPlatform"].lower()
library_type = ngs_library.extra_infos["libraryType"].lower()
if not ngs_library:
msg = "WARNING: index of pedigree has no NGS library (names: {})"
print(
msg.format(list(sorted(d.name for d in pedigree.donors))), file=sys.stderr
)
continue
if (
ngs_library.extra_infos["libraryType"] != "WGS"
or ngs_library.extra_infos["seqPlatform"] != "Illumina"
):
if library_type != "wgs" or seq_platform != "illumina":
continue # not WGS or no long read
yield from expand(tpl, index_library=[pedigree.index.dna_ngs_library], **kwargs)

Expand Down

0 comments on commit 1cdb024

Please sign in to comment.