pub struct BBClient {
pub cache_folder: PathBuf,
pub bedbase_api: String,
/* private fields */
}Fields§
§cache_folder: PathBuf§bedbase_api: StringImplementations§
Source§impl BBClient
impl BBClient
Sourcepub fn new(
cache_folder: Option<PathBuf>,
bedbase_api: Option<String>,
) -> Result<Self>
pub fn new( cache_folder: Option<PathBuf>, bedbase_api: Option<String>, ) -> Result<Self>
BBClient to deal with download files from bedbase and caching them.
§Arguments
- cache_folder: path to local folder as cache of files from bedbase,
if not given it will be the environment variable
BBCLIENT_CACHE - bedbase_api: url to bedbase
Sourcepub fn load_bedset(&mut self, bedset_id: &str) -> Result<BedSet>
pub fn load_bedset(&mut self, bedset_id: &str) -> Result<BedSet>
Sourcepub fn add_local_bed_to_cache(
&mut self,
bedfile: PathBuf,
force: Option<bool>,
) -> Result<String>
pub fn add_local_bed_to_cache( &mut self, bedfile: PathBuf, force: Option<bool>, ) -> Result<String>
Sourcepub fn add_regionset_to_cache(
&mut self,
regionset: RegionSet,
force: Option<bool>,
) -> Result<String>
pub fn add_regionset_to_cache( &mut self, regionset: RegionSet, force: Option<bool>, ) -> Result<String>
Sourcepub fn add_bedset_to_cache(&mut self, bedset: BedSet) -> Result<String>
pub fn add_bedset_to_cache(&mut self, bedset: BedSet) -> Result<String>
Sourcepub fn add_local_folder_as_bedset(
&mut self,
folder_path: PathBuf,
) -> Result<String>
pub fn add_local_folder_as_bedset( &mut self, folder_path: PathBuf, ) -> Result<String>
Sourcepub fn add_local_file_as_bedset(&mut self, file_path: PathBuf) -> Result<String>
pub fn add_local_file_as_bedset(&mut self, file_path: PathBuf) -> Result<String>
Sourcepub fn remove(&mut self, identifier: &str) -> Result<()>
pub fn remove(&mut self, identifier: &str) -> Result<()>
Remove a BED file or BED set from the cache folder as well as biocfilcache (SQLite)
§Arguments
- identifier: the identifier of BED file / BED set to be removed
Auto Trait Implementations§
impl Freeze for BBClient
impl !RefUnwindSafe for BBClient
impl Send for BBClient
impl !Sync for BBClient
impl Unpin for BBClient
impl !UnwindSafe for BBClient
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more