This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/graphql/language/ast" | |
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This script scans a directory for files then loads the file into library | |
Sample call: | |
python galaxy_lib_sync.py [--apikey <api_key>] <api_url> /data/folder "API Imports" | |
NOTE: The upload method used requires the data library filesystem upload allow_library_path_paste | |
""" | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Sample call: | |
python synapse_galaxy_sync.py <api_key> <api_url> syn12345 | |
NOTE: The upload method used requires the data library filesystem upload allow_library_path_paste | |
""" | |
import os | |
import shutil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hypergeometric | |
func invJm(n, x, N, m float64) float64 { | |
return (1-x/(m+1))/(1-(n-1-x)/(N-1-m)); | |
} | |
func HyperQuick(n,x,N,M int64) float64 { | |
/* | |
Given N balls, M of which are black and the rest are white, | |
what is the probability C(n,x,N,M) that out of n balls selected |