Skip to content

Instantly share code, notes, and snippets.

package pedcbimport.pipelines.wes
import utils.Implicits.ProductImplicits
import utils.Implicits.StringImplicits
import utils.Implicits.SeqImplicits
import WesRaw.Cosmic._
// ===========================================================================
object Wes {
package nebulis.transformation
// ===========================================================================
object Example extends App { // extending App so the body runs as a main() method
val results: Iterable[OutputHybrid] = // "turn a stream of input sample and mutations into a stream of 'hybrid'"
OutputHybrid.transform(
samples = ???, // assume actual data
mutations = ???)
---
openapi: "3.0.0"
info:
version: "0.1.0"
title: "grinop"
servers:
- url: "https://localhost:9000/api/v0"
paths:
/auth/signin:
post:
# notes:
# - use 4 spaces for display tab
# - repeated tabs get trimmed to one
# - anything beyond ' #' is trimmed (including marker), so are empty lines (post line-trim)
# - \N stand for no value (eg NULL in SQL)
# - PATID, ENCOUTERID and other IDs are inferred from the _id field, including redundant fields
===========================================================================
DEMOGRAPHIC
{ "stage": "4" }
{ "$eq": { "mycn_status":"amplified" }}
{ "$not": { "stage": 4 }}
{ "$not": { "$lt": { "stage": 4 }}}
{ "$not": { "$not": { "stage": "4" }}}
{ "$not": { "$not": { "$lt": { "stage": 4 }}}}
{ "risk": ["high","low"] }
{ "$nin": { "risk": ["high","low"] }}
{ "$not": { "$in": { "risk": ["high","low"] }}}
{ "$or": [{ "$eq": { "mycn_status":"amplified" }},{ "stage": "4" } ] }
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
package minimal
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
object Bindings {
// ===========================================================================
// ReactDOM
package minimal
import org.scalajs.dom
import scala.scalajs.js
object App {
def main(args: Array[String]): Unit = {
// prints to console as expected
object MediumArticle extends App { // reproducing example from https://medium.com/@thijser/doing-cool-data-science-in-java-how-3-dataframe-libraries-stack-up-5e6ccb7b437#
import gallia._ // see https://github.com/galliaproject/gallia-core/blob/init/README.md#dependencies
// ---------------------------------------------------------------------------
/*
for reference, pandas way provided in the article:
data = pd.read_csv('urb_cpop1_1_Data.csv')
filtered = data.drop(data[data.Value == ":"].index)
filtered['key'] = filtered['CITIES'] + ':' + filtered['INDIC_UR']