Skip to content

Commit

Permalink
Update create_database.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa authored Apr 16, 2024
1 parent 657a201 commit 168db37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions workflow/scripts/create_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ def update_fk():

# Load TSV into temporary barcode table, unindexed, then copy over
load_tsv(args.intsv, args.outdb, 'barcode_temp', 'barcode')
try:
database_cursor.execute('CREATE INDEX barcode_nucraw_idx ON barcode(nucraw)')
except sqlite3.OperationalError:
database_cursor.execute('CREATE INDEX barcode_nucraw_idx ON barcode(nuc)')
database_cursor.execute('CREATE INDEX barcode_nuc_idx ON barcode(nuc)')
database_cursor.execute('CREATE INDEX barcode_processid_idx ON barcode(processid)')
database_cursor.execute('CREATE INDEX barcode_marker_code_idx ON barcode(marker_code)')

Expand Down

0 comments on commit 168db37

Please sign in to comment.