Skip to content

Instantly share code, notes, and snippets.

View laceysanderson's full-sized avatar

Lacey-Anne Sanderson laceysanderson

View GitHub Profile
@laceysanderson
laceysanderson / PCoA.tsv
Last active January 4, 2017 03:46 — forked from mbostock/.block
PCoA Plot
name p1 p2 p3 p4 p5 p6
Rose Reber 0.626 1.016 2.195 -1.662 -0.533 1.256
Pansy Paisley -1.026 -0.272 2.083 0.688 -1.270 -1.770
Nathaniel Nace -0.182 3.786 2.599 -1.688 1.442 -0.679
Leon Leblanc 2.522 4.166 -1.782 3.723 1.867 1.240
Verla Vanish 1.997 3.576 -1.288 1.729 0.731 0.310
Shona Sigmon 1.960 3.719 -1.421 1.785 0.777 0.265
Columbus Cartee 2.057 3.908 -2.608 3.596 2.256 1.528
Sunni Stalzer -2.481 -2.642 0.234 1.690 1.484 0.501
Wes Wahl 2.487 3.942 -1.664 3.296 2.371 1.096
@laceysanderson
laceysanderson / trpdownload_api_views.php
Last active July 28, 2016 03:03
Starting work on views integration for the tripal download api
$view_name = 'tripal_feature_user_feature';
$query = array(
'uniquename' => '',
'name' => '',
'organism' => 'All',
'type_id' => 677,
);
// First programmatically pull up the view object.
$view = views_get_view($view_name);
@laceysanderson
laceysanderson / compare_functions.php
Last active August 5, 2016 03:29
Compare all functions contained in two directories.
<?php
/**
* @script
* Compare functions between two github repositories to ensure backwards compatibility.
* This script will work despite functions being reorganized into different files/order.
*/
// include the Diff class to compare our functions.
// This class can be obtained at http://code.stephenmorley.org/php/diff-implementation/
// with all rights and many thanks going to Stephen Morley.
@laceysanderson
laceysanderson / NDGenotypes_generate_massive_dataset.md
Last active October 4, 2016 20:50
ND Genotypes: Generate Genotype Dataset with genotypes stored in the genotype_call table.

A script to generate a large SNP dataset and save it directly into chado.

REQUIRES your Drupal database user to be a PostgreSQL Superuser.

This script is compatible with the ND Genotype module (2.x) method of storing genotypes in the genotype_call table. It has been designed with efficiency in mind and thus uses COPY rather than individual inserts. Furthermore, copies are done in chunks (size can be set) in order to keep file sizes in check.

Data Storage Model: https://github.com/UofS-Pulse-Binfo/nd_genotypes/wiki/How-to-Store-your-Data#method-2-custom-genotype-call-table

@laceysanderson
laceysanderson / config.yml
Created January 6, 2017 04:11
Tripal VM in progress.
---
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/ubuntu1404, geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1604
vagrant_user: vagrant
vagrant_synced_folder_default_type: nfs
# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.
vagrant_hostname: drupalvm.dev
@laceysanderson
laceysanderson / prefix_fasta.pl
Created June 6, 2017 20:11
Prefix all records names in a FASTA file.
#!/user/bin/perl -w
use strict;
use warnings;
# Purpose: Prefix all records names in a FASTA file.
# Arguements:
# 1. Input FASTA file
# 2. Output FASTA File
# 3. Prefix that you would like added to all the FASTA records.
@laceysanderson
laceysanderson / benchmark_nd_genotypes.drush.php
Last active July 14, 2017 00:43
Run benchmarking tests for ND Genotypes Tripal Module.
<?php
#!/usr/bin/env drush
/**
* Tests 3 queries on the current Drupal/Tripal site and reports the results.
*
* ALL OPTIONS ARE REQUIRED.
* SCRIPT TAKES 4hrs to RUN.
*
* @option --germplasm
* A comma-seperated list of germplasm_ids to use in the queries.
@laceysanderson
laceysanderson / benchmark_analyzedphenotypes.drush.php
Created July 18, 2017 19:25
Run benchmarking tests for Analyzed Phenotypes Tripal Module.
<?php
#!/usr/bin/env drush
/**
* Tests 3 queries on the current Drupal/Tripal site and reports the results.
*
* ALL OPTIONS ARE REQUIRED.
* SCRIPT TAKES 4hrs to RUN.
*
* @option --trait_id
* The primary key for the trait to test.
@laceysanderson
laceysanderson / checklist.md
Last active March 10, 2019 15:24
Tripal Module Rating PR Checklist
  1. Check Repository for:
  • License (BRONZE)
  • Public Release (BRONZE)
  • Latest releases should follow 7.x-version format (SILVER)
  • an includes/TripalFields directory (SILVER)
  • an includes/TripalImporter directory (GOLD)
  • a tests directory (GOLD)
  1. Check the README/docs for:
  • Installation Instructions (BRONZE)
  • Admin/Usage Instructions (BRONZE)
@laceysanderson
laceysanderson / README.md
Last active May 30, 2019 19:40
Tripal Module Rating PR

This GIST provides a template for PRs requesting Tripal Extension Module Badges. Add Yes, No (with couple word explanation) or Not appicable (with couple word explanation) under status for each requirement. Making the status a link to an example of how this requirement is fullfilled is recommended but not required.

This module rating system is meant to aid Tripal Site Administrators in choosing extension modules for their site. It is also meant to guide developers in module best practices and celebrate modules which achieve these goals.

We encourage Tripal module developers to rate their modules. This can be done by Adding your Module to this list!