pub struct ReadServiceV1Client<T> { /* private fields */ }
Expand description

The Readstore. A data store for DNA sequencing Reads.

Implementations§

source§

impl<T> ReadServiceV1Client<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

pub fn with_interceptor<F>( inner: T, interceptor: F ) -> ReadServiceV1Client<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn import_read_group_sets( &mut self, request: impl IntoRequest<ImportReadGroupSetsRequest> ) -> Result<Response<Operation>, Status>

Creates read group sets by asynchronously importing the provided information.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

The caller must have WRITE permissions to the dataset.

§Notes on BAM import
  • Tags will be converted to strings - tag types are not preserved
  • Comments (@CO) in the input file header will not be preserved
  • Original header order of references (@SQ) will not be preserved
  • Any reverse stranded unmapped reads will be reverse complemented, and their qualities (also the “BQ” and “OQ” tags, if any) will be reversed
  • Unmapped reads will be stripped of positional information (reference name and position)
source

pub async fn export_read_group_set( &mut self, request: impl IntoRequest<ExportReadGroupSetRequest> ) -> Result<Response<Operation>, Status>

Exports a read group set to a BAM file in Google Cloud Storage.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

Note that currently there may be some differences between exported BAM files and the original BAM file at the time of import. See [ImportReadGroupSets][google.genomics.v1.ReadServiceV1.ImportReadGroupSets] for caveats.

source

pub async fn search_read_group_sets( &mut self, request: impl IntoRequest<SearchReadGroupSetsRequest> ) -> Result<Response<SearchReadGroupSetsResponse>, Status>

Searches for read group sets matching the criteria.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

Implements GlobalAllianceApi.searchReadGroupSets.

source

pub async fn update_read_group_set( &mut self, request: impl IntoRequest<UpdateReadGroupSetRequest> ) -> Result<Response<ReadGroupSet>, Status>

Updates a read group set.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

This method supports patch semantics.

source

pub async fn delete_read_group_set( &mut self, request: impl IntoRequest<DeleteReadGroupSetRequest> ) -> Result<Response<()>, Status>

Deletes a read group set.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

source

pub async fn get_read_group_set( &mut self, request: impl IntoRequest<GetReadGroupSetRequest> ) -> Result<Response<ReadGroupSet>, Status>

Gets a read group set by ID.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

source

pub async fn list_coverage_buckets( &mut self, request: impl IntoRequest<ListCoverageBucketsRequest> ) -> Result<Response<ListCoverageBucketsResponse>, Status>

Lists fixed width coverage buckets for a read group set, each of which correspond to a range of a reference sequence. Each bucket summarizes coverage information across its corresponding genomic range.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

Coverage is defined as the number of reads which are aligned to a given base in the reference sequence. Coverage buckets are available at several precomputed bucket widths, enabling retrieval of various coverage ‘zoom levels’. The caller must have READ permissions for the target read group set.

source

pub async fn search_reads( &mut self, request: impl IntoRequest<SearchReadsRequest> ) -> Result<Response<SearchReadsResponse>, Status>

Gets a list of reads for one or more read group sets.

For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics

Reads search operates over a genomic coordinate space of reference sequence & position defined over the reference sequences to which the requested read group sets are aligned.

If a target positional range is specified, search returns all reads whose alignment to the reference genome overlap the range. A query which specifies only read group set IDs yields all reads in those read group sets, including unmapped reads.

All reads returned (including reads on subsequent pages) are ordered by genomic coordinate (by reference sequence, then position). Reads with equivalent genomic coordinates are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield reads in the same order across their respective streams of paginated responses.

Implements GlobalAllianceApi.searchReads.

Trait Implementations§

source§

impl<T: Clone> Clone for ReadServiceV1Client<T>

source§

fn clone(&self) -> ReadServiceV1Client<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for ReadServiceV1Client<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for ReadServiceV1Client<T>

§

impl<T> RefUnwindSafe for ReadServiceV1Client<T>
where T: RefUnwindSafe,

§

impl<T> Send for ReadServiceV1Client<T>
where T: Send,

§

impl<T> Sync for ReadServiceV1Client<T>
where T: Sync,

§

impl<T> Unpin for ReadServiceV1Client<T>
where T: Unpin,

§

impl<T> UnwindSafe for ReadServiceV1Client<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more