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
| library(googlesheets4) | |
| library(googledrive) | |
| library(synapser) | |
| library(dplyr) | |
| library(readr) | |
| library(purrr) | |
| library(stringr) | |
| synLogin() |
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
| library(rvest) | |
| library(dplyr) | |
| library(stringr) | |
| plasmids <- c("Addgene_83189", "Addgene_83188", "Addgene_83187", "Addgene_83186", "Addgene_83185", "Addgene_83184", "Addgene_83183", "Addgene_83182", "Addgene_83181", "Addgene_83180", "Addgene_83179", "Addgene_83178", "Addgene_83177", "Addgene_83176", "Addgene_83175", "Addgene_83174", "Addgene_83173", "Addgene_83172", "Addgene_83171", "Addgene_83170", "Addgene_83169", "Addgene_83168", "Addgene_83167", "Addgene_83166", "Addgene_83165", "Addgene_83164", "Addgene_83163", "Addgene_83162", "Addgene_83161", "Addgene_83160", "Addgene_83159", "Addgene_83158", "Addgene_83157", "Addgene_83156", "Addgene_83155", "Addgene_83154", "Addgene_83153", "Addgene_83152", "Addgene_83151", "Addgene_83150", "Addgene_83149", "Addgene_83148", "Addgene_83147", "Addgene_83146", "Addgene_83145", "Addgene_83144", "Addgene_83143", "Addgene_83142", "Addgene_83141", "Addgene_83140", "Addgene_83139", "Addgene_83138", "Addgene_83137", "Addgene_83136", "Addgene_83135", "Addgene_83134", "Addgene_8 |
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
| library(synapser) | |
| library(tidyverse) | |
| synLogin() | |
| metadata <- synTableQuery("select createdOn, dataFileSizeBytes from syn16858331 where type = 'file'")$filepath %>% | |
| read_csv() %>% filter(!is.na(dataFileSizeBytes)) %>% | |
| mutate(cumulative_size=cumsum(dataFileSizeBytes)/1e12) %>% | |
| mutate(cumulative_count=row_number()) %>% | |
| mutate(date = createdOn/1000) %>% | |
| mutate(date = lubridate::as_date(lubridate::as_datetime(date, origin = lubridate::origin))) |
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
| library(synapser) | |
| synLogin() | |
| library(dplyr) | |
| library(readr) | |
| library(ggplot2) | |
| #Looking at my old analysis scripts (bit messy...sorry), it looks like the baseline kinome data is in a different file, the experiment | |
| #was probably done before any drug screening had taken place (hence the drug-pertubed kinome analysis was done seperately and later) | |
| #There's also no syn6. My _guess_ is that this cell line was not tested at the time. Note that Syn1/Syn5 are the isogenic CRISPR pair, |
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
| library(synapser) | |
| synLogin() | |
| ids <- synTableQuery("select id from syn23664752")$asDataFrame() | |
| md5_fail <- "syn45353855" # a known file with a bad md5 in filehandle | |
| ids_testing <- c(md5_fail, ids$id) | |
| res <- lapply(ids_testing[1:2], function(x){ |
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
| Sys.setenv( | |
| AWS_ACCESS_KEY_ID="abcd", | |
| AWS_SECRET_ACCESS_KEY="1a2b3c", | |
| AWS_SESSION_TOKEN="rlylongstring" | |
| ) | |
| library(paws) | |
| library(dplyr) | |
| library(nfportalutils) | |
| library(reticulate) |
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 | |
| # This script assumes you have a copy of files on an EC2 instance, which you have transferred to an S3 bucket, and copies still exist in both locations (local needed for md5sum) | |
| # synindex.py is from https://github.com/Sage-Bionetworks-Workflows/nf-synindex/blob/main/bin/synindex.py | |
| bucket_path=s3://nf-syn28545963-s3-bucket-18czl49o70rsc/rnaseq/ | |
| FILES=$(aws s3 ls $bucket_path | awk '{$1=$2=$3=""; print $0}' | sed 's/^[ \t]*//') | |
| LOCAL_FILES_PATH=$HOME/nerves/ | |
| pat=".+bam" | |
| for i in $FILES |
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
| library(synapser) | |
| synLogin() | |
| ids <- synTableQuery("SELECT id FROM syn11601459 where name like '%28NF%' and type = 'file'")$asDataFrame()$id | |
| sapply(ids, function(x){ | |
| foo <- synGet(x, downloadFile=F) | |
| nx <- stringr::str_replace(foo$properties$name, "28NF", "28cNF") | |
| foo$properties$name <- nx | |
| synStore(foo) |
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
| sudo yum groupinstall "Development Tools" | |
| yum install python3-devel | |
| ##per https://github.com/EGA-archive/ega-download-client, not sure if sudo is really appropriate | |
| sudo pip3 install pyega3 | |
| ##test | |
| pyega3 --help |
NewerOlder