This repository has been archived by the owner on Jun 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8976249
commit 767d553
Showing
11 changed files
with
83 additions
and
54 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pymysql | ||
import ujson | ||
|
||
connection = pymysql.connect(host='127.0.0.1', | ||
port=6603, | ||
user='root', | ||
db='circDraw', | ||
password='mypassword', | ||
charset='utf8', | ||
local_infile=True) | ||
|
||
with connection.cursor() as cur: | ||
counter = 0 | ||
with open('/home/circ/map_circ/server/hg19_circRNA_annotated.txt','r') as f1: | ||
for line in f1: | ||
i = line.strip().split('\t') | ||
cur.execute(f'''INSERT INTO hg19_circRNAs_new (gene,transcript,chr_num,start,end,components) VALUES ("{i[0]}","{i[1]}","{i[2]}","{i[3]}","{i[4]}",{ujson.dumps(i[-1])})''') | ||
connection.commit() | ||
with open('/home/circ/map_circ/server/hg38_circRNA_annotated.txt','r') as f2: | ||
for line in f2: | ||
i = line.strip().split('\t') | ||
cur.execute(f'''INSERT INTO hg38_circRNAs_new (gene,transcript,chr_num,start,end,components) VALUES ("{i[0]}","{i[1]}","{i[2]}","{i[3]}","{i[4]}",{ujson.dumps(i[-1])})''') | ||
connection.commit() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters