pub struct GwasClient { /* private fields */ }Expand description
Client for GWAS Catalog (EBI)
Implementations§
Source§impl GwasClient
impl GwasClient
Sourcepub async fn search_associations(
&self,
trait_name: &str,
) -> Result<Vec<SemanticVector>>
pub async fn search_associations( &self, trait_name: &str, ) -> Result<Vec<SemanticVector>>
Search trait-gene associations
§Arguments
trait_name- Disease or trait name (e.g., “diabetes”, “height”)
Sourcepub async fn get_study(&self, study_id: &str) -> Result<Option<SemanticVector>>
pub async fn get_study(&self, study_id: &str) -> Result<Option<SemanticVector>>
Get study details
Sourcepub async fn search_by_gene(&self, gene: &str) -> Result<Vec<SemanticVector>>
pub async fn search_by_gene(&self, gene: &str) -> Result<Vec<SemanticVector>>
Search associations by gene
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GwasClient
impl !RefUnwindSafe for GwasClient
impl Send for GwasClient
impl Sync for GwasClient
impl Unpin for GwasClient
impl !UnwindSafe for GwasClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more