johnnySoftData/bio-embedding-finetuning
Viewer • Updated • 4.46k • 10
How to use johnnySoftData/distilroberta-ai-bio-embeddings with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("johnnySoftData/distilroberta-ai-bio-embeddings")
sentences = [
"The proposed HBI framework improves upon previous statistical methods by reducing parameter errors, resisting outliers, and avoiding biases toward overly simplistic models.",
"Computational modeling plays an important role in modern neuroscience research. Much previous research has relied on statistical methods, separately, to address two problems that are actually interdependent. First, given a particular computational model, Bayesian hierarchical techniques have been used to estimate individual variation in parameters over a population of subjects, leveraging their population-level distributions. Second, candidate models are themselves compared, and individual variation in the expressed model estimated, according to the fits of the models to each subject. The interdependence between these two problems arises because the relevant population for estimating parameters of a model depends on which other subjects express the model. Here, we propose a hierarchical Bayesian inference (HBI) framework for concurrent model comparison, parameter estimation and inference at the population level, combining previous approaches. We show that this framework has important advantages for both parameter estimation and model comparison theoretically and experimentally. The parameters estimated by the HBI show smaller errors compared to other methods. Model comparison by HBI is robust against outliers and is not biased towards overly simplistic models. Furthermore, the fully Bayesian approach of our theory enables researchers to make inference on group-level parameters by performing HBI t-test.",
"Long interspersed element type 1 (LINE-1, also L1 for short) is the only autonomously transposable element in the human genome. Its insertion into a new genomic site may disrupt the function of genes, potentially causing genetic diseases. Cells have thus evolved a battery of mechanisms to tightly control LINE-1 activity. Here, we report that a cellular antiviral protein, myxovirus resistance protein B (MxB), restricts the mobilization of LINE-1. This function of MxB requires the nuclear localization signal located at its N-terminus, its GTPase activity and its ability to form oligomers. We further found that MxB associates with LINE-1 protein ORF1p and promotes sequestration of ORF1p to G3BP1-containing cytoplasmic granules. Since knockdown of stress granule marker proteins G3BP1 or TIA1 abolishes MxB inhibition of LINE-1, we conclude that MxB engages stress granule components to effectively sequester LINE-1 proteins within the cytoplasmic granules, thus hindering LINE-1 from accessing the nucleus to complete retrotransposition. Thus, MxB protein provides one mechanism for cells to control the mobility of retroelements.",
"During meiosis, homologous chromosomes recognize each other, align, and exchange genetic information. This process requires the action of RecA-related proteins Rad51 and Dmc1 to catalyze DNA strand exchanges. The Mnd1–Hop2 complex has been shown to assist in Dmc1-dependent processes. Furthermore, higher eukaryotes possess additional RecA-related proteins, like XRCC3, which are involved in meiotic recombination. However, little is known about the functional interplay between these proteins during meiosis. We investigated the functional relationship between AtMND1, AtDMC1, AtRAD51, and AtXRCC3 during meiosis in Arabidopsis thaliana. We demonstrate the localization of AtMND1 to meiotic chromosomes, even in the absence of recombination, and show that AtMND1 loading depends exclusively on AHP2, the Arabidopsis Hop2 homolog. We provide evidence of genetic interaction between AtMND1, AtDMC1, AtRAD51, and AtXRCC3. In vitro assays suggest that this functional link is due to direct interaction of the AtMND1–AHP2 complex with AtRAD51 and AtDMC1. We show that AtDMC1 foci accumulate in the Atmnd1 mutant, but are reduced in number in Atrad51 and Atxrcc3 mutants. This study provides the first insights into the functional differences of AtRAD51 and AtXRCC3 during meiosis, demonstrating that AtXRCC3 is dispensable for AtDMC1 focus formation in an Atmnd1 mutant background, whereas AtRAD51 is not. These results clarify the functional interactions between key players in the strand exchange processes during meiotic recombination. Furthermore, they highlight a direct interaction between MND1 and RAD51 and show a functional divergence between RAD51 and XRCC3."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]This is a sentence-transformers model finetuned from sentence-transformers/all-distilroberta-v1 on the bio-embedding-finetuning dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'RobertaModel'})
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
(2): Normalize({})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("johnnySoftData/distilroberta-ai-bio-embeddings")
# Run inference
queries = [
'By providing an accessible, quantitative method to study complex cell communities, cytoNet helps researchers better understand environmental effects on cellular behavior.',
]
documents = [
'We introduce cytoNet, a cloud-based tool to characterize cell populations from microscopy images. cytoNet quantifies spatial topology and functional relationships in cell communities using principles of network science. Capturing multicellular dynamics through graph features, cytoNet also evaluates the effect of cell-cell interactions on individual cell phenotypes. We demonstrate cytoNet’s capabilities in four case studies: 1) characterizing the temporal dynamics of neural progenitor cell communities during neural differentiation, 2) identifying communities of pain-sensing neurons in vivo, 3) capturing the effect of cell community on endothelial cell morphology, and 4) investigating the effect of laminin α4 on perivascular niches in adipose tissue. The analytical framework introduced here can be used to study the dynamics of complex cell communities in a quantitative manner, leading to a deeper understanding of environmental effects on cellular behavior. The versatile, cloud-based format of cytoNet makes the image analysis framework accessible to researchers across domains.',
'Hand, foot and mouth disease caused by enterovirus 71(EV71) leads to the majority of neurological complications and death in young children. While putative inactivated vaccines are only now undergoing clinical trials, no specific treatment options exist yet. Ideally, EV71 specific intravenous immunoglobulins could be developed for targeted treatment of severe cases. To date, only a single universally neutralizing monoclonal antibody against a conserved linear epitope of VP1 has been identified. Other enteroviruses have been shown to possess major conformational neutralizing epitopes on both the VP2 and VP3 capsid proteins. Hence, we attempted to isolate such neutralizing antibodies against conformational epitopes for their potential in the treatment of infection as well as differential diagnosis and vaccine optimization. Here we describe a universal neutralizing monoclonal antibody that recognizes a conserved conformational epitope of EV71 which was mapped using escape mutants. Eight escape mutants from different subgenogroups (A, B2, B4, C2, C4) were rescued; they harbored three essential mutations either at amino acid positions 59, 62 or 67 of the VP3 protein which are all situated in the “knob” region. The escape mutant phenotype could be mimicked by incorporating these mutations into reverse genetically engineered viruses showing that P59L, A62D, A62P and E67D abolish both monoclonal antibody binding and neutralization activity. This is the first conformational neutralization epitope mapped on VP3 for EV71.',
'Coordination of growth between and within organs contributes to the generation of well-proportioned organs and functionally integrated adults. The mechanisms that help to coordinate the growth between different organs start to be unravelled. However, whether an organ is able to respond in a coordinated manner to local variations in growth caused by developmental or environmental stress and the nature of the underlying molecular mechanisms that contribute to generating well-proportioned adult organs under these circumstances remain largely unknown. By reducing the growth rates of defined territories in the developing wing primordium of Drosophila, we present evidence that the tissue responds as a whole and the adjacent cell populations decrease their growth and proliferation rates. This non-autonomous response occurs independently of where growth is affected, and it is functional all throughout development and contributes to generate well-proportioned adult structures. Strikingly, we underscore a central role of Drosophila p53 (dp53) and the apoptotic machinery in these processes. While activation of dp53 in the growth-depleted territory mediates the non-autonomous regulation of growth and proliferation rates, effector caspases have a unique role, downstream of dp53, in reducing proliferation rates in adjacent cell populations. These new findings indicate the existence of a stress response mechanism involved in the coordination of tissue growth between adjacent cell populations and that tissue size and cell cycle proliferation can be uncoupled and are independently and non-autonomously regulated by dp53.',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[ 0.7204, -0.1550, 0.0768]])
ai-job-validation, ai-bio-validation and ai-bio-testTripletEvaluator| Metric | ai-job-validation | ai-bio-validation | ai-bio-test |
|---|---|---|---|
| cosine_accuracy | 1.0 | 1.0 | 1.0 |
query, abstract, and abstract_neg| query | abstract | abstract_neg | |
|---|---|---|---|
| type | string | string | string |
| modality | text | text | text |
| details |
|
|
|
| query | abstract | abstract_neg |
|---|---|---|
Computational modeling demonstrates that eukaryotic histones can form stable homodimers, but their disordered tails generally favor the formation of heterotypic dimers. |
Histones compact and store DNA in both Eukarya and Archaea, forming heterodimers in Eukarya and homodimers in Archaea. Despite this, the folding mechanism of histones across species remains unclear. Our study addresses this gap by investigating 11 types of histone and histone-like proteins across humans, Drosophila, and Archaea through multiscale molecular dynamics (MD) simulations, complemented by NMR and circular dichroism experiments. We confirm and elaborate on the widely applied “folding upon binding” mechanism of histone dimeric proteins and report a new alternative conformation, namely, the inverted non-native dimer, which may be a thermodynamically metastable configuration. Protein sequence analysis indicated that the inverted conformation arises from the hidden ancestral head-tail sequence symmetry underlying all histone proteins, which is congruent with the previously proposed histone evolution hypotheses. Finally, to explore the potential formations of homodimers in Eukarya,... |
BackgroundLeprosy is the most frequent treatable neuromuscular disease. Yet, every year, thousands of patients develop permanent peripheral nerve damage as a result of leprosy. Since early detection and treatment of neuropathy in leprosy has strong preventive potential, we conducted a cohort study to determine which test detects this neuropathy earliest. |
Analyzing the invasive potential of Wolbachia is difficult due to significant variations in climate, release protocols, and human density across different deployment sites. |
Background The symbiotic bacterium Wolbachia is currently being trialled as a biocontrol agent in several countries to reduce dengue transmission. Wolbachia can invade and spread to infect all individuals within wild mosquito populations, but requires a high rate of maternal transmission, strong cytoplasmic incompatibility and low fitness costs in the host in order to do so. Additionally, extensive differences in climate, field-release protocols, urbanization level and human density amongst the sites where this bacterium has been deployed have limited comparison and analysis of Wolbachia’s invasive potential. |
Hair follicle stem cells (HFSCs) are multipotent cells that cycle through quiescence and activation to continuously fuel the production of hair follicles. Prior genome mapping studies had shown that tri-methylation of histone H3 at lysine 27 (H3K27me3), the chromatin mark mediated by Polycomb Repressive Complex 2 (PRC2), is dynamic between quiescent and activated HFSCs, suggesting that transcriptional changes associated with H3K27me3 might be critical for proper HFSC function. However, functional in vivo studies elucidating the role of PRC2 in adult HFSCs are lacking. In this study, by using in vivo loss-of-function studies we show that, surprisingly, PRC2 plays a non-instructive role in adult HFSCs and loss of PRC2 in HFSCs does not lead to loss of HFSC quiescence or changes in cell identity. Interestingly, RNA-seq and immunofluorescence analyses of PRC2-null quiescent HFSCs revealed upregulation of genes associated with activated state of HFSCs. Altogether, our findings show that tra... |
The efficacy of intermediate state inhibitors critically depends on the final disposition and irreversible deactivation of the inhibitor-bound target states. |
Both equilibrium and nonequilibrium factors influence the efficacy of pharmaceutical agents that target intermediate states of biochemical reactions. We explored the intermediate state inhibition of gp41, part of the HIV-1 envelope glycoprotein complex (Env) that promotes viral entry through membrane fusion. This process involves a series of gp41 conformational changes coordinated by Env interactions with cellular CD4 and a chemokine receptor. In a kinetic window between CD4 binding and membrane fusion, the N- and C-terminal regions of the gp41 ectodomain become transiently susceptible to inhibitors that disrupt Env structural transitions. In this study, we sought to identify kinetic parameters that influence the antiviral potency of two such gp41 inhibitors, C37 and 5-Helix. Employing a series of C37 and 5-Helix variants, we investigated the physical properties of gp41 inhibition, including the ability of inhibitor-bound gp41 to recover its fusion activity once inhibitor was removed f... |
Composed of hundreds of microbial species, the composition of the human gut microbiota can vary with chronic diseases underlying health disparities that disproportionally affect ethnic minorities. However, the influence of ethnicity on the gut microbiota remains largely unexplored and lacks reproducible generalizations across studies. By distilling associations between ethnicity and differences in two US-based 16S gut microbiota data sets including 1,673 individuals, we report 12 microbial genera and families that reproducibly vary by ethnicity. Interestingly, a majority of these microbial taxa, including the most heritable bacterial family, Christensenellaceae, overlap with genetically associated taxa and form co-occurring clusters linked by similar fermentative and methanogenic metabolic processes. These results demonstrate recurrent associations between specific taxa in the gut microbiota and ethnicity, providing hypotheses for examining specific members of the gut microbiota as med... |
MultipleNegativesRankingLoss with these parameters:{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false,
"directions": [
"query_to_doc"
],
"partition_mode": "joint",
"hardness_mode": null,
"hardness_strength": 0.0
}
query, abstract, and abstract_neg| query | abstract | abstract_neg | |
|---|---|---|---|
| type | string | string | string |
| modality | text | text | text |
| details |
|
|
|
| query | abstract | abstract_neg |
|---|---|---|
Mutant studies reveal that spirochetes lacking the bloodstream protein Vmp suffer reduced survival and inability to relapse, while lacking the tick protein Vtp prevents infection by tick bite. |
Borrelia hermsii, a causative agent of relapsing fever of humans in western North America, is maintained in enzootic cycles that include small mammals and the tick vector Ornithodoros hermsi. In mammals, the spirochetes repeatedly evade the host’s acquired immune response by undergoing antigenic variation of the variable major proteins (Vmps) produced on their outer surface. This mechanism prolongs spirochete circulation in blood, which increases the potential for acquisition by fast-feeding ticks and therefore perpetuation of the spirochete in nature. Antigenic variation also underlies the relapsing disease observed when humans are infected. However, most spirochetes switch off the bloodstream Vmp and produce a different outer surface protein, the variable tick protein (Vtp), during persistent infection in the tick salivary glands. Thus the production of Vmps in mammalian blood versus Vtp in ticks is a dominant feature of the spirochete’s alternating life cycle. We constructed two mut... |
With the growth of artificial intelligence (AI)-ready datasets such as the National Health and Nutrition Examination Survey (NHANES), new opportunities for data-driven research are being created, but also generating risks of data exploitation by paper mills. In this work, we focus on two areas of potential concern for AI-supported research efforts. First, we describe the production of large numbers of formulaic single-factor analyses, relating single predictors to specific health conditions, where multifactorial approaches would be more appropriate. Employing AI-supported single-factor approaches removes context from research, fails to capture interactions, avoids false discovery correction, and is an approach that can easily be adopted by paper mills. Second, we identify risks of selective data usage, such as analyzing limited date ranges or cohort subsets without clear justification, suggestive of data dredging, and post-hoc hypothesis formation. Using a systematic literature search ... |
The study examines the combined effects of food insecurity, stunting, worm infections, and physical fitness on children's selective attention and academic achievement. |
Background Socioeconomically deprived children are at increased risk of ill-health associated with sedentary behavior, malnutrition, and helminth infection. The resulting reduced physical fitness, growth retardation, and impaired cognitive abilities may impede children’s capacity to pay attention. The present study examines how socioeconomic status (SES), parasitic worm infections, stunting, food insecurity, and physical fitness are associated with selective attention and academic achievement in school-aged children. |
Molecular profiling studies have shown that 85% of canine urothelial carcinomas (UC) harbor an activating BRAF V595E mutation, which is orthologous to the V600E variant found in several human cancer subtypes. In dogs, this mutation provides both a powerful diagnostic marker and a potential therapeutic target; however, due to their relative infrequency, the remaining 15% of cases remain understudied at the molecular level. We performed whole exome sequencing analysis of 28 canine urine sediments exhibiting the characteristic DNA copy number signatures of canine UC, in which the BRAF V595E mutation was undetected (UDV595E specimens). Among these we identified 13 specimens (46%) harboring short in-frame deletions within either BRAF exon 12 (7/28 cases) or MAP2K1 exons 2 or 3 (6/28 cases). Orthologous variants occur in several human cancer subtypes and confer structural changes to the protein product that are predictive of response to different classes of small molecule MAPK pathway inhibi... |
Synthetic allergen-derived peptides can safely down-regulate allergic inflammation without the high risk of triggering mast cells found in native allergens. |
Background Synthetic peptides, representing CD4+ T cell epitopes, derived from the primary sequence of allergen molecules have been used to down-regulate allergic inflammation in sensitised individuals. Treatment of allergic diseases with peptides may offer substantial advantages over treatment with native allergen molecules because of the reduced potential for cross-linking IgE bound to the surface of mast cells and basophils. |
Nuclear size correlates with cell size, but the mechanism by which this scaling is achieved is not known. Here we screen fission yeast gene deletion mutants to identify essential factors involved in this process. Our screen has identified 25 essential factors that alter nuclear size, and our analysis has implicated RNA processing and LINC complexes in nuclear size control. This study has revealed lower and more extreme higher nuclear size phenotypes and has identified global cellular processes and specific structural nuclear components important for nuclear size control. |
MultipleNegativesRankingLoss with these parameters:{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false,
"directions": [
"query_to_doc"
],
"partition_mode": "joint",
"hardness_mode": null,
"hardness_strength": 0.0
}
per_device_train_batch_size: 16num_train_epochs: 1learning_rate: 2e-05warmup_steps: 0.1per_device_eval_batch_size: 16batch_sampler: no_duplicatesper_device_train_batch_size: 16num_train_epochs: 1max_steps: -1learning_rate: 2e-05lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_steps: 0.1optim: adamw_torch_fusedoptim_args: Noneweight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 1average_tokens_across_devices: Truemax_grad_norm: 1.0label_smoothing_factor: 0.0bf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Nonetorch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneuse_liger_kernel: Falseliger_kernel_config: Noneuse_cache: Falseneftune_noise_alpha: Nonetorch_empty_cache_steps: Noneauto_find_batch_size: Falselog_on_each_node: Truelogging_nan_inf_filter: Trueinclude_num_input_tokens_seen: nolog_level: passivelog_level_replica: warningdisable_tqdm: Falseproject: huggingfacetrackio_space_id: Nonetrackio_bucket_id: Nonetrackio_static_space_id: Noneper_device_eval_batch_size: 16prediction_loss_only: Trueeval_on_start: Falseeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Falsesave_on_each_node: Falseenable_jit_checkpoint: Falsepush_to_hub: Falsehub_private_repo: Nonehub_model_id: Nonehub_strategy: every_savehub_always_push: Falsehub_revision: Noneload_best_model_at_end: Falseignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: Noneuse_cpu: Falseaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 0dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Noneremove_unused_columns: Truelabel_names: Nonetrain_sampling_strategy: randomlength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falseddp_static_graph: Noneddp_backend: Noneddp_timeout: 1800fsdp: Nonefsdp_config: Nonedeepspeed: Nonedebug: []skip_memory_metrics: Truedo_predict: Falseresume_from_checkpoint: Nonewarmup_ratio: Nonelocal_rank: -1prompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss | Validation Loss | ai-job-validation_cosine_accuracy | ai-bio-validation_cosine_accuracy | ai-bio-test_cosine_accuracy |
|---|---|---|---|---|---|---|
| -1 | -1 | - | - | 1.0 | 1.0 | - |
| 0.4484 | 100 | 0.0088 | 0.0058 | - | 1.0 | - |
| 0.8969 | 200 | 0.0087 | 0.0060 | - | 1.0 | - |
| 1.0 | 223 | - | 0.0059 | - | 1.0 | - |
| -1 | -1 | - | - | - | 1.0 | 1.0 |
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
@misc{oord2019representationlearningcontrastivepredictive,
title={Representation Learning with Contrastive Predictive Coding},
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
year={2019},
eprint={1807.03748},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1807.03748},
}
Base model
sentence-transformers/all-distilroberta-v1