File tree Expand file tree Collapse file tree 6 files changed +3718
-18
lines changed Expand file tree Collapse file tree 6 files changed +3718
-18
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ class Af1(AnophelesDataResource):
78
78
def __init__ (
79
79
self ,
80
80
url = None ,
81
+ public_url = "https://storage.googleapis.com/vo_anoph_temp_us_central1/vo_afun_release/" ,
81
82
bokeh_output_notebook = True ,
82
83
results_cache = None ,
83
84
log = sys .stdout ,
@@ -93,6 +94,7 @@ def __init__(
93
94
):
94
95
super ().__init__ (
95
96
url = url ,
97
+ public_url = public_url ,
96
98
config_path = CONFIG_PATH ,
97
99
cohorts_analysis = cohorts_analysis ,
98
100
aim_analysis = None ,
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ class Ag3(AnophelesDataResource):
138
138
def __init__ (
139
139
self ,
140
140
url = None ,
141
+ public_url = "https://storage.googleapis.com/vo_anoph_temp_us_central1/vo_agam_release/" ,
141
142
bokeh_output_notebook = True ,
142
143
results_cache = None ,
143
144
log = sys .stdout ,
@@ -154,6 +155,7 @@ def __init__(
154
155
):
155
156
super ().__init__ (
156
157
url = url ,
158
+ public_url = public_url ,
157
159
config_path = CONFIG_PATH ,
158
160
cohorts_analysis = cohorts_analysis ,
159
161
aim_analysis = aim_analysis ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def __init__(
47
47
self ,
48
48
* ,
49
49
url : str ,
50
+ public_url : str ,
50
51
config_path : str ,
51
52
pre : bool ,
52
53
major_version_number : int ,
@@ -117,6 +118,8 @@ def __init__(
117
118
raise ValueError ("A value for the `url` parameter must be provided." )
118
119
del url
119
120
121
+ self ._public_url = public_url
122
+
120
123
# Set up fsspec filesystem. N.B., we use fsspec here to allow for
121
124
# accessing different types of storage - fsspec will automatically
122
125
# detect which type of storage to use based on the URL provided.
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ def _igv_config(
31
31
"reference" : {
32
32
"id" : self ._genome_ref_id ,
33
33
"name" : self ._genome_ref_name ,
34
- "fastaURL" : f"{ self ._url } { self ._genome_fasta_path } " ,
35
- "indexURL" : f"{ self ._url } { self ._genome_fai_path } " ,
34
+ "fastaURL" : f"{ self ._public_url } { self ._genome_fasta_path } " ,
35
+ "indexURL" : f"{ self ._public_url } { self ._genome_fai_path } " ,
36
36
"tracks" : [
37
37
{
38
38
"name" : "Genes" ,
39
39
"type" : "annotation" ,
40
40
"format" : "gff3" ,
41
- "url" : f"{ self ._url } { self ._geneset_gff3_path } " ,
41
+ "url" : f"{ self ._public_url } { self ._geneset_gff3_path } " ,
42
42
"indexed" : False ,
43
43
}
44
44
],
@@ -58,7 +58,7 @@ def _igv_site_filters_tracks(
58
58
):
59
59
tracks = []
60
60
for site_mask in self .site_mask_ids :
61
- site_filters_vcf_url = f"{ self ._url } { self ._major_version_path } /site_filters/{ self ._site_filters_analysis } /vcf/{ site_mask } /{ contig } _sitefilters.vcf.gz" # noqa
61
+ site_filters_vcf_url = f"{ self ._public_url } { self . _major_version_path } /site_filters/ { self . _site_filters_analysis } /vcf/ { site_mask } / { contig } _sitefilters.vcf.gz" # f"{self. _url}{self._major_version_path}/site_filters/{self._site_filters_analysis}/vcf/{site_mask}/{contig}_sitefilters.vcf.gz" # noqa
62
62
track_config = {
63
63
"name" : f"Filters - { site_mask } " ,
64
64
"url" : site_filters_vcf_url ,
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class AnophelesDataResource(
101
101
def __init__ (
102
102
self ,
103
103
url ,
104
+ public_url ,
104
105
config_path ,
105
106
cohorts_analysis : Optional [str ],
106
107
aim_analysis : Optional [str ],
@@ -135,6 +136,7 @@ def __init__(
135
136
):
136
137
super ().__init__ (
137
138
url = url ,
139
+ public_url = public_url ,
138
140
config_path = config_path ,
139
141
bokeh_output_notebook = bokeh_output_notebook ,
140
142
log = log ,
You can’t perform that action at this time.
0 commit comments