annotate SMART/Java/Python/ncList/FindOverlapsWithSeveralIntervalsBin.py @ 65:4ab9c86890ba draft

Minor change
author m-zytnicki
date Wed, 04 Nov 2015 03:41:26 -0500
parents 769e306b7933
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
1 #! /usr/bin/env python
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
2 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
3 # Copyright INRA-URGI 2009-2011
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
4 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
5 # This software is governed by the CeCILL license under French law and
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
6 # abiding by the rules of distribution of free software. You can use,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
7 # modify and/ or redistribute the software under the terms of the CeCILL
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
8 # license as circulated by CEA, CNRS and INRIA at the following URL
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
9 # "http://www.cecill.info".
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
10 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
11 # As a counterpart to the access to the source code and rights to copy,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
12 # modify and redistribute granted by the license, users are provided only
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
13 # with a limited warranty and the software's author, the holder of the
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
14 # economic rights, and the successive licensors have only limited
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
15 # liability.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
16 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
17 # In this respect, the user's attention is drawn to the risks associated
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
18 # with loading, using, modifying and/or developing or reproducing the
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
19 # software by the user in light of its specific status of free software,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
20 # that may mean that it is complicated to manipulate, and that also
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
21 # therefore means that it is reserved for developers and experienced
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
22 # professionals having in-depth computer knowledge. Users are therefore
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
23 # encouraged to load and test the software's suitability as regards their
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
24 # requirements in conditions enabling the security of their systems and/or
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
25 # data to be ensured and, more generally, to use and operate it in the
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
26 # same conditions as regards security.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
27 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
28 # The fact that you are presently reading this means that you have had
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
29 # knowledge of the CeCILL license and that you accept its terms.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
30 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
31 import random, os, os.path, time, sqlite3
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
32 from optparse import OptionParser
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
33 from commons.core.parsing.ParserChooser import ParserChooser
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
34 from commons.core.writer.TranscriptWriter import TranscriptWriter
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
35 from SMART.Java.Python.structure.Interval import Interval
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
36 from SMART.Java.Python.structure.Transcript import Transcript
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
37 from SMART.Java.Python.structure.Mapping import Mapping
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
38 from SMART.Java.Python.misc.Progress import Progress
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
39 from SMART.Java.Python.misc.UnlimitedProgress import UnlimitedProgress
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
40 try:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
41 import cPickle as pickle
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
42 except:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
43 import pickle
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
44
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
45 MINBIN = 3
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
46 MAXBIN = 7
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
47
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
48
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
49 def getBin(start, end):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
50 for i in range(MINBIN, MAXBIN + 1):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
51 binLevel = 10 ** i
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
52 if int(start / binLevel) == int(end / binLevel):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
53 return int(i * 10 ** (MAXBIN + 1) + int(start / binLevel))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
54 return int((MAXBIN + 1) * 10 ** (MAXBIN + 1))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
55
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
56 def getOverlappingBins(start, end):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
57 array = []
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
58 bigBin = int((MAXBIN + 1) * 10 ** (MAXBIN + 1))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
59 for i in range(MINBIN, MAXBIN + 1):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
60 binLevel = 10 ** i
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
61 array.append((int(i * 10 ** (MAXBIN + 1) + int(start / binLevel)), int(i * 10 ** (MAXBIN + 1) + int(end / binLevel))))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
62 array.append((bigBin, bigBin))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
63 return array
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
64
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
65
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
66 class FindOverlapsWithSeveralIntervalsBin(object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
67
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
68 def __init__(self, verbosity):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
69 self.verbosity = verbosity
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
70 self.randomNumber = random.randint(0, 10000)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
71 self.dbName = "smartdb%d" % (self.randomNumber)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
72 if "SMARTTMPPATH" in os.environ:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
73 self.dbName = os.join(os.environ["SMARTTMPPATH"], self.dbName)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
74 self.connection = sqlite3.connect(self.dbName)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
75 self.tableNames = {}
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
76 self.nbQueries = 0
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
77 self.nbRefs = 0
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
78 self.nbWritten = 0
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
79 self.nbOverlaps = 0
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
80 cursor = self.connection.cursor()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
81 cursor.execute("PRAGMA journal_mode = OFF")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
82 cursor.execute("PRAGMA synchronous = 0")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
83 cursor.execute("PRAGMA locking_mode = EXCLUSIVE")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
84 cursor.execute("PRAGMA count_change = OFF")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
85 cursor.execute("PRAGMA temp_store = 2")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
86
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
87 def __del__(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
88 cursor = self.connection.cursor()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
89 for tableName in self.tableNames.values():
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
90 cursor.execute("DROP TABLE IF EXISTS %s" % (tableName))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
91 if os.path.exists(self.dbName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
92 os.remove(self.dbName)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
93
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
94 def createTable(self, chromosome):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
95 cursor = self.connection.cursor()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
96 tableName = "tmpTable_%s_%d" % (chromosome.replace("-", "_"), self.randomNumber)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
97 cursor.execute("CREATE TABLE %s (start INT, end INT, transcript BLOB, bin INT)" % (tableName))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
98 cursor.execute("CREATE INDEX index_%s ON %s (bin)" % (tableName, tableName))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
99 self.tableNames[chromosome] = tableName
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
100
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
101 def setReferenceFile(self, fileName, format):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
102 chooser = ParserChooser(self.verbosity)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
103 chooser.findFormat(format)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
104 parser = chooser.getParser(fileName)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
105 startTime = time.time()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
106 if self.verbosity > 2:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
107 print "Storing into table"
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
108 for transcript in parser.getIterator():
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
109 if transcript.__class__.__name__ == "Mapping":
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
110 transcript = transcript.getTranscript()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
111 transcriptString = pickle.dumps(transcript)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
112 chromosome = transcript.getChromosome()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
113 if chromosome not in self.tableNames:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
114 self.createTable(chromosome)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
115 start = transcript.getStart()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
116 end = transcript.getEnd()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
117 bin = getBin(start, end)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
118 cursor = self.connection.cursor()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
119 cursor.execute("INSERT INTO %s (start, end, transcript, bin) VALUES (?, ?, ?, ?)" % (self.tableNames[chromosome]), (start, end, sqlite3.Binary(transcriptString), bin))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
120 self.nbRefs += 1
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
121 self.connection.commit()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
122 endTime = time.time()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
123 if self.verbosity > 2:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
124 print " ...done (%.2gs)" % (endTime - startTime)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
125
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
126 def setQueryFile(self, fileName, format):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
127 chooser = ParserChooser(self.verbosity)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
128 chooser.findFormat(format)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
129 self.queryParser = chooser.getParser(fileName)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
130 self.nbQueries = self.queryParser.getNbItems()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
131
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
132 def setOutputFile(self, fileName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
133 self.writer = TranscriptWriter(fileName, "gff3", self.verbosity)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
134
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
135 def compare(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
136 progress = Progress(self.nbQueries, "Reading queries", self.verbosity)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
137 startTime = time.time()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
138 for queryTranscript in self.queryParser.getIterator():
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
139 if queryTranscript.__class__.__name__ == "Mapping":
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
140 queryTranscript = queryTranscript.getTranscript()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
141 progress.inc()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
142 queryChromosome = queryTranscript.getChromosome()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
143 if queryChromosome not in self.tableNames:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
144 continue
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
145 queryStart = queryTranscript.getStart()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
146 queryEnd = queryTranscript.getEnd()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
147 bins = getOverlappingBins(queryStart, queryEnd)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
148 commands = []
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
149 for bin in bins:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
150 command = "SELECT * FROM %s WHERE bin " % (self.tableNames[queryChromosome])
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
151 if bin[0] == bin[1]:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
152 command += "= %d" % (bin[0])
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
153 else:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
154 command += "BETWEEN %d AND %d" % (bin[0], bin[1])
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
155 commands.append(command)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
156 command = " UNION ".join(commands)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
157 cursor = self.connection.cursor()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
158 cursor.execute(command)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
159 overlap = False
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
160 line = cursor.fetchone()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
161 while line:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
162 refStart, refEnd, refTranscriptString, refBin = line
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
163 if refStart <= queryEnd and refEnd >= queryStart:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
164 refTranscript = pickle.loads(str(refTranscriptString))
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
165 if refTranscript.overlapWith(queryTranscript):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
166 overlap = True
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
167 self.nbOverlaps += 1
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
168 line = cursor.fetchone()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
169 if overlap:
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
170 self.writer.addTranscript(queryTranscript)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
171 self.nbWritten += 1
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
172 progress.done()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
173 endTime = time.time()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
174 self.timeSpent = endTime - startTime
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
175
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
176 def displayResults(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
177 print "# queries: %d" % (self.nbQueries)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
178 print "# refs: %d" % (self.nbRefs)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
179 print "# written: %d (%d overlaps)" % (self.nbWritten, self.nbOverlaps)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
180 print "time: %.2gs" % (self.timeSpent)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
181
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
182 def run(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
183 self.compare()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
184 self.displayResults()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
185
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
186 if __name__ == "__main__":
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
187
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
188 description = "Find Overlaps With Several Intervals Using Bin v1.0.1: Use MySQL binning to compare intervals. [Category: Personal]"
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
189
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
190 parser = OptionParser(description = description)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
191 parser.add_option("-i", "--input1", dest="inputFileName1", action="store", type="string", help="query input file [compulsory] [format: file in transcript format given by -f]")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
192 parser.add_option("-f", "--format1", dest="format1", action="store", type="string", help="format of previous file [compulsory] [format: transcript file format]")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
193 parser.add_option("-j", "--input2", dest="inputFileName2", action="store", type="string", help="reference input file [compulsory] [format: file in transcript format given by -g]")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
194 parser.add_option("-g", "--format2", dest="format2", action="store", type="string", help="format of previous file [compulsory] [format: transcript file format]")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
195 parser.add_option("-o", "--output", dest="outputFileName", action="store", type="string", help="output file [format: output file in GFF3 format]")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
196 parser.add_option("-v", "--verbosity", dest="verbosity", action="store", default=1, type="int", help="trace level [format: int]")
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
197 (options, args) = parser.parse_args()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
198
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
199 fowsib = FindOverlapsWithSeveralIntervalsBin(options.verbosity)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
200 fowsib.setQueryFile(options.inputFileName1, options.format1)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
201 fowsib.setReferenceFile(options.inputFileName2, options.format2)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
202 fowsib.setOutputFile(options.outputFileName)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
203 fowsib.run()
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
204