Skip to content

Commit c5c1539

Browse files
committed
fix a bug in PrecisionProDB_Sqlite
two main functions
1 parent a57f7bd commit c5c1539

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PrecisionProDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def main():
144144
# use Sqlite
145145
import PrecisionProDB_Sqlite
146146
print('using sqlite database to speed up')
147-
PrecisionProDB_Sqlite.main(file_genome, file_gtf, file_mutations, file_protein, threads, outprefix, datatype, protein_keyword, filter_PASS, individual, chromosome_only, keep_all, file_sqlite)
147+
PrecisionProDB_Sqlite.main_PrecsionProDB_Sqlite(file_genome, file_gtf, file_mutations, file_protein, threads, outprefix, datatype, protein_keyword, filter_PASS, individual, chromosome_only, keep_all, file_sqlite)
148148

149149
pattern = re.compile(r'(chr)?(\d+)-(\d+)-([A-Za-z]+)-([A-Za-z]+)')
150150
match = pattern.match(file_mutations)

src/PrecisionProDB_Sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def check_sqlite_file(file_path):
305305
if 'conn' in locals():
306306
conn.close()
307307

308-
def main(file_genome, file_gtf, file_mutations, file_protein, threads, outprefix, datatype, protein_keyword, filter_PASS, individual, chromosome_only, keep_all, file_sqlite):
308+
def main_PrecsionProDB_Sqlite(file_genome, file_gtf, file_mutations, file_protein, threads, outprefix, datatype, protein_keyword, filter_PASS, individual, chromosome_only, keep_all, file_sqlite):
309309

310310
if os.path.exists(file_sqlite):
311311
if not check_sqlite_file(file_sqlite):

0 commit comments

Comments
 (0)