Skip to content

Commit

Permalink
Correct call as get_sequences_info not yet moved to base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
grosscol committed Oct 10, 2023
1 parent 99910af commit 6f49dd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bravo_api/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.13.1
2.13.2
6 changes: 3 additions & 3 deletions bravo_api/core/s3_cram_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_info(self, variant_id):
if chrom not in self.contigs:
return []
else:
return CramSource.get_sequences_info(self.variant_map, chrom, int(pos), ref, alt)
return S3CramSource.get_sequences_info(self.variant_map, chrom, int(pos), ref, alt)

def get_crai(self, variant_id, sample_no: int, sample_het: bool) -> io.BytesIO:
""" Crai for data of individual sample that is representative of given variant
Expand All @@ -75,7 +75,7 @@ def get_crai(self, variant_id, sample_no: int, sample_het: bool) -> io.BytesIO:
chrom = CramSource.normalize_contig_prefix(chrom, self.contigs_chr_prefixed)

sample_id = CramSource.lookup_sample_id(self.variant_map, chrom, pos, ref, alt,
sample_het, sample_no)
sample_het, sample_no)
logger.debug('sample_id: %s', sample_id)
cram_url = self.calc_cram_url(sample_id)

Expand All @@ -100,7 +100,7 @@ def get_cram(self, variant_id: str, sample_no: int, sample_het: bool,

# Lookup sample_id
sample_id = CramSource.lookup_sample_id(self.variant_map, chrom, pos, ref, alt,
sample_het, sample_no)
sample_het, sample_no)

# Lookup cram_path
cram_url = self.calc_cram_url(sample_id)
Expand Down

0 comments on commit 6f49dd9

Please sign in to comment.