Пример #1
0
def alignToSam(inputs, output, logger):
    if isPairedEnd:
        align1, [align2, seq1, seq2] = inputs
        runStage('alignToSamPE', logger, options, reference, align2, align2, seq1, seq2, output)
    else:
        align, [seq] = inputs
        runStage('alignToSamSE', logger, options, reference, align, seq, output)
Пример #2
0
def alignToSam(inputs, output, logger):
    if isPairedEnd:
        align1, [align2, seq1, seq2] = inputs
        runStage('alignToSamPE', logger, options, reference, align2, align2,
                 seq1, seq2, output)
    else:
        align, [seq] = inputs
        runStage('alignToSamSE', logger, options, reference, align, seq,
                 output)
Пример #3
0
def alignSequence(sequence, output, logger):
    runStage('alignSequence', logger, options, reference, sequence, output)
Пример #4
0
def varFilter(fullPileup, output, varPileup, chromName, chromLength, logger):
    runStage('varFilter', logger, options, fullPileup, varPileup, chromName, chromLength, output)
Пример #5
0
def illToSanger(sequence, output, logger):
    if sequence.endswith('.txt'):
        runStage('illToSanger', logger, options, sequence, output)
Пример #6
0
def mkRefDataBase(reference, output, logger):
    runStage('mkRefDataBase', logger, options, reference, output)
Пример #7
0
def pileup(baiFile, output, logger):
    (prefix, name, ext) = splitPath(baiFile)
    bamAlignFile = os.path.join(prefix, name)
    runStage('pileup', logger, options, reference, bamAlignFile, output)
Пример #8
0
def varFilter(fullPileup, output, varPileup, chromName, chromLength, logger):
    runStage('varFilter', logger, options, fullPileup, varPileup, chromName,
             chromLength, output)
Пример #9
0
def pileup(baiFile, output, logger):
    (prefix, name, ext) = splitPath(baiFile)
    bamAlignFile = os.path.join(prefix, name)
    runStage('pileup', logger, options, reference, bamAlignFile, output)
Пример #10
0
def realign(inputs, output, logger):
   print inputs
   intervals, mergedBamsFile = inputs
   runStage('realign', logger, options, reference, mergedBamsFile, intervals, output)
Пример #11
0
def realignIntervals(mergedBamsFile, output, logger):
   runStage('realignIntervals', logger, options, reference, mergedBamsFile, output)
Пример #12
0
def indexMergedBams(mergedBamsFile, output, logger):
    runStage('indexMergedBams', logger, options, mergedBamsFile, output)
Пример #13
0
def pileupFull(bamFile, output, logger):
    runStage('pileupFull', logger, options, reference, bamFile, output)
Пример #14
0
def samToBam(samFile, output, logger):
    runStage('samToBam', logger, options, reference, samFile, output)
Пример #15
0
def alignToSam(inputs, output, logger):
    align1, [align2, seq1, seq2] = inputs
    runStage('alignToSam', logger, options, reference, align2, align2, seq1,
             seq2, output)
Пример #16
0
def samToBam(samFile, output, logger):
    runStage('samToBam', logger, options, reference, samFile, output)
Пример #17
0
def pileupFull(bamFile, output, logger):
    runStage('pileupFull', logger, options, reference, bamFile, output)
Пример #18
0
def variation(pileupFile, output, logger):
    runStage('variation', logger, options, pileupFile, output)
Пример #19
0
def realign(inputs, output, logger):
    print inputs
    intervals, mergedBamsFile = inputs
    runStage('realign', logger, options, reference, mergedBamsFile, intervals,
             output)
Пример #20
0
def indexReference(reference, output, logger):
    runStage('indexReference', logger, options, reference, output)
Пример #21
0
def variation(pileupFile, output, logger):
    runStage('variation', logger, options, pileupFile, output)
Пример #22
0
def illToSanger(sequence, output, logger):
    if sequence.endswith('.txt'):
        runStage('illToSanger', logger, options, sequence, output)
Пример #23
0
def indexReference(reference, output, logger):
    runStage('indexReference', logger, options, reference, output)
Пример #24
0
def samToBam(samFile, output, logger):
    indexedReference = reference + '.fai'
    runStage('samToBam', logger, options, indexedReference, samFile, output)
Пример #25
0
def alignSequence(sequence, output, logger):
    runStage('alignSequence', logger, options, reference, sequence, output)
Пример #26
0
def mergeBams(sortedBams, output, logger):
    if len(sortedBams) == 1:
        shutil.copyfile(sortedBams[0], output)
    else: 
        bams = ' '.join(sortedBams)
        runStage('mergeBams', logger, options, bams, output)
Пример #27
0
def samToBam(samFile, output, logger):
    indexedReference = reference + '.fai'
    runStage('samToBam', logger, options, indexedReference, samFile, output)
Пример #28
0
def sortBam(bamFile, output, logger):
    (prefix, name, ext) = splitPath(output)
    outFile = os.path.join(prefix, name)
    runStage('sortBam', logger, options, bamFile, outFile)
Пример #29
0
def mkRefDataBase(reference, output, logger):
    runStage('mkRefDataBase', logger, options, reference, output)
Пример #30
0
def mergeBams(sortedBams, output, logger):
    if len(sortedBams) == 1:
        shutil.copyfile(sortedBams[0], output)
    else:
        bams = ' '.join(sortedBams)
        runStage('mergeBams', logger, options, bams, output)
Пример #31
0
def alignToSam(inputs, output, logger):
   align1, [align2, seq1, seq2] = inputs
   runStage('alignToSam', logger, options, reference, align2, align2, seq1, seq2, output)
Пример #32
0
def indexMergedBams(mergedBamsFile, output, logger):
    runStage('indexMergedBams', logger, options, mergedBamsFile, output)
Пример #33
0
def sortBam(bamFile, output, logger):
    (prefix, name, ext) = splitPath(output)
    outFile = os.path.join(prefix,name)
    runStage('sortBam', logger, options, bamFile, outFile)
Пример #34
0
def realignIntervals(mergedBamsFile, output, logger):
    runStage('realignIntervals', logger, options, reference, mergedBamsFile,
             output)
Пример #35
0
def callSNPs(bamFile, output, logger):
    runStage('callSNPs', logger, options, reference, bamFile, output)
Пример #36
0
def callSNPs(bamFile, output, logger):
    runStage('callSNPs', logger, options, reference, bamFile, output)