Skip to content

Instantly share code, notes, and snippets.

View ricardoaat's full-sized avatar
😏
Working from home

Ricardo ricardoaat

😏
Working from home
View GitHub Profile
@ricardoaat
ricardoaat / connectivitySearch.sh
Last active May 5, 2022 14:39
New Connectivity Payload
curl --request POST \
--url https://www.ebi.ac.uk/unichem/beta/api/v1/compounds \
--header 'Content-Type: application/json' \
--data '{
"type": "inchikey",
"compound": "RYYVLZVUVIJVGH-UHFFFAOYSA-N"
}'
@ricardoaat
ricardoaat / connectivitySearch.sh
Last active May 5, 2022 14:39
Old connectivity search
curl --request GET \
--url https://www.ebi.ac.uk/unichem/rest/verbose_inchikey/RYYVLZVUVIJVGH-UHFFFAOYSA-N
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: default-http-backend
namespace: unichem
spec:
replicas: 1
template:
metadata:
labels:
@ricardoaat
ricardoaat / Dockerfile
Last active March 19, 2019 12:15
Commands example docker
# Select original image
FROM python:3
# Labels
LABEL maintainer="[email protected]"
# Adding the file
ADD smallapp.py /opt/
# Commands to run once instanced
@ricardoaat
ricardoaat / dataset-example.json
Last active September 10, 2018 09:35
Bioschemas dataset implementation example
{
"@context": [ "http://schema.org", "http://bioschemas.org/specifications/"],
"@type": "Dataset",
"@id": "http://www.uniprot.org/uniparc",
"name": "UniProt Archive (UniParc)",
"description": "The UniProt Archive (UniParc) is a comprehensive and non-redundant database that contains most of the publicly available protein sequences in the world. Proteins may exist in different source databases and in multiple copies in the same database. UniParc avoided such redundancy by storing each unique sequence only once and giving it a stable and unique identifier (UPI) making it possible to identify the same protein from different source databases. A UPI is never removed, changed or reassigned. UniParc contains only protein sequences. All other information about the protein must be retrieved from the source databases using the database cross-references. UniParc tracks sequence changes in the source databases and archives the history of all changes. UniParc has combined many databases into one at the
@ricardoaat
ricardoaat / metadata_fields.json
Created July 24, 2018 12:54
Crawl metadata fields
{
"schema": {
"@context": "http://schema.org",
"@type": "Dataset",
"description": "BioSamples stores and supplies descriptions and metadata about biological samples used in research and development by academia and industry. Samples are either 'reference' samples (e.g. from 1000 Genomes, HipSci, FAANG) or have been used in an assay database such as the European Nucleotide Archive (ENA) or ArrayExpress.",
"includedInDataCatalog": {
"@id": "https://www.ebi.ac.uk/biosamples",
"@type": "DataCatalog"
},
"name": "Sample collection",