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 python3 | |
| def main(): | |
| print(f'{syntax error}') | |
| if __name__ == '__main__': | |
| main() | |
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 python3 | |
| import pandas as pd | |
| import numpy as np | |
| df = pd.DataFrame([[1, 2], [3, 4]]) | |
| print(df.values) | |
| # [[1 2] | |
| # [3 4]] |
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 Rscript | |
| library(dada2) | |
| library(ggplot2) | |
| pdf('results.pdf') | |
| path <- "reads/" | |
| fns <- list.files(path) |
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
| from .helper import * | |
| from genome_observatory import Genome | |
| class GenomeTest(unittest.TestCase): | |
| def setUp(self): | |
| pass | |
| def test_it_can_be_created(self): |
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 Rscript | |
| # combine the output of multiple dada2 runs into a single phyloseq experiment | |
| library(tidyverse) | |
| library(phyloseq) | |
| load_seqtab <- function(seqtab_path) { | |
| seqtab_path %>% | |
| read.csv(stringsAsFactors=FALSE) %>% |
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 python3 | |
| import numpy as np | |
| import seaborn as sb | |
| import matplotlib.pyplot as plt | |
| # https://stackoverflow.com/questions/31594549/how-do-i-change-the-figure-size-for-a-seaborn-plot | |
| dm = np.array([ | |
| [1, 2, 3], |
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
| #!/bin/bash | |
| # list number of additions, deletions and LOC by user for the last month | |
| set -euo pipefail | |
| authors=( | |
| ) | |
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
| source 'https://rubygems.org' | |
| gem 'activerecord' | |
| gem 'blamer' | |
| gem 'pg' | |
| gem 'pry' | |
| gem 'parallel' |
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
| module Userstampable | |
| extend ActiveSupport::Concern | |
| def creator | |
| User.find(self.created_by) if self.created_by | |
| end | |
| def creator=(creator) | |
| self.created_by = creator.id | |
| end |
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
| #!/bin/bash | |
| set -euo pipefail | |
| . ~/.secrets | |
| echo "provisioning ${name} on Digital Ocean" | |
| echo "token: ${DIGITAL_OCEAN_TOKEN}" | |
| docker-machine \ |