Skip to content

Instantly share code, notes, and snippets.

View CS76's full-sized avatar
👨‍💻
Weniger, aber besser

Chandu Nainala CS76

👨‍💻
Weniger, aber besser
View GitHub Profile
@CS76
CS76 / binary.py
Last active December 7, 2015 13:21
cdf Datatype Extension - IPO - Galaxy
""" ipo-galaxy/lib/galaxy/datatypes/binary.py """
class Cdf( Binary ):
"""Generic CDF file datatype implementation"""
file_ext = 'cdf'
def __init__( self, **kwd ):
Binary.__init__( self, **kwd )
def sniff( self, filename ):
cdf_header = binascii.hexlify('CDF')
@CS76
CS76 / spectraljsontemplate.json
Created March 22, 2016 16:52
JSON export for MetaboLights
{
"spectrumId": "CO000215",
"mzStart": 65.0388,
"mzStop": 145.0656,
"peaks": [{
"mz": 65.0388,
"intensity": 24.0}, {
"mz": 66.0464,
"intensity": 133.0
}, {
We can't make this file beautiful and searchable because it's too large.
pdb Hchain Lchain model antigen_chain antigen_type antigen_het_name antigen_name short_header date compound organism heavy_species light_species antigen_species authors resolution method r_free r_factor scfv engineered heavy_subclass light_subclass light_ctype affinity delta_g affinity_method temperature pmid
1mhp H L 0 A protein NA integrin alpha 1, (residues 169-360) IMMUNE SYSTEM 08/20/02 Crystal structure of a chimeric alpha1 integrin I-domain in complex with the Fab fragment of a humanized neutralizing antibody RATTUS NORVEGICUS; MUS MUSCULUS mus musculus mus musculus rattus norvegicus Karpusas, M., Taylor, F., Ferrant, J., Weinreb, P., Garber, E. 2.8 X-RAY DIFFRACTION 0.272 0.213 False True IGHV3 IGKV1D Kappa None None None None None
1mhp X Y 0 B protein NA integrin alpha 1, (residues 169-360) IMMUNE SYSTEM 08/20/02 Crystal structure of a chimeric alpha1 integrin I-domain in complex with the Fab fragment of a humanized neutralizing antibody RATTUS NORVEGICUS; MUS MUSCULUS mus musculus mus musculus rattu
MetaboLightsID ChEBIId CompoundName KEGGPathwaysMAppings
MTBLC100 CHEBI:100 (-)-medicarpin Isoflavonoid biosynthesis; Biosynthesis of phenylpropanoids; Biosynthesis of secondary metabolites
MTBLC100241 CHEBI:100241 ciprofloxacin ABC transporters
MTBLC10072 CHEBI:10072 xanthurenic acid Tryptophan metabolism
MTBLC10136 CHEBI:10136 gingerol Stilbenoid, diarylheptanoid and gingerol biosynthesis; Biosynthesis of secondary metabolites
MTBLC10280 CHEBI:10280 (E,E)-alpha-farnesene Sesquiterpenoid and triterpenoid biosynthesis; Biosynthesis of secondary metabolites
MTBLC10319 CHEBI:10319 1-naphthol Metabolism of xenobiotics by cytochrome P450; Naphthalene family
MTBLC10352 CHEBI:10352 beta-amyrin Sesquiterpenoid and triterpenoid biosynthesis; Biosynthesis of terpenoids and steroids; Biosynthesis of secondary metabolites
MTBLC10360 CHEBI:10360 (R)-(+)-citronellol Geraniol degradation; Biosynthesis of terpenoids and steroids; Biosynthesis of secondary metabolites
MTBLC10418 CHEBI:10418 trans-beta-farnesene Sesquiterpeno
MetaboLightsID ChEBIId CompoundName KEGGPathwaysMappings
MTBLC100 CHEBI:100 (-)-medicarpin Isoflavonoid biosynthesis; Biosynthesis of phenylpropanoids; Biosynthesis of secondary metabolites
MTBLC100241 CHEBI:100241 ciprofloxacin ABC transporters
MTBLC10072 CHEBI:10072 xanthurenic acid Tryptophan metabolism
MTBLC10136 CHEBI:10136 gingerol Stilbenoid, diarylheptanoid and gingerol biosynthesis; Biosynthesis of secondary metabolites
MTBLC10280 CHEBI:10280 (E,E)-alpha-farnesene Sesquiterpenoid and triterpenoid biosynthesis; Biosynthesis of secondary metabolites
MTBLC10319 CHEBI:10319 1-naphthol Metabolism of xenobiotics by cytochrome P450; Naphthalene family
MTBLC10352 CHEBI:10352 beta-amyrin Sesquiterpenoid and triterpenoid biosynthesis; Biosynthesis of terpenoids and steroids; Biosynthesis of secondary metabolites
MTBLC10360 CHEBI:10360 (R)-(+)-citronellol Geraniol degradation; Biosynthesis of terpenoids and steroids; Biosynthesis of secondary metabolites
MTBLC10418 CHEBI:10418 trans-beta-farnesene Sesquiterpeno
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 5 columns, instead of 4. in line 8.
MetaboLightsID ChEBIID CompoundName KEGGPathwaysMappings MTBLSMapping
MTBLC100 CHEBI:100 (-)-medicarpin Isoflavonoid biosynthesis; Biosynthesis of phenylpropanoids; Biosynthesis of secondary metabolites -
MTBLC100241 CHEBI:100241 ciprofloxacin ABC transporters -
MTBLC10072 CHEBI:10072 xanthurenic acid Tryptophan metabolism MTBLS20 (Homo sapiens (Human)); MTBLS71 (Homo sapiens);
MTBLC10136 CHEBI:10136 gingerol Stilbenoid, diarylheptanoid and gingerol biosynthesis; Biosynthesis of secondary metabolites MTBLS49 (Trypanosoma brucei brucei);
MTBLC10280 CHEBI:10280 (E,E)-alpha-farnesene Sesquiterpenoid and triterpenoid biosynthesis; Biosynthesis of secondary metabolites -
MTBLC10319 CHEBI:10319 1-naphthol Metabolism of xenobiotics by cytochrome P450; Naphthalene family -
MTBLC10352 CHEBI:10352 beta-amyrin Sesquiterpenoid and triterpenoid biosynthesis; Biosynthesis of terpenoids and steroids; Biosynthesis of secondary metabolites MTBLS215 (reference compound);
MTBLC10360 CHEBI:10360 (R)-(+)-citronellol Geraniol d
0xc9d3E1E6e81B5bbAA34556C0e2417a0468B232D2
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-bundle</artifactId>
<version>1.5.15</version>
</dependency>
@CS76
CS76 / rpi
Created October 14, 2017 10:38
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash
@point-rpi
@xset s off
@xset s noblank
@xset -dpms
@sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
@/usr/bin/chromium-browser --noerrdialogs --kiosk http://kosmos.inpachsolutions.co.uk/#/
@CS76
CS76 / galaxy
Last active October 19, 2017 13:50
<tool id="metabolights_downloader" name="Download MetaboLights Study" version="0.1.0">
<command detect_errors="exit_code"><![CDATA[
#if $aspera_download.use_aspera == 'true'
#if $aspera_download.aspera_password
export ASPERA_SCP_PASS="$aspera_download.aspera_password";
#else
export ASPERA_SCP_PASS="Xz68YfDe";
#end if
#set $ascp_path='which ascp || which ~/.aspera/cli/bin/ascp || echo "false"'