コード例 #1
0
ファイル: mantaWorkflow.py プロジェクト: BadSeby/manta
    def getVcfSortCmd(vcfPaths, outPath, isDiploid) :
        cmd  = "\"%s\" -E \"%s\" -u " % (sys.executable,self.params.mantaSortVcf)
        cmd += " ".join(quoteStringList(vcfPaths))

        # apply the ploidy filter to diploid variants
        if isDiploid:
            tempVcf = self.paths.getTempDiploidPath()
            cmd += " > \"%s\"" % (tempVcf)
            cmd += " && \"%s\" -E \"%s\" \"%s\"" % (sys.executable, self.params.mantaPloidyFilter, tempVcf)

        cmd += " | \"%s\" -c > \"%s\"" % (self.params.bgzipBin, outPath)

        if isDiploid:
            cmd += " && " + " ".join(getRmCmd()) + " \"%s\"" % (self.paths.getTempDiploidPath())
        return cmd
コード例 #2
0
    def getVcfSortCmd(vcfListFile, outPath, isDiploid):
        cmd = "\"%s\" -E \"%s\" -u " % (sys.executable,
                                        self.params.mantaSortVcf)
        cmd += "-f \"%s\"" % (vcfListFile)

        # apply the ploidy filter to diploid variants
        if isDiploid:
            tempVcf = self.paths.getTempDiploidPath()
            cmd += " > \"%s\"" % (tempVcf)
            cmd += " && \"%s\" -E \"%s\" \"%s\"" % (
                sys.executable, self.params.mantaPloidyFilter, tempVcf)

        cmd += " | \"%s\" -c > \"%s\"" % (self.params.bgzipBin, outPath)

        if isDiploid:
            cmd += " && " + " ".join(
                getRmCmd()) + " \"%s\"" % (self.paths.getTempDiploidPath())
        return cmd
コード例 #3
0
ファイル: mantaWorkflow.py プロジェクト: Illumina/manta
    def getVcfSortCmd(vcfListFile, outPath, isDiploid, isCandidate) :
        cmd  = "\"%s\" \"%s\" " % (sys.executable, self.params.mantaSortVcf)
        cmd += "-f \"%s\"" % (vcfListFile)

        # Boolean variable isCandidate is set "True" for candidateSV.vcf
        # If it is True, commandline argument "-a" is passed on to sortBam.py to print out all vcf records
        if isCandidate:
            cmd += " -a"

        # apply the ploidy filter to diploid variants
        if isDiploid:
            tempVcf = self.paths.getTempDiploidPath()
            cmd += " > \"%s\"" % (tempVcf)
            cmd += " && \"%s\" \"%s\" \"%s\"" % (sys.executable, self.params.mantaPloidyFilter, tempVcf)

        cmd += " | \"%s\" -c > \"%s\"" % (self.params.bgzipBin, outPath)

        if isDiploid:
            cmd += " && " + " ".join(getRmCmd()) + " \"%s\"" % (self.paths.getTempDiploidPath())
        return cmd
コード例 #4
0
ファイル: mantaWorkflow.py プロジェクト: voravich1/manta
    def getVcfSortCmd(vcfListFile, outPath, isDiploid, isCandidate):
        cmd = "\"%s\" \"%s\" " % (sys.executable, self.params.mantaSortVcf)
        cmd += "-f \"%s\"" % (vcfListFile)

        # Boolean variable isCandidate is set "True" for candidateSV.vcf
        # If it is True, commandline argument "-a" is passed on to sortBam.py to print out all vcf records
        if isCandidate:
            cmd += " -a"

        # apply the ploidy filter to diploid variants
        if isDiploid:
            tempVcf = self.paths.getTempDiploidPath()
            cmd += " > \"%s\"" % (tempVcf)
            cmd += " && \"%s\" \"%s\" \"%s\"" % (
                sys.executable, self.params.mantaPloidyFilter, tempVcf)

        cmd += " | \"%s\" -c > \"%s\"" % (self.params.bgzipBin, outPath)

        if isDiploid:
            cmd += " && " + " ".join(
                getRmCmd()) + " \"%s\"" % (self.paths.getTempDiploidPath())
        return cmd