Skip to content

Commit

Permalink
Merge pull request #21 from eQTL-Catalogue/all_assocs
Browse files Browse the repository at this point in the history
all assocs endpoint fix
  • Loading branch information
jdhayhurst authored Oct 16, 2020
2 parents 2ba9765 + d75e9ef commit a172fe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sumstats/chr/search/association_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,10 @@ def _narrow_hdf_pool(self):
self.hdfs = glob.glob(os.path.join(self.search_path, self.chr_dir) + "/" + "/file_" + str(self.chromosome) + "." + str(self.quant_method) + ".h5")
return "chr"
if all(v is None for v in [self.chromosome, self.study, self.gene, self.trait, self.tissue, self.qtl_group]):
print("all")
logger.debug("all")
self.hdfs = glob.glob(os.path.join(self.search_path, self.chr_dir) + "/" + "/file_" + str(self.chromosome) + "." + str(self.quant_method) + ".h5")
return "chr"
self.hdfs = glob.glob(os.path.join(self.search_path, self.study_dir) + "/*/file_*+" + str(self.quant_method) + ".h5")
return "study"
else:
# block for tx/exon/txrev
if self.trait and not (self.study or self.tissue):
Expand Down

0 comments on commit a172fe3

Please sign in to comment.