This file contains 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
example minid: ark:/57799/b9z705 | |
TOMBSTONEd minid used in package: ark:/57799/b9j69h | |
TOPMED parsed annotation chr 2 minid: minid:b9g69w |
This file contains 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
# goal: mint minids for freeze 5 annotation in exchange area. | |
# requires digest and minidtools libraries | |
# computes checksum using local copy of the file | |
localPath <- | |
paste0("/projects/topmed/variant_annotation/freeze_5/database/v0/", | |
"parsed_files/2_snv.tsv.gz") | |
# use location on exchange area for the location metadata in the minid |
This file contains 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
library(tidyverse) | |
parsed_snp_file <- "parsed_snp.tsv" | |
parsed_indel_file <- "parsed_indel.tsv" | |
unit_defs_file <- "feature_bounds_20170804.tsv" | |
snps <- read_tsv(parsed_snp_file, comment = "#") | |
indels <- read_tsv(parsed_indel_file, comment = "#") |
This file contains 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
print("hello!") |
This file contains 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
context("test_testthat - unit tests") | |
test_that("test_return_true returns TRUE", { | |
expect_true(return_true()) | |
}) |
This file contains 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
return_true <- function(){ | |
return(TRUE) | |
} |
This file contains 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
# don't commit files that may have passwords | |
.env | |
*.cnf | |
# History files | |
.Rhistory | |
.Rapp.history | |
# Session Data files | |
.RData |
This file contains 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
print("Hi from github :)") | |
print("Do you have randomForest?") | |
# do we want specific versions? | |
if(!require(randomForest, quiet = TRUE)){ | |
install.packages("randomForest", quiet=TRUE) | |
suppressWarnings(library(randomForest)) | |
} |
This file contains 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
metaDataOnly <- synGet(synapseId, downloadFile=F) | |
activity_name <- "RNA-seq Count File Merging" | |
input_files <- c("syn2875347") | |
code_files <- list(list(name = "merge_mouse_tau_rnaseq_counts.R", | |
url = "https://github.com/jaeddy/ampSynapseProjects/blob/v0.1-alpha/dataEnablement/R/merge_mouse_tau_rnaseq_counts.R", | |
wasExecuted = T), | |
list(name = "merge_count_files.R", | |
url = "https://github.com/jaeddy/ampSynapseProjects/blob/v0.1-alpha/dataEnablement/R/merge_count_files.R", | |
wasExecuted = T)) |