GIVE 中 新增互作基因

2021-09-24 12:09:43 字數 2321 閱讀 5287

檔案會隨著時間的推移而改變

-- 建立乙個表, 只需改動資料庫名和表名即可

create

table

`hg19`

.`a`

(`id`

int(10)

unsigned

notnull

auto_increment

,`chrom`

varchar

(255

)not

null

default'',

`start

`int(10

)unsigned

notnull

default

'0',

`end

`int(10

)unsigned

notnull

default

'0',

`linkid`

int(10)

unsigned

notnull

default

'0',

`value

`float

notnull

default

'0',

`dirflag`

tinyint(4

)not

null

default

'-1'

,primary

key(

`id`),

key`chrom`

(`chrom`(16

),`start`)

,key

`chrom_2`

(`chrom`(16

),`end`)

,key

`linkid`

(`linkid`))

engine

=innodb

;-- 載入表中的資料

load

data

local

infile

"/tmp/give/intersection_1.bed"

into

table

`hg19`

.`a`

;-- 新增注釋, 可能需要改動資料庫名, 表名不需要固定的

insert

into

`hg19`

.`trackdb`

values

('a'

,-- 表的名字

'interaction'

,-- 固定不變的21,

null

,null

,-- 分組的名字,**於 grp 資料庫的 name 字段

'interactions'

,-- group name, should be the same as grp.name'')

;

瀏覽的時候發現不支援多選

**在 singlechoice 中設定是否同意單選,不同意設為 0 便可以多選**

執行下面的 sql 語句

關於Java中Synchronized互斥範圍小結

synchronized的使用比較簡單,就是對 進行同步。但是昨天在看書的時候發現了乙個比較困惑的地方,就是類和例項物件之間的同步。有以下幾種情況 1.靜態方法間的同步即對類物件進行同步,執行緒對test1和test2方法的訪問是互斥的 static synchronized void test1 ...

ios中NSString與NSDate互轉

nsstring和nsdate互轉需要用到nsdateformatter,設定一下timezone和format即可,直接上 cpp view plain copy nsdateformatter formatter nsdateformatter alloc init nstimezone tim...

OpenCV中Mat與IplImage互轉

可以用簡單的等號賦值操作來進行型別轉換 mat img size 320,240 cv 8uc3 iplimage iplimg img 轉為iplimage結構或者用new方法獲取指標 mat mat img size 320,240 cv 8uc3 iplimage iplimg new ipl...