Exemplo n.º 1
0
 def __init__(self):
     opts = (_mapseq_lims_opt, (
         "-f", "--fasta_path",
         "Path to a directory containing a fasta file for each chromosome",
         {
             'default': None
         }
     ), ("--mincov", "Minimum coverage to call the SNP.", {
         'default': 5
     }), (
         "--minsnp",
         "Minimum percentage of reads per allele to call the SNP.", {
             'default': 40
         }
     ), ("-b", "--make_bigwigs",
         "Create genome-wide coverage, heterozygosity and quality bigwigs.",
         {
             'action': "store_true"
         }))
     usage = "[-m mapseq_minilims] [--mincov --minsnp]"
     desc = """Compares sequencing data to a reference assembly to detect SNPs."""
     Workflow.__init__(self,
                       module="snp",
                       opts=opts,
                       usage=usage,
                       desc=desc)
Exemplo n.º 2
0
 def check_options(self):
     Workflow.check_options(self)
     self.main_args = {"job": self.job,
                       "assembly": self.job.assembly,
                       "logfile": self.logfile,
                       "via": self.opts.via}
     return True
Exemplo n.º 3
0
 def __init__(self):
     opts = (
         _mapseq_lims_opt,
         ("-p", "--pileup_level",
          "Target features, inside of quotes, separated by commas. E.g. 'genes,exons,transcripts'.",
          {
              'default': "genes,exons,transcripts"
          }),
         ("-j", "--junctions",
          "Whether or not to search for splice junctions using soapsplice.",
          {
              'action': "store_true",
              'default': False
          }),
         ("--stranded",
          "To indicate that the protocol was strand-specific.", {
              'action': "store_true",
              'default': False
          }),
     )
     usage = "[-m mapseq_minilims] [-p -j --stranded]"
     desc = """A High-throughput RNA-seq analysis workflow. It returns text files containing
               read counts for exons, genes and transcripts for each given BAM file, and the result
               of a DESeq run (differential expression analysis) for every pair of groups. """
     Workflow.__init__(self,
                       module="rnaseq",
                       opts=opts,
                       usage=usage,
                       desc=desc)
Exemplo n.º 4
0
 def check_options(self):
     Workflow.check_options(self)
     self.main_args = {"job": self.job,
                       "gl": self.globals,
                       "via": self.opts.via,
                       "debugfile": self.debugfile,
                       "logfile": self.logfile}
     return True
Exemplo n.º 5
0
 def check_options(self):
     Workflow.check_options(self)
     self.main_args = {"job_or_dict": self.job,
                       "assembly": self.job.assembly,
                       "script_path": self.globals.get('script_path',''),
                       "logfile": self.logfile,
                       "via": self.opts.via}
     return True
Exemplo n.º 6
0
 def __init__(self):
     opts = (_mapseq_lims_opt, )
     usage = "[-m mapseq_minilims]"
     desc = """A High-throughput ChIP-seq peak analysis workflow."""
     Workflow.__init__(self,
                       module="chipseq",
                       opts=opts,
                       usage=usage,
                       desc=desc)
Exemplo n.º 7
0
 def __init__(self):
     opts = (("--noqc", "Skip fastqc step", {'action': "store_true"}), )
     usage = "[--noqc]"
     desc = "A High-throughput sequencing data mapping workflow."
     Workflow.__init__(self,
                       module="mapseq",
                       opts=opts,
                       usage=usage,
                       desc=desc)
Exemplo n.º 8
0
 def check_options(self):
     Workflow.check_options(self)
     self.main_args = {
         "job": self.job,
         "assembly": self.job.assembly,
         "logfile": self.logfile,
         "via": self.opts.via
     }
     return True
Exemplo n.º 9
0
 def check_options(self):
     Workflow.check_options(self)
     self.main_args = {
         "job": self.job,
         "gl": self.globals,
         "via": self.opts.via,
         "debugfile": self.debugfile,
         "logfile": self.logfile
     }
     return True
Exemplo n.º 10
0
 def __init__(self):
     opts = (_mapseq_lims_opt, )
     usage = "[-m mapseq_minilims]"
     desc = """A High-throughput DNAseI-seq analysis workflow."""
     Workflow.__init__(self,
                       module="dnaseseq",
                       name="dnaseseq",
                       opts=opts,
                       usage=usage,
                       desc=desc)
Exemplo n.º 11
0
 def __init__(self):
     opts = (_mapseq_lims_opt, )
     usage = "[-m mapseq_minilims]"
     desc = """A High-throughput microbiome analysis workflow. Will return counts per level for the selected microbiome database."""
     Workflow.__init__(self,
                       module="microbiome",
                       name="microbiome",
                       opts=opts,
                       usage=usage,
                       desc=desc)
Exemplo n.º 12
0
 def check_options(self):
     Workflow.check_options(self)
     self.main_args = {
         "job_or_dict": self.job,
         "assembly": self.job.assembly,
         "script_path": self.globals.get('script_path', ''),
         "logfile": self.logfile,
         "via": self.opts.via
     }
     return True
Exemplo n.º 13
0
 def check_options(self):
     Workflow.check_options(self)
     self.suffix = ['merged']
     primers_dict = self.sysmod.loadPrimers(os.path.join(self.opts.wdir,'primers.fa'))
     self.main_args = {"job": self.job,
                       "primers_dict": primers_dict,
                       "assembly": self.job.assembly,
                       "script_path": self.globals.get('script_path',''),
                       "logfile": self.logfile,
                       "via": self.opts.via}
     return True
Exemplo n.º 14
0
 def __init__(self):
     opts = (_mapseq_lims_opt,
             ("-f", "--fasta_path", "Path to a directory containing a fasta file for each chromosome",
              {'default':None}),
             ("--mincov", "Minimum coverage to call the SNP.",
              {'default':5}),
             ("--minsnp", "Minimum percentage of reads per allele to call the SNP.",
              {'default':40}),
             ("-b","--make_bigwigs", "Create genome-wide coverage, heterozygosity and quality bigwigs.",
              {'action':"store_true"}))
     usage = "[-m mapseq_minilims] [--mincov --minsnp]"
     desc = """Compares sequencing data to a reference assembly to detect SNPs."""
     Workflow.__init__(self,module="snp",opts=opts,usage=usage,desc=desc)
Exemplo n.º 15
0
 def check_options(self):
     more_defs = {'discard_pcr_duplicates': (False,),
                  'find_junctions': (False,),
                  'stranded': (False,)}
     Workflow.check_options(self, more_defs)
     self.main_args = {"job": self.job,
                       "pileup_level": self.opts.pileup_level.split(','),
                       "via": self.opts.via,
                       "junctions": self.job.options['find_junctions'] or self.opts.junctions,
                       "stranded": self.job.options['stranded'] and not self.opts.stranded,
                       "logfile": self.logfile,
                       "debugfile": self.debugfile}
     return True
Exemplo n.º 16
0
 def check_options(self):
     Workflow.check_options(self)
     self.suffix = ['merged']
     primers_dict = self.sysmod.loadPrimers(
         os.path.join(self.opts.wdir, 'primers.fa'))
     self.main_args = {
         "job": self.job,
         "primers_dict": primers_dict,
         "assembly": self.job.assembly,
         "script_path": self.globals.get('script_path', ''),
         "logfile": self.logfile,
         "via": self.opts.via
     }
     return True
Exemplo n.º 17
0
    def check_options(self):
        Workflow.check_options(self,{'bowtie2': (True,)})
        map_args = self.job.options.get('map_args',{})
        self.job.options['create_gdv_project'] &= self.job.options['compute_densities']
        self.main_args = {"job": self.job,
                          "assembly": self.job.assembly,
                          "map_args": map_args,
                          "gl": self.globals,
                          "bowtie2": self.job.options['bowtie2'],
                          "via": self.opts.via,
                          "debugfile": self.debugfile,
                          "logfile": self.logfile}

        return True
Exemplo n.º 18
0
 def check_options(self):
     _mbw = str(self.job.options.get('compute_densities_snp','1')).lower()
     more_defs = {'bowtie2': (True,),
                  'make_bigwigs': (True,_mbw in ['1','true','t'])}
     Workflow.check_options(self, more_defs)
     mincov = int(self.job.options.get('mincov') or self.opts.mincov)
     minsnp = int(self.job.options.get('minsnp') or self.opts.minsnp)
     self.main_args = {"job": self.job,
                       "assembly": self.job.assembly,
                       "mincov": mincov,
                       "minsnp": minsnp,
                       "path_to_ref": self.opts.fasta_path,
                       "via": self.opts.via}
     return True
Exemplo n.º 19
0
 def __init__(self):
     opts = (_mapseq_lims_opt,
             ("-p", "--pileup_level",
              "Target features, inside of quotes, separated by commas. E.g. 'genes,exons,transcripts'.",
              {'default':"genes,exons,transcripts"}),
             ("-j", "--junctions", "Whether or not to search for splice junctions using soapsplice.",
              {'action':"store_true", 'default':False}),
             ("--stranded", "To indicate that the protocol was strand-specific.",
              {'action':"store_true", 'default':False}),
            )
     usage = "[-m mapseq_minilims] [-p -j --stranded]"
     desc = """A High-throughput RNA-seq analysis workflow. It returns text files containing
               read counts for exons, genes and transcripts for each given BAM file, and the result
               of a DESeq run (differential expression analysis) for every pair of groups. """
     Workflow.__init__(self,module="rnaseq",opts=opts,usage=usage,desc=desc)
Exemplo n.º 20
0
 def check_options(self):
     Workflow.check_options(self,{'bowtie2': (True,), 'local_align': (False,)})
     map_args = self.job.options.get('map_args',{})
     if self.job.options['local_align']:
         map_args.setdefault("bwt_args",[])
         map_args["bwt_args"] += ["--local"]
     self.job.options['create_gdv_project'] &= self.job.options['compute_densities']
     self.main_args = {"job": self.job,
                       "assembly": self.job.assembly,
                       "map_args": map_args,
                       "gl": self.globals,
                       "bowtie2": self.job.options['bowtie2'],
                       "via": self.opts.via,
                       "debugfile": self.debugfile,
                       "logfile": self.logfile}
     return True
Exemplo n.º 21
0
    def check_options(self):
        Workflow.check_options(self, {'bowtie2': (True, )})
        map_args = self.job.options.get('map_args', {})
        self.job.options['create_gdv_project'] &= self.job.options[
            'compute_densities']
        self.main_args = {
            "job": self.job,
            "assembly": self.job.assembly,
            "map_args": map_args,
            "gl": self.globals,
            "bowtie2": self.job.options['bowtie2'],
            "via": self.opts.via,
            "debugfile": self.debugfile,
            "logfile": self.logfile
        }

        return True
Exemplo n.º 22
0
 def check_options(self):
     _mbw = str(self.job.options.get('compute_densities_snp', '1')).lower()
     more_defs = {
         'bowtie2': (True, ),
         'make_bigwigs': (True, _mbw in ['1', 'true', 't'])
     }
     Workflow.check_options(self, more_defs)
     mincov = int(self.job.options.get('mincov') or self.opts.mincov)
     minsnp = int(self.job.options.get('minsnp') or self.opts.minsnp)
     self.main_args = {
         "job": self.job,
         "assembly": self.job.assembly,
         "mincov": mincov,
         "minsnp": minsnp,
         "path_to_ref": self.opts.fasta_path,
         "via": self.opts.via
     }
     return True
Exemplo n.º 23
0
 def check_options(self):
     more_defs = {
         'discard_pcr_duplicates': (False, ),
         'find_junctions': (False, ),
         'stranded': (False, )
     }
     Workflow.check_options(self, more_defs)
     self.main_args = {
         "job": self.job,
         "pileup_level": self.opts.pileup_level.split(','),
         "via": self.opts.via,
         "junctions": self.job.options['find_junctions']
         or self.opts.junctions,
         "stranded": self.job.options['stranded']
         and not self.opts.stranded,
         "logfile": self.logfile,
         "debugfile": self.debugfile
     }
     return True
Exemplo n.º 24
0
 def check_options(self):
     Workflow.check_options(self, {
         'bowtie2': (True, ),
         'local_align': (False, )
     })
     map_args = self.job.options.get('map_args', {})
     if self.job.options['local_align']:
         map_args.setdefault("bwt_args", [])
         map_args["bwt_args"] += ["--local"]
     self.job.options['create_gdv_project'] &= self.job.options[
         'compute_densities']
     self.main_args = {
         "job": self.job,
         "assembly": self.job.assembly,
         "map_args": map_args,
         "gl": self.globals,
         "bowtie2": self.job.options['bowtie2'],
         "via": self.opts.via,
         "debugfile": self.debugfile,
         "logfile": self.logfile
     }
     return True
Exemplo n.º 25
0
 def __init__(self):
     opts = (_mapseq_lims_opt,)
     usage = "[-m mapseq_minilims]"
     desc = """A High-throughput ChIP-seq peak analysis workflow."""
     Workflow.__init__(self,module="chipseq",opts=opts,usage=usage,desc=desc)
Exemplo n.º 26
0
 def __init__(self):
     opts = (("--noqc","Skip fastqc step",{'action':"store_true"}),
             ("--local_align","Perform local alignment",{'action':"store_true"}),)
     usage = "[--noqc] [--local_align]"
     desc = "A High-throughput sequencing data mapping workflow."
     Workflow.__init__(self,module="mapseq",opts=opts,usage=usage,desc=desc)
Exemplo n.º 27
0
 def __init__(self):
     desc = "Demultiplexing routine for 4C-seq data."
     Workflow.__init__(self,
                       module="demultiplex",
                       name="demultiplexing",
                       desc=desc)
Exemplo n.º 28
0
 def __init__(self):
     opts = (_mapseq_lims_opt,)
     usage = "[-m mapseq_minilims]"
     desc = """A High-throughput DNAseI-seq analysis workflow."""
     Workflow.__init__(self,module="dnaseseq",name="dnaseseq",opts=opts,usage=usage,desc=desc)
Exemplo n.º 29
0
 def __init__(self):
     opts = (_mapseq_lims_opt,)
     usage = "[-m mapseq_minilims]"
     desc = """A High-throughput microbiome analysis workflow. Will return counts per level for the selected microbiome database."""
     Workflow.__init__(self,module="microbiome",name="microbiome",opts=opts,usage=usage,desc=desc)
Exemplo n.º 30
0
 def __init__(self):
     desc = "Demultiplexing routine for 4C-seq data."
     Workflow.__init__(self,module="demultiplex",name="demultiplexing",desc=desc)