File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ class Af1(AnophelesDataResource):
7878 def __init__ (
7979 self ,
8080 url = None ,
81+ public_url = "https://storage.googleapis.com/vo_anoph_temp_us_central1/vo_afun_release/" ,
8182 bokeh_output_notebook = True ,
8283 results_cache = None ,
8384 log = sys .stdout ,
@@ -93,6 +94,7 @@ def __init__(
9394 ):
9495 super ().__init__ (
9596 url = url ,
97+ public_url = public_url ,
9698 config_path = CONFIG_PATH ,
9799 cohorts_analysis = cohorts_analysis ,
98100 aim_analysis = None ,
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ class Ag3(AnophelesDataResource):
138138 def __init__ (
139139 self ,
140140 url = None ,
141+ public_url = "https://storage.googleapis.com/vo_anoph_temp_us_central1/vo_agam_release/" ,
141142 bokeh_output_notebook = True ,
142143 results_cache = None ,
143144 log = sys .stdout ,
@@ -154,6 +155,7 @@ def __init__(
154155 ):
155156 super ().__init__ (
156157 url = url ,
158+ public_url = public_url ,
157159 config_path = CONFIG_PATH ,
158160 cohorts_analysis = cohorts_analysis ,
159161 aim_analysis = aim_analysis ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def __init__(
4747 self ,
4848 * ,
4949 url : str ,
50+ public_url : str ,
5051 config_path : str ,
5152 pre : bool ,
5253 major_version_number : int ,
@@ -117,6 +118,8 @@ def __init__(
117118 raise ValueError ("A value for the `url` parameter must be provided." )
118119 del url
119120
121+ self ._public_url = public_url
122+
120123 # Set up fsspec filesystem. N.B., we use fsspec here to allow for
121124 # accessing different types of storage - fsspec will automatically
122125 # 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(
3131 "reference" : {
3232 "id" : self ._genome_ref_id ,
3333 "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 } " ,
3636 "tracks" : [
3737 {
3838 "name" : "Genes" ,
3939 "type" : "annotation" ,
4040 "format" : "gff3" ,
41- "url" : f"{ self ._url } { self ._geneset_gff3_path } " ,
41+ "url" : f"{ self ._public_url } { self ._geneset_gff3_path } " ,
4242 "indexed" : False ,
4343 }
4444 ],
@@ -58,7 +58,7 @@ def _igv_site_filters_tracks(
5858 ):
5959 tracks = []
6060 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
6262 track_config = {
6363 "name" : f"Filters - { site_mask } " ,
6464 "url" : site_filters_vcf_url ,
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class AnophelesDataResource(
101101 def __init__ (
102102 self ,
103103 url ,
104+ public_url ,
104105 config_path ,
105106 cohorts_analysis : Optional [str ],
106107 aim_analysis : Optional [str ],
@@ -135,6 +136,7 @@ def __init__(
135136 ):
136137 super ().__init__ (
137138 url = url ,
139+ public_url = public_url ,
138140 config_path = config_path ,
139141 bokeh_output_notebook = bokeh_output_notebook ,
140142 log = log ,
You can’t perform that action at this time.
0 commit comments