How to use the snakemake.validator.__init__.Resource function in snakemake

To help you get started, we’ve selected a few snakemake examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GooglingTheCancerGenome / sv-callers / snakemake / validator / __init__.py View on Github external
# Create loader
class MyLoader(yatiml.Loader):
    """
    MyLoader class.
    """
    pass


def load_configfile(yaml_file: str) -> Dict:
    with open(yaml_file, 'r') as conf:
        return yaml.load(conf, MyLoader)


yatiml.logger.setLevel(logging.DEBUG)
yatiml.add_to_loader(MyLoader, [Mode, FileExtension, Resource, Manta, Delly,
                     Lumpy, Gridss, Caller, SurvivorFilter, SurvivorMerge,
                     Survivor, PostProcess, Analysis])
yatiml.set_document_type(MyLoader, Analysis)
github GooglingTheCancerGenome / sv-callers / snakemake / validator / __init__.py View on Github external
class Delly(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 sv_types: List[str]) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.sv_types = sv_types


class Lumpy(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
        super().__init__(threads, memory, tmpspace, outdir)


class Gridss(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
        super().__init__(threads, memory, tmpspace, outdir)


class Caller:
    def __init__(self, manta: Manta, delly: Delly, lumpy: Lumpy,
                 gridss: Gridss) -> None:
        self.manta = manta
        self.delly = delly
        self.lumpy = lumpy
        self.gridss = gridss


class SurvivorFilter:
    def __init__(self, min_size: int, max_size: int, min_freq: int,
github GooglingTheCancerGenome / sv-callers / snakemake / validator / __init__.py View on Github external
class SurvivorMerge:
    def __init__(self, infile: str, max_dist: int, min_sup: int, use_type: int,
                 use_strand: int, use_size: int, min_size: int, outfile: str) \
                 -> None:
        self.infile = infile
        self.max_dist = max_dist
        self.min_sup = min_sup
        self.use_type = use_type
        self.use_strand = use_strand
        self.use_size = use_size
        self.min_size = min_size
        self.outfile = outfile


class Survivor(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 filter: SurvivorFilter, merge: SurvivorMerge) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.filter = filter
        self.merge = merge


class PostProcess:
    def __init__(self, survivor: Survivor) -> None:
        self.survivor = survivor


class Analysis:
    """
    Analysis class to hold all nodes.
    """
github GooglingTheCancerGenome / sv-callers / snakemake / validator / __init__.py View on Github external
self.bam = bam
        self.bam_idx = bam_idx
        self.bed = bed
        self.bcf = bcf
        self.vcf = vcf


class Resource:
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str) -> None:
        self.threads = threads
        self.memory = memory
        self.tmpspace = tmpspace
        self.outdir = outdir


class Manta(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 tumor_only: int) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.tumor_only = tumor_only


class Delly(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 sv_types: List[str]) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.sv_types = sv_types


class Lumpy(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
github GooglingTheCancerGenome / sv-callers / snakemake / validator / __init__.py View on Github external
class Resource:
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str) -> None:
        self.threads = threads
        self.memory = memory
        self.tmpspace = tmpspace
        self.outdir = outdir


class Manta(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 tumor_only: int) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.tumor_only = tumor_only


class Delly(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 sv_types: List[str]) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.sv_types = sv_types


class Lumpy(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
        super().__init__(threads, memory, tmpspace, outdir)


class Gridss(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
github GooglingTheCancerGenome / sv-callers / snakemake / validator / __init__.py View on Github external
class Manta(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 tumor_only: int) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.tumor_only = tumor_only


class Delly(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int, outdir: str,
                 sv_types: List[str]) -> None:
        super().__init__(threads, memory, tmpspace, outdir)
        self.sv_types = sv_types


class Lumpy(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
        super().__init__(threads, memory, tmpspace, outdir)


class Gridss(Resource):
    def __init__(self, threads: int, memory: int, tmpspace: int,
                 outdir: str) -> None:
        super().__init__(threads, memory, tmpspace, outdir)


class Caller:
    def __init__(self, manta: Manta, delly: Delly, lumpy: Lumpy,
                 gridss: Gridss) -> None:
        self.manta = manta
        self.delly = delly