Skip to content

Commit

Permalink
Added download urls for all motif databases
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjliu committed Jan 30, 2015
1 parent 10583a0 commit 5cddc54
Show file tree
Hide file tree
Showing 18 changed files with 15 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions region-motif-compare/region_motif_intersect.r
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# of each motif (built in rdata database) and target regions.
# Author: Jeremy liu
# Email: [email protected]
# Date: 14/07/02
# Date: 15/01/30
# Note: This script is meant to be invoked with the following command
# R --slave --vanilla -f ./region_motif_intersect.r --args <workingdir> <db> <inbed> <outtab>
# <workingdir> is working directory of galaxy installation
Expand All @@ -21,9 +21,9 @@ args <- commandArgs()
workingDir = args[7]
dbDir = concat(workingDir, "/region_motif_db")
dbCode = args[8]
if (dbCode == "t") {
motifDB = concat(dbDir, "/pouya_test_motifs.bed.bgz")
} else if (dbCode == "p") {

# Select correct database
if (dbCode == "p") {
motifDB = concat(dbDir, "/pouya_motifs.bed.bgz")
} else if (dbCode == "j") {
motifDB = concat(dbDir, "/jaspar_jolma_motifs.bed.bgz")
Expand Down
22 changes: 11 additions & 11 deletions region-motif-data-manager/data_manager/data_manager_fetch_motifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ def download_motif_databases( data_manager_dict, params, target_directory, motif

# Select download URL, file name, data table name, and path using motif_db selector variable
if motif_db == "pouya":
BGZ = ['COMPBIO URL HERE',
BGZ = ['http://compbio.med.harvard.edu/motif-enrichment/pouya_motifs_bed.bgz',
"pouya_motifs.bed.bgz", "pouya_bgz", "Pouya Encode Motifs (hg19) BGZ"]
TBI = ['COMPBIO URL HERE',
TBI = ['http://compbio.med.harvard.edu/motif-enrichment/pouya_motifs_bed.bgz.tbi',
"pouya_motifs.bed.bgz.tbi", "pouya_tbi", "Pouya Encode Motifs (hg19) TBI"]
elif motif_db == "jaspar":
BGZ = ['COMPBIO URL HERE',
"jaspar_jolma_motifs.bed.bgz", "jaspar_bgz", "Jaspar and Jolma Motifs (hg19) BGZ"]
TBI = ['COMPBIO URL HERE',
BGZ = ['http://compbio.med.harvard.edu/motif-enrichment/jaspar_jolma_motifs.bed.bgz',
"jaspar_jolma_motifs.bed.bgz", "jaspar_bgz", "Jaspar and Jolma Motifs (hg19) BGZ"]
TBI = ['http://compbio.med.harvard.edu/motif-enrichment/jaspar_jolma_motifs.bed.bgz.tbi',
"jaspar_jolma_motifs.bed.bgz.tbi", "jaspar_tbi", "Jaspar and Jolma Motifs (hg19) TBI"]
elif motif_db == "mouse":
BGZ = ['COMPBIO URL HERE',
"mouse_motifs.bed.bgz", "mouse_bgz", "Mouse Motifs (mm9) BGZ"]
TBI = ['COMPBIO URL HERE',
"mouse_motifs.bed.bgz.tbi", "mouse_tbi", "Mouse Motifs (mm9) TBI"]
BGZ = ['http://compbio.med.harvard.edu/motif-enrichment/mm9_motifs_split.bed.bgz',
"mm9_motifs_split.bed.bgz", "mouse_bgz", "Mouse Motifs (mm9) BGZ"]
TBI = ['http://compbio.med.harvard.edu/motif-enrichment/mm9_motifs_split.bed.bgz.tbi',
"mm9_motifs_split.bed.bgz.tbi", "mouse_tbi", "Mouse Motifs (mm9) TBI"]
else:
BGZ = ['http://gehlenborg.com/wp-content/uploads/motif/pouya_test_motifs.bed.bgz',
BGZ = ['http://compbio.med.harvard.edu/motif-enrichment/pouya_test_motifs.bed.bgz',
"pouya_test_motifs.bed.bgz", "test_bgz", "Test Pouya Subset (hg19) BGZ"]
TBI = ['http://gehlenborg.com/wp-content/uploads/motif/pouya_test_motifs.bed.bgz.tbi',
TBI = ['http://compbio.med.harvard.edu/motif-enrichment/pouya_test_motifs.bed.bgz.tbi',
"pouya_test_motifs.bed.bgz.tbi", "test_tbi", "Test Pouya Subset (hg19) TBI"]

# Save and add motif bgz file to motif_databases data table
Expand Down

0 comments on commit 5cddc54

Please sign in to comment.