content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
# function to get reads from list of fragments get_reads = function(tFrags, readlen, paired = TRUE){ # when fragments are shorter than reads: isShort = (width(tFrags) <= readlen) isLong = !isShort if(paired) { if(sum(isShort) > 0){ x = tFrags[isShort] names(x) = p...
/polyester/R/get_reads.R
no_license
jtleek/ballgown
R
false
false
1,518
r
# function to get reads from list of fragments get_reads = function(tFrags, readlen, paired = TRUE){ # when fragments are shorter than reads: isShort = (width(tFrags) <= readlen) isLong = !isShort if(paired) { if(sum(isShort) > 0){ x = tFrags[isShort] names(x) = p...
library(ISLR) library(ggplot2) library(caret) data("Wage") summary(Wage) inTrain <- createDataPartition(y=Wage$wage, p = 0.75, list = F) training <- Wage[inTrain, ] testing <- Wage[-inTrain,] dim(training) dim(testing) featurePlot(x = training[,c("age", "education", "jobclass")], y=training$wage, plot = "pairs")
/wage.R
no_license
vimalmshetty/PML
R
false
false
316
r
library(ISLR) library(ggplot2) library(caret) data("Wage") summary(Wage) inTrain <- createDataPartition(y=Wage$wage, p = 0.75, list = F) training <- Wage[inTrain, ] testing <- Wage[-inTrain,] dim(training) dim(testing) featurePlot(x = training[,c("age", "education", "jobclass")], y=training$wage, plot = "pairs")
differential <- function(designTable, dataMat, covarVec, writingDir, robustFlag,...){ require(limma) FixedDataMatrix<-dataMat[, colnames(dataMat) %in% rownames(designTable)] #create file name for data output DataType = strsplit(rownames(FixedDataMatrix)[1], split=":")[[1]][3] targetPheno <- unlis...
/src/differential.R
no_license
Gibbsdavidl/gamcop_pipeline
R
false
false
6,253
r
differential <- function(designTable, dataMat, covarVec, writingDir, robustFlag,...){ require(limma) FixedDataMatrix<-dataMat[, colnames(dataMat) %in% rownames(designTable)] #create file name for data output DataType = strsplit(rownames(FixedDataMatrix)[1], split=":")[[1]][3] targetPheno <- unlis...
## attempting to visualise data with % of toal rather than count political_party_df_2 <- ggplot(data=elec_imm_1yo_51) + geom_bar(aes(x = elec_imm_1yo_51$`pc_immun`,y=((..count..)/sum(..count..))) + scale_y_continuous(labels = scales::percent())+ theme(axis.text.x = element_text(size=6,angle = 90, hjust = 1)) + facet_wr...
/src/Attempted Electoal Viz 1.R
no_license
ognpa/Vaccination
R
false
false
463
r
## attempting to visualise data with % of toal rather than count political_party_df_2 <- ggplot(data=elec_imm_1yo_51) + geom_bar(aes(x = elec_imm_1yo_51$`pc_immun`,y=((..count..)/sum(..count..))) + scale_y_continuous(labels = scales::percent())+ theme(axis.text.x = element_text(size=6,angle = 90, hjust = 1)) + facet_wr...
\name{plotMeans} \alias{plotMeans} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot covariate means along the frontier. } \description{ \code{plotMeans()} plots means along the frontier. } \usage{ plotMeans(frontier.object, xlab = 'Number of Observations Pruned', main...
/man/plotMeans.Rd
no_license
DanielHadley/MatchingFrontier
R
false
false
1,953
rd
\name{plotMeans} \alias{plotMeans} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot covariate means along the frontier. } \description{ \code{plotMeans()} plots means along the frontier. } \usage{ plotMeans(frontier.object, xlab = 'Number of Observations Pruned', main...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/finalZ.R \name{SummaryClassLabel} \alias{SummaryClassLabel} \title{{Local FDR method for summarizing class labels}} \usage{ SummaryClassLabel(net,test.stat,zTrack,method=c("MajorVote","LocfdrControl"), plot=FALSE,nburn=50,nskip=2,locfdr.alpha...
/man/SummaryClassLabel.Rd
no_license
cran/BANFF
R
false
true
1,288
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/finalZ.R \name{SummaryClassLabel} \alias{SummaryClassLabel} \title{{Local FDR method for summarizing class labels}} \usage{ SummaryClassLabel(net,test.stat,zTrack,method=c("MajorVote","LocfdrControl"), plot=FALSE,nburn=50,nskip=2,locfdr.alpha...
webpackJsonp([1],{"+27R":function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var o={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disani...
/api/Web/main.016dad94ba51d0c9c03c.bundle.js
no_license
syed-perisync/maxbrands-p1
R
false
true
3,806,899
js
webpackJsonp([1],{"+27R":function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var o={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disani...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/desc05Moran.R \name{extractMoran} \alias{extractMoran} \title{Moran Autocorrelation Descriptor} \usage{ extractMoran(x, props = c("CIDH920105", "BHAR880101", "CHAM820101", "CHAM820102", "CHOC760101", "BIGC670101", "CHAM810101", "DAY...
/man/extractMoran.Rd
no_license
Jmonee/protr
R
false
false
5,009
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/desc05Moran.R \name{extractMoran} \alias{extractMoran} \title{Moran Autocorrelation Descriptor} \usage{ extractMoran(x, props = c("CIDH920105", "BHAR880101", "CHAM820101", "CHAM820102", "CHOC760101", "BIGC670101", "CHAM810101", "DAY...
library(dashBootstrapComponents) library(dashHtmlComponents) toast <- htmlDiv( list( dbcButton( "Open toast", id = "positioned-toast-toggle", n_clicks = 0, color = "primary" ), dbcToast( "This toast is placed in the top right", id = "positioned-toast", header = "Positi...
/docs/components_page/components/toast/position.R
permissive
tcbegley/dash-bootstrap-components
R
false
false
720
r
library(dashBootstrapComponents) library(dashHtmlComponents) toast <- htmlDiv( list( dbcButton( "Open toast", id = "positioned-toast-toggle", n_clicks = 0, color = "primary" ), dbcToast( "This toast is placed in the top right", id = "positioned-toast", header = "Positi...
pos = 0 pos_virus = 0 for (i in 1:100000){ if(runif(1)<=.15){ if(runif(1)<=.95){ pos = pos+1 pos_virus = pos_virus + 1 }} else{ if(runif(1)<0.02) pos = pos+1 } } prob_of_having_disease = pos_virus/pos # different solution # different solution # different solution pos = 0 for (i ...
/bayes_net_3.R
no_license
sumanjyoti/R_programming
R
false
false
895
r
pos = 0 pos_virus = 0 for (i in 1:100000){ if(runif(1)<=.15){ if(runif(1)<=.95){ pos = pos+1 pos_virus = pos_virus + 1 }} else{ if(runif(1)<0.02) pos = pos+1 } } prob_of_having_disease = pos_virus/pos # different solution # different solution # different solution pos = 0 for (i ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/collectBillData.R \name{collectSubject} \alias{collectSubject} \title{Collecting Subject Information from a \code{scrapeBill} Object.} \usage{ collectSubject(x, single = TRUE, progress = FALSE) } \arguments{ \item{x}{A (or A list of) \code{sc...
/man/collectSubject.Rd
no_license
gentok/congressbills
R
false
true
1,577
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/collectBillData.R \name{collectSubject} \alias{collectSubject} \title{Collecting Subject Information from a \code{scrapeBill} Object.} \usage{ collectSubject(x, single = TRUE, progress = FALSE) } \arguments{ \item{x}{A (or A list of) \code{sc...
\name{sigmaMat} \alias{sigmaMat} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculation of covariance matrix for the limit process on a grid } \description{ This function calculates the covariance matrix of the limit process in Leucht, Mueller and Kustosz (2014) for a given grid. } \usage{ s...
/man/sigmaMat.Rd
no_license
SimoneHermann/rexpar
R
false
false
1,519
rd
\name{sigmaMat} \alias{sigmaMat} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculation of covariance matrix for the limit process on a grid } \description{ This function calculates the covariance matrix of the limit process in Leucht, Mueller and Kustosz (2014) for a given grid. } \usage{ s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SpeciesGeneMat.Bl.R \name{SpeciesGeneMat.Bl} \alias{SpeciesGeneMat.Bl} \title{Correct gene nomenclature and build a species-by-gene matrix} \usage{ SpeciesGeneMat.Bl( input = NULL, output = NULL, NCBI.Trash = NULL, BOLD.Trash = NULL )...
/man/SpeciesGeneMat.Bl.Rd
no_license
dvdeme/regPhylo
R
false
true
4,453
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SpeciesGeneMat.Bl.R \name{SpeciesGeneMat.Bl} \alias{SpeciesGeneMat.Bl} \title{Correct gene nomenclature and build a species-by-gene matrix} \usage{ SpeciesGeneMat.Bl( input = NULL, output = NULL, NCBI.Trash = NULL, BOLD.Trash = NULL )...
# Qiu 2009 Functions get_y <- function(x, boundaries, sum){ int <- findInterval(x, boundaries) tab <- tabulate(int + 1, nbins=length(boundaries) + 1) # m*f emp_probs <- tab/length(x) #f0 return(emp_probs) } get_exact <- function(num_bps){ exact_probs <- rep(1/num_bps, num_bps) return(exact_probs) } get...
/functions_qiu.R
no_license
morndorff/GoF-Test
R
false
false
21,126
r
# Qiu 2009 Functions get_y <- function(x, boundaries, sum){ int <- findInterval(x, boundaries) tab <- tabulate(int + 1, nbins=length(boundaries) + 1) # m*f emp_probs <- tab/length(x) #f0 return(emp_probs) } get_exact <- function(num_bps){ exact_probs <- rep(1/num_bps, num_bps) return(exact_probs) } get...
par_org <- par(ask=TRUE) library(grid) gl <- bezierArrowGradient(x=c(.2, .5, .5, .8), y=c(.2, .2, .8, .8), width=unit(10, "mm"), arrow = list(base=unit(.1, "npc"), length = unit(.1, "npc")), ...
/inst/examples/bezierArrowGradient_example.R
no_license
Holzhauer/Gmisc
R
false
false
1,119
r
par_org <- par(ask=TRUE) library(grid) gl <- bezierArrowGradient(x=c(.2, .5, .5, .8), y=c(.2, .2, .8, .8), width=unit(10, "mm"), arrow = list(base=unit(.1, "npc"), length = unit(.1, "npc")), ...
#' c_sd() computes the cluster standard deviation for given variable, and a given clustering variable #' #' @param x a numeric vector of a single variable #' #' @return a numeric vector #' #' @details simple wrapper for `ave(variable, group)` function, to estimate cluster standard deviations #' #' @examples #' example_...
/R/c_sd.R
no_license
dacarras/r4sda
R
false
false
578
r
#' c_sd() computes the cluster standard deviation for given variable, and a given clustering variable #' #' @param x a numeric vector of a single variable #' #' @return a numeric vector #' #' @details simple wrapper for `ave(variable, group)` function, to estimate cluster standard deviations #' #' @examples #' example_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculateJCCScores.R \name{calculateJCCScores} \alias{calculateJCCScores} \title{Calculate scaled coverages and JCC scores} \usage{ calculateJCCScores(junctionCovs, geneQuants, mmFracThreshold = 0.25) } \arguments{ \item{junctionCovs}{A \code...
/man/calculateJCCScores.Rd
no_license
csoneson/jcc
R
false
true
3,570
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculateJCCScores.R \name{calculateJCCScores} \alias{calculateJCCScores} \title{Calculate scaled coverages and JCC scores} \usage{ calculateJCCScores(junctionCovs, geneQuants, mmFracThreshold = 0.25) } \arguments{ \item{junctionCovs}{A \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modules.R \name{TransformersTokenizer} \alias{TransformersTokenizer} \title{TransformersTokenizer} \usage{ TransformersTokenizer(tokenizer) } \arguments{ \item{tokenizer}{tokenizer object} } \value{ None } \description{ TransformersTokenizer ...
/man/TransformersTokenizer.Rd
permissive
han-tun/fastai
R
false
true
322
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modules.R \name{TransformersTokenizer} \alias{TransformersTokenizer} \title{TransformersTokenizer} \usage{ TransformersTokenizer(tokenizer) } \arguments{ \item{tokenizer}{tokenizer object} } \value{ None } \description{ TransformersTokenizer ...
require(Rcongas) require(tidyverse) library(cowplot) # Final model fit fit = Rcongas::breast_xeno_10x_small_segments_total_CN_norm input_raw_counts_genes = Rcongas::get_input_raw_data(fit) # DE analysis -- DESeq2 NON funziona # fit = Rcongas::calculate_DE( # x = fit, # input = input_raw_counts_genes, # clone1 =...
/breast_xeno_10x/plots_main_text.R
no_license
caravagnalab/rcongas_test
R
false
false
4,794
r
require(Rcongas) require(tidyverse) library(cowplot) # Final model fit fit = Rcongas::breast_xeno_10x_small_segments_total_CN_norm input_raw_counts_genes = Rcongas::get_input_raw_data(fit) # DE analysis -- DESeq2 NON funziona # fit = Rcongas::calculate_DE( # x = fit, # input = input_raw_counts_genes, # clone1 =...
#### args <- c("/Sample_data/sample_purity.txt","/intermediate/snv_input.txt", "/intermediate/middle/multiplicity.txt", "/Sample_data/Res/") suppressMessages(library(dummies)) args <- commandArgs(trailingOnly=TRUE) estimated_purity <- unlist(lapply(1:4, function(x){ suma <- read.table(sprintf("%s/semifinal/res%d/subc...
/output_results.R
no_license
smc-het-challenge/clip
R
false
false
2,093
r
#### args <- c("/Sample_data/sample_purity.txt","/intermediate/snv_input.txt", "/intermediate/middle/multiplicity.txt", "/Sample_data/Res/") suppressMessages(library(dummies)) args <- commandArgs(trailingOnly=TRUE) estimated_purity <- unlist(lapply(1:4, function(x){ suma <- read.table(sprintf("%s/semifinal/res%d/subc...
## solve inverse of a matrix, use cache if available ## makeCacheMatrix returns a function list based on input matrix x makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinverse <- function(inver...
/cachematrix.R
no_license
shj37/ProgrammingAssignment2
R
false
false
826
r
## solve inverse of a matrix, use cache if available ## makeCacheMatrix returns a function list based on input matrix x makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinverse <- function(inver...
/code/Script_wine.R
no_license
PilarFernandezF/calidad_del_vino_verde
R
false
false
5,547
r
## ------------------------------------------------------------------------ set.seed(123) library(EnrichR) # To check if your the current species if supported !!! showData() showensemble() showplant() # Make the GO and KEGG Pathway data for your analysis # find suitable species name by using showensemble() ...
/vignettes/Enrichr.R
no_license
hurlab/EnrichR
R
false
false
2,306
r
## ------------------------------------------------------------------------ set.seed(123) library(EnrichR) # To check if your the current species if supported !!! showData() showensemble() showplant() # Make the GO and KEGG Pathway data for your analysis # find suitable species name by using showensemble() ...
##hatgame ? #saralamba@gmail.com #put each individual randomly in a square unit genPop <- function(Npop, add.infected = TRUE, id = NULL){ posx <- runif(Npop) posy <- runif(Npop) ids <- 1:Npop state <- rep(0,Npop) pop <- data.frame(ids=ids, posx=posx,posy=posy,state=state) if(add.infected==TRUE) pop <- a...
/SIRsim.R
permissive
slphyx/SIRsim
R
false
false
5,608
r
##hatgame ? #saralamba@gmail.com #put each individual randomly in a square unit genPop <- function(Npop, add.infected = TRUE, id = NULL){ posx <- runif(Npop) posy <- runif(Npop) ids <- 1:Npop state <- rep(0,Npop) pop <- data.frame(ids=ids, posx=posx,posy=posy,state=state) if(add.infected==TRUE) pop <- a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content_objects.R \name{AccountsCustomBatchResponse} \alias{AccountsCustomBatchResponse} \title{AccountsCustomBatchResponse Object} \usage{ AccountsCustomBatchResponse(entries = NULL) } \arguments{ \item{entries}{The result of the execution o...
/googlecontentv2.auto/man/AccountsCustomBatchResponse.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
536
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content_objects.R \name{AccountsCustomBatchResponse} \alias{AccountsCustomBatchResponse} \title{AccountsCustomBatchResponse Object} \usage{ AccountsCustomBatchResponse(entries = NULL) } \arguments{ \item{entries}{The result of the execution o...
# read the crime dataset crime <- read.csv("garda_stations.csv", header=TRUE) str(crime) # converting integer type columns to numerical in order to add tonumeric<- 6:167 crime[tonumeric] <- lapply(crime[tonumeric], as.numeric) str(crime) # creating new columns for the crime dataset crime$totalcrime2004 ...
/CA3-final_with_function.R
no_license
Sandeep23041996/CA3
R
false
false
10,114
r
# read the crime dataset crime <- read.csv("garda_stations.csv", header=TRUE) str(crime) # converting integer type columns to numerical in order to add tonumeric<- 6:167 crime[tonumeric] <- lapply(crime[tonumeric], as.numeric) str(crime) # creating new columns for the crime dataset crime$totalcrime2004 ...
library(rsconnect) #since we have raw data that's big, only deploy whats needed deployApp(appFileManifest = "appFileManifestForDeployment.txt", forceUpdate=T)
/deployApp.R
no_license
derekhoward/PolygenicSaundersSingleCell
R
false
false
159
r
library(rsconnect) #since we have raw data that's big, only deploy whats needed deployApp(appFileManifest = "appFileManifestForDeployment.txt", forceUpdate=T)
library(vcdExtra) ### Name: zero.test ### Title: Score test for zero inflation in Poisson data ### Aliases: zero.test ### Keywords: htest ### ** Examples # synthetic tests zero.test(rpois(100, 1)) zero.test(rpois(100, 5)) # add some extra zeros zero.test(c(rep(0, 20), rpois(100, 5))) # Articles by Phd candidates d...
/data/genthat_extracted_code/vcdExtra/examples/zero.test.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
440
r
library(vcdExtra) ### Name: zero.test ### Title: Score test for zero inflation in Poisson data ### Aliases: zero.test ### Keywords: htest ### ** Examples # synthetic tests zero.test(rpois(100, 1)) zero.test(rpois(100, 5)) # add some extra zeros zero.test(c(rep(0, 20), rpois(100, 5))) # Articles by Phd candidates d...
## These functions enable the user to cache the inverse of a matrix ## to save recalculation if the matrix has not changed. ## makeCacheMatrix returns a list of functions that allows the user to ## set a matrix and create the cache varible 'inv' to null, ## get the current matrix, set the inverse to the cac...
/cachematrix.R
no_license
KarenLezon/ProgrammingAssignment2
R
false
false
1,591
r
## These functions enable the user to cache the inverse of a matrix ## to save recalculation if the matrix has not changed. ## makeCacheMatrix returns a list of functions that allows the user to ## set a matrix and create the cache varible 'inv' to null, ## get the current matrix, set the inverse to the cac...
library(RPostgreSQL) drv<-dbDriver("PostgreSQL") con<-dbConnect(drv, dbname="rdm", host="localhost", user="postgres", password="postgres") dbListTables(con) myTable<-dbGetQuery(con, "SELECT rdmdata.squid, rdmdata.element_mammal, rdmdata.bone_side, rdmdata.foramen FROM rdmdata;") View(myTable)
/R DB Connect.R
no_license
selagle/RDM-data-scripts
R
false
false
294
r
library(RPostgreSQL) drv<-dbDriver("PostgreSQL") con<-dbConnect(drv, dbname="rdm", host="localhost", user="postgres", password="postgres") dbListTables(con) myTable<-dbGetQuery(con, "SELECT rdmdata.squid, rdmdata.element_mammal, rdmdata.bone_side, rdmdata.foramen FROM rdmdata;") View(myTable)
testlist <- list(n = -1560281088L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
/breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962354-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
99
r
testlist <- list(n = -1560281088L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
library(cherry) load("sets.RData") library(cherry) library(igraph) # dag <- construct(cellprolifgenessets) # construct a topologically sorted dag from sets: construct_sorted_dag <- function(set){ dag = construct(set) g = graph_from_adj_list(dag@children, mode='out') indices = topo_sort(g,mode='out') set = dag@set...
/GO/utils.R
no_license
tansey/DAGGER
R
false
false
4,918
r
library(cherry) load("sets.RData") library(cherry) library(igraph) # dag <- construct(cellprolifgenessets) # construct a topologically sorted dag from sets: construct_sorted_dag <- function(set){ dag = construct(set) g = graph_from_adj_list(dag@children, mode='out') indices = topo_sort(g,mode='out') set = dag@set...
# Packages install.packages(c('tidyverse','vtable')) # One at a time! library(tidyverse) # Getting data # From packages data(storms, package = 'dplyr') # From files # d <- read_csv('exampledata.csv') # R objects a <- 1 b <- 'hello' # Vectors a <- 11:20 a[1] b <- c(1, 1, 4, 4, 2, 3, 6) # Logicals b == 1 sum(b == 1) ...
/Lecture_04_R_Walkthrough.R
no_license
LanetK/DataCommSlides
R
false
false
1,113
r
# Packages install.packages(c('tidyverse','vtable')) # One at a time! library(tidyverse) # Getting data # From packages data(storms, package = 'dplyr') # From files # d <- read_csv('exampledata.csv') # R objects a <- 1 b <- 'hello' # Vectors a <- 11:20 a[1] b <- c(1, 1, 4, 4, 2, 3, 6) # Logicals b == 1 sum(b == 1) ...
library(ape) testtree <- read.tree("10501_2.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10501_2_unrooted.txt")
/codeml_files/newick_trees_processed_and_cleaned/10501_2/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("10501_2.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10501_2_unrooted.txt")
###################### # This script creates the PCA-based plot presented in Figure 2b and Supplementary Information 7. # Date: 11/24/2020 # Author: Francis Denisse McLean-Rodriguez ###################### #load packages, set working directory, import .vcf and .csv files and create genind object and data frame based on...
/scripts/Fig2b_SI7_PCA.R
no_license
mdellh2o/morelosMAIZE
R
false
false
5,906
r
###################### # This script creates the PCA-based plot presented in Figure 2b and Supplementary Information 7. # Date: 11/24/2020 # Author: Francis Denisse McLean-Rodriguez ###################### #load packages, set working directory, import .vcf and .csv files and create genind object and data frame based on...
## GENERAL INTRODUCTION AND EXPLAINATION OF THIS SCRIPT # The function below interpolates the air pollution in the atmosphere for the extent of california. # The function returns a rasterstack and a SpatialPointDataFrame. The rasterstack contains 82 layers. # Each layer in the rasterstack is an interpolation for a sp...
/R/air_pollution.R
no_license
baswiltenburg/GeoScripting_Final_Assignment
R
false
false
5,948
r
## GENERAL INTRODUCTION AND EXPLAINATION OF THIS SCRIPT # The function below interpolates the air pollution in the atmosphere for the extent of california. # The function returns a rasterstack and a SpatialPointDataFrame. The rasterstack contains 82 layers. # Each layer in the rasterstack is an interpolation for a sp...
### practice_3 # 基本變數資訊 person.name <- c("Jiyuian", "Shawnroom", "Bigmoumou") person.sex <- c("F", "M", "M") person.id <- c("jiyuian520", "shawnn520", "moumou123") person.days <- c(201, 37, 99) # 使用data.frame(),並以上述4個向量建立person.df person.df <- data.frame(person.name, person.sex, person.id, person.days) # 查看person.df...
/week_01/course_1/practice_3.R
no_license
x666772/CSX_Lyhs
R
false
false
1,002
r
### practice_3 # 基本變數資訊 person.name <- c("Jiyuian", "Shawnroom", "Bigmoumou") person.sex <- c("F", "M", "M") person.id <- c("jiyuian520", "shawnn520", "moumou123") person.days <- c(201, 37, 99) # 使用data.frame(),並以上述4個向量建立person.df person.df <- data.frame(person.name, person.sex, person.id, person.days) # 查看person.df...
##' create color palette for continuous data ##' ##' ##' @title color_palette ##' @param colors colors of length >=2 ##' @return color vector ##' @importFrom grDevices colorRampPalette ##' @export ##' @author guangchuang yu color_palette <- function(colors) colorRampPalette(colors)(n = 299) heatmap_palette <- color_p...
/R/utilities.R
no_license
MingxuanYang/enrichplot
R
false
false
485
r
##' create color palette for continuous data ##' ##' ##' @title color_palette ##' @param colors colors of length >=2 ##' @return color vector ##' @importFrom grDevices colorRampPalette ##' @export ##' @author guangchuang yu color_palette <- function(colors) colorRampPalette(colors)(n = 299) heatmap_palette <- color_p...
# logging function for tuning and feature selection # has 2 stages: # 1: After point to eval is selected # 2: after evaluation logFunDefault = function(learner, task, resampling, measures, par.set, control, opt.path, dob, x.string, y, remove.nas, stage, prev.stage, prefixes) { if (stage == 1L) { gc(); gc(); g...
/R/logFunOpt.R
no_license
jimhester/mlr
R
false
false
1,980
r
# logging function for tuning and feature selection # has 2 stages: # 1: After point to eval is selected # 2: after evaluation logFunDefault = function(learner, task, resampling, measures, par.set, control, opt.path, dob, x.string, y, remove.nas, stage, prev.stage, prefixes) { if (stage == 1L) { gc(); gc(); g...
library(pheatmap) library(fifer) library(FactoMineR) #I)Loading data #A)Cytokine + suppression data Clinical_data = read.delim("Desktop/COVID_Italy/Clinical_data.txt",dec = ",",na.strings = "") colnames(Clinical_data) = c("Date","Run","N_sample","Sex","Hospitalization","Severity","APACHE_clinical_score", ...
/Clinical_data_processing.R
no_license
yingstat/Verona_COVID19
R
false
false
6,867
r
library(pheatmap) library(fifer) library(FactoMineR) #I)Loading data #A)Cytokine + suppression data Clinical_data = read.delim("Desktop/COVID_Italy/Clinical_data.txt",dec = ",",na.strings = "") colnames(Clinical_data) = c("Date","Run","N_sample","Sex","Hospitalization","Severity","APACHE_clinical_score", ...
rm(list=ls()) library(jsonlite) library(stringr) warsaw_buses_trams_data <- function(days = 0, hours = 0, minutes = 0) { #czas zbierania danych w minutach: acquisition.time <- days * 24 * 60 + hours * 60 + minutes html_bus <- "https://api.um.warszawa.pl/api/action/busestrams_get/?resource_id=%20f2e...
/data_downloading.R
no_license
kaz94/TramWarsaw
R
false
false
2,391
r
rm(list=ls()) library(jsonlite) library(stringr) warsaw_buses_trams_data <- function(days = 0, hours = 0, minutes = 0) { #czas zbierania danych w minutach: acquisition.time <- days * 24 * 60 + hours * 60 + minutes html_bus <- "https://api.um.warszawa.pl/api/action/busestrams_get/?resource_id=%20f2e...
### R code from vignette source 'overlap.Rnw' ################################################### ### code chunk number 1: options ################################################### options(continue=" ") ################################################### ### code chunk number 2: loadData ###############...
/inst/doc/overlap.R
no_license
cran/overlap
R
false
false
2,313
r
### R code from vignette source 'overlap.Rnw' ################################################### ### code chunk number 1: options ################################################### options(continue=" ") ################################################### ### code chunk number 2: loadData ###############...
utils::globalVariables(c("STATE", "MONTH", "year","n"))
/R/global.R
permissive
Sensalis/farsHK
R
false
false
57
r
utils::globalVariables(c("STATE", "MONTH", "year","n"))
# R/starting_fresh_functions.R # Generate all new supporting data files source("R/institution_investigator_functions.R") source("R/volume_asset_functions.R") source("R/functions.R") #' New analytics project setup #' #' This function is used to set-up the CSV folders and files and the #' .gitignore files that are nee...
/R/starting_fresh_functions.R
permissive
gilmore-lab/databrary-analytics
R
false
false
6,031
r
# R/starting_fresh_functions.R # Generate all new supporting data files source("R/institution_investigator_functions.R") source("R/volume_asset_functions.R") source("R/functions.R") #' New analytics project setup #' #' This function is used to set-up the CSV folders and files and the #' .gitignore files that are nee...
#' @title convert the results of multiple dimensionality reduction to tbl_df #' @rdname tidydr #' @param x the R object, options 'prcomp', 'princomp', 'pcoa' #' @param display character #' @param digits integer indicating the number of decimal places, #' default is 2. #' @param ... additional parameters #' @return tb...
/R/method-dr-tibble.R
no_license
yezi0721/MicrobiotaProcess
R
false
false
5,507
r
#' @title convert the results of multiple dimensionality reduction to tbl_df #' @rdname tidydr #' @param x the R object, options 'prcomp', 'princomp', 'pcoa' #' @param display character #' @param digits integer indicating the number of decimal places, #' default is 2. #' @param ... additional parameters #' @return tb...
############################################################################### ##### DRFEWS: Parcel-Level Soil Composition ##### Scrape/Download Files Using RSelenium ##### Date: 6_21_21 ##### Description: Navigate Soil Survey Website to download county level, highly ##### detailed soil composition files ...
/s_Soils_WSSDownload.R
no_license
cultice-7/INFEWS_LandUse
R
false
false
2,419
r
############################################################################### ##### DRFEWS: Parcel-Level Soil Composition ##### Scrape/Download Files Using RSelenium ##### Date: 6_21_21 ##### Description: Navigate Soil Survey Website to download county level, highly ##### detailed soil composition files ...
library(shiny) library(plotly) #### UI #### ui <- fluidPage( titlePanel("Continous Distribution Generator"), br(), navbarPage(title = "Distribution", #### Uniform Distribution #### tabPanel("Uniform", sidebarLayout( sidebarPanel( ...
/Continuous Distribution Generator/app.R
no_license
alexishwang/Statistics-Calculator
R
false
false
5,602
r
library(shiny) library(plotly) #### UI #### ui <- fluidPage( titlePanel("Continous Distribution Generator"), br(), navbarPage(title = "Distribution", #### Uniform Distribution #### tabPanel("Uniform", sidebarLayout( sidebarPanel( ...
library(pacman) p_load(kokudosuuchi,rvest,tidyverse,sf,lwgeom) #Only town/ward level # url <- "https://www.esrij.com/cgi-bin/wp/wp-content/uploads/2020/05/japan_ver82.zip" # temp <- tempfile() # download.file(url, temp) # unzip(temp) # read_sf("japan_ver82/japan_ver82.shp") url <- "https://www.esrij.com/cgi-bin/wp/wp...
/200517 Japan Cities.R
no_license
bobidou23/maps
R
false
false
10,764
r
library(pacman) p_load(kokudosuuchi,rvest,tidyverse,sf,lwgeom) #Only town/ward level # url <- "https://www.esrij.com/cgi-bin/wp/wp-content/uploads/2020/05/japan_ver82.zip" # temp <- tempfile() # download.file(url, temp) # unzip(temp) # read_sf("japan_ver82/japan_ver82.shp") url <- "https://www.esrij.com/cgi-bin/wp/wp...
log <- file(snakemake@log[[1]], open="wt") sink(log) sink(log, type="message") library(DESeq2) library(IHW) library(ggplot2) library(dplyr) library(stringr) if (snakemake@threads > 1) { library("BiocParallel") parallel <- TRUE register(MulticoreParam(snakemake@threads)) } else { parallel <- FALSE } t...
/scripts/diffexp.R
no_license
akirosingh/BC1bulk-rnaseq
R
false
false
3,156
r
log <- file(snakemake@log[[1]], open="wt") sink(log) sink(log, type="message") library(DESeq2) library(IHW) library(ggplot2) library(dplyr) library(stringr) if (snakemake@threads > 1) { library("BiocParallel") parallel <- TRUE register(MulticoreParam(snakemake@threads)) } else { parallel <- FALSE } t...
library(dplyr) library(ROracle) library(geosphere) Sys.setenv(TZ = "UTC") Sys.setenv(ORA_SDTZ = "UTC") Airport="EIDW" start_date="01-jan-2016" end_date="01-feb-2019" drv <- dbDriver("Oracle") con <- dbConnect(drv, "PRUTEST", "test", dbname='//porape5.ops.cfmu.eurocontrol.be:1521/pe5') Flx_data=dbGetQuery(con, paste...
/Additional_ASMA_time.R
no_license
sampeeters/ASMA_approx
R
false
false
5,026
r
library(dplyr) library(ROracle) library(geosphere) Sys.setenv(TZ = "UTC") Sys.setenv(ORA_SDTZ = "UTC") Airport="EIDW" start_date="01-jan-2016" end_date="01-feb-2019" drv <- dbDriver("Oracle") con <- dbConnect(drv, "PRUTEST", "test", dbname='//porape5.ops.cfmu.eurocontrol.be:1521/pe5') Flx_data=dbGetQuery(con, paste...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean_functions.R \name{gcpea_clean} \alias{gcpea_clean} \title{gcpea_clean} \usage{ gcpea_clean(df) } \description{ \code{gcpea_clean} is a function to clean data from Global Campaign to protect education from attack (GCPEA) on google drive....
/man/gcpea_clean.Rd
no_license
northeastloon/gemrtables
R
false
true
933
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean_functions.R \name{gcpea_clean} \alias{gcpea_clean} \title{gcpea_clean} \usage{ gcpea_clean(df) } \description{ \code{gcpea_clean} is a function to clean data from Global Campaign to protect education from attack (GCPEA) on google drive....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggRadar.R \name{ggRadar} \alias{ggRadar} \title{Draw a radar chart} \usage{ ggRadar(data = iris, xvars = NULL, yvar = NULL, groupvar = NULL, rescale = FALSE, legend.position = "bottom", radar = TRUE, polar = FALSE, mean = TRUE, nrow = FAL...
/man/ggRadar.Rd
no_license
cardiomoon/moonBook2
R
false
true
2,157
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggRadar.R \name{ggRadar} \alias{ggRadar} \title{Draw a radar chart} \usage{ ggRadar(data = iris, xvars = NULL, yvar = NULL, groupvar = NULL, rescale = FALSE, legend.position = "bottom", radar = TRUE, polar = FALSE, mean = TRUE, nrow = FAL...
dat <- read.table(textConnection( gsub("\n", " ", "0 0 0 0 0 -0.270340178359072 -0.367828308500142 0.666980581124872 1.87088147328446 2.14548907684624 -0.480859313143032 -0.72911654245842 -0.490308602315934 -0.66152028906509 -0.221049033806403 0.367003418871239 0.631073992586373 0.0487728723414486 0.762...
/jmotif/tests/testthat/test_wordbag.R
no_license
ingted/R-Examples
R
false
false
2,346
r
dat <- read.table(textConnection( gsub("\n", " ", "0 0 0 0 0 -0.270340178359072 -0.367828308500142 0.666980581124872 1.87088147328446 2.14548907684624 -0.480859313143032 -0.72911654245842 -0.490308602315934 -0.66152028906509 -0.221049033806403 0.367003418871239 0.631073992586373 0.0487728723414486 0.762...
######### # Code for UW HCA Cert class # Dwight Barry & Bryan Nice # 2015-02-25 # https://github.com/Rmadillo/uw_hca # Central line associated blood stream infection (CLA-BSI) analysis # Example of a data-to-product process ######### # Step 1: load data from github bsi = read.csv("https://raw.githubusercontent.com/...
/UW_HCA-master/code/part_2_clabsi_analysis_1.R
permissive
mjmg/R-demo-files
R
false
false
7,723
r
######### # Code for UW HCA Cert class # Dwight Barry & Bryan Nice # 2015-02-25 # https://github.com/Rmadillo/uw_hca # Central line associated blood stream infection (CLA-BSI) analysis # Example of a data-to-product process ######### # Step 1: load data from github bsi = read.csv("https://raw.githubusercontent.com/...
# Plotting Assignment-4 rm(list=ls()) #reading data into R (you need to put the data file in the same dir as the script): elc<- read.table("household_power_consumption.txt", sep=";",nrows= 2075260, header=TRUE, quote= "", strip.white=TRUE, stringsAsFactors = FALSE, na.strings= "?") # Subsetting the full dat...
/Plot4.R
no_license
srini609/ExData_Plotting1
R
false
false
1,581
r
# Plotting Assignment-4 rm(list=ls()) #reading data into R (you need to put the data file in the same dir as the script): elc<- read.table("household_power_consumption.txt", sep=";",nrows= 2075260, header=TRUE, quote= "", strip.white=TRUE, stringsAsFactors = FALSE, na.strings= "?") # Subsetting the full dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calibration.R \name{calibration} \alias{calibration} \alias{calibration.default} \alias{calibration.formula} \alias{ggplot.calibration} \alias{panel.calibration} \alias{xyplot.calibration} \title{Probability Calibration Plot} \usage{ calibrat...
/pkg/caret/man/calibration.Rd
no_license
gwakech/caret
R
false
true
5,371
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calibration.R \name{calibration} \alias{calibration} \alias{calibration.default} \alias{calibration.formula} \alias{ggplot.calibration} \alias{panel.calibration} \alias{xyplot.calibration} \title{Probability Calibration Plot} \usage{ calibrat...
#------------------------------------------------------------------------------- # File: CompareMaf.r # Author: Alex Holloway # Date: 09/01/2015 #------------------------------------------------------------------------------- CompareMaf <- function(x, y, xlab = NULL, ylab = NULL, main = NULL) { # Args # x: PL...
/exe/qc/CompareMaf.r
no_license
zhilizheng/impute-pipe
R
false
false
675
r
#------------------------------------------------------------------------------- # File: CompareMaf.r # Author: Alex Holloway # Date: 09/01/2015 #------------------------------------------------------------------------------- CompareMaf <- function(x, y, xlab = NULL, ylab = NULL, main = NULL) { # Args # x: PL...
library(shiny) library(shinythemes) require(leaflet) library(dygraphs) shinyUI(fluidPage( theme="bootstrap.min.css", titlePanel(fluidRow( column(3, img(src="logo.png",height=80,width=180)), column(8, h3("MA615 Project: Trump via Twitter Data")))), navbarPage(title="", ## Hom...
/ui.R
no_license
hhtiffany/MA615-Final-Project
R
false
false
6,666
r
library(shiny) library(shinythemes) require(leaflet) library(dygraphs) shinyUI(fluidPage( theme="bootstrap.min.css", titlePanel(fluidRow( column(3, img(src="logo.png",height=80,width=180)), column(8, h3("MA615 Project: Trump via Twitter Data")))), navbarPage(title="", ## Hom...
getwd() library(dplyr) library(data.table) library(ggplot2) library(reshape2) #library(plyr) library(stats) library(lattice) library(lubridate) library(tidyr) detach(package:plyr) #Set a working directory getwd() setwd("/Users/jimmymarcel/Documents/One Acre Fund/DATA_FILES/Key Stats") d21 <- read.csv("Season Clients ...
/Heatmap.R
no_license
DamaSibo/Repayment-code
R
false
false
17,051
r
getwd() library(dplyr) library(data.table) library(ggplot2) library(reshape2) #library(plyr) library(stats) library(lattice) library(lubridate) library(tidyr) detach(package:plyr) #Set a working directory getwd() setwd("/Users/jimmymarcel/Documents/One Acre Fund/DATA_FILES/Key Stats") d21 <- read.csv("Season Clients ...
# Explore relationship between L and cost and effort #1334 is what you would want for total effort at this biomass level according to linear relationship #L 0.64646465 #cost_intercept = 1e-03 library(viridis) library(tidyr) library(tidyverse) library(FishLife) library(spasm) library(ggridges) library(gganimate) library...
/notes/grid_search_wrapper.R
permissive
lennon-thomas/spasm_azores
R
false
false
8,716
r
# Explore relationship between L and cost and effort #1334 is what you would want for total effort at this biomass level according to linear relationship #L 0.64646465 #cost_intercept = 1e-03 library(viridis) library(tidyr) library(tidyverse) library(FishLife) library(spasm) library(ggridges) library(gganimate) library...
#========01 TP STUDY(proteomics) ============= # Paper: Novel protein markers of androgen activity in humans: proteomic study of plasma from young chemically castrated men. # Authors: Aleksander Giwercman1*, K Barbara Sahlin*, Indira Pla, Krzysztof Pawlowski, Carl Fehniger, # Yvonne Lundberg Giwercman,...
/one-way repeated measurement ANOVA.R
no_license
indirapla/TP1_proteins_marker_of_androgen_activity
R
false
false
5,350
r
#========01 TP STUDY(proteomics) ============= # Paper: Novel protein markers of androgen activity in humans: proteomic study of plasma from young chemically castrated men. # Authors: Aleksander Giwercman1*, K Barbara Sahlin*, Indira Pla, Krzysztof Pawlowski, Carl Fehniger, # Yvonne Lundberg Giwercman,...
# Estruturas de controle x <- runif(1,0,10) x if (x < 7) { y <- "reprovado" } else { y <- "aprovado" } y
/scripts/estruturas de controle.R
no_license
fabianapereiracosta/etl_r
R
false
false
115
r
# Estruturas de controle x <- runif(1,0,10) x if (x < 7) { y <- "reprovado" } else { y <- "aprovado" } y
#' Intensity difference plot #' #' This function takes the output from the intensity_difference #' function and draws a number of diagnostic plots to help to #' evaluate the results of the analysis #' #' The function will split the current plot area into 4 sections #' and will plot 4 separate graphs: #' #' 1. The di...
/R/intensity_diff_plot.R
no_license
inambioinfo/intensitydiff
R
false
false
5,598
r
#' Intensity difference plot #' #' This function takes the output from the intensity_difference #' function and draws a number of diagnostic plots to help to #' evaluate the results of the analysis #' #' The function will split the current plot area into 4 sections #' and will plot 4 separate graphs: #' #' 1. The di...
library('ProjectTemplate') load.project() dat <- na.omit(BD.montgomery.6) dat$treatment <- as.numeric(gsub("Tmt", "", dat$treatment)) dat$block <- as.numeric(gsub("Bck", "", dat$block)) sapply(dat, class) tmt <- 'catalizador' block <- 'maquina' names(dat) <- c('y', tmt, block) head(dat) dat$catalizador <- factor(da...
/5_analisis_ejemplos/src/1_tradicional_BI.R
no_license
Songeo/anova_doe_tesis_2014
R
false
false
3,868
r
library('ProjectTemplate') load.project() dat <- na.omit(BD.montgomery.6) dat$treatment <- as.numeric(gsub("Tmt", "", dat$treatment)) dat$block <- as.numeric(gsub("Bck", "", dat$block)) sapply(dat, class) tmt <- 'catalizador' block <- 'maquina' names(dat) <- c('y', tmt, block) head(dat) dat$catalizador <- factor(da...
####Distributions education library(readr) library(dplyr) setwd("~/Documents/DSPG/EM project") edu_3states <- read_csv("edu_3states.csv") #pop3states <- read_csv("~/Documents/Census/Population/productDownload_2020-07-21T223855/pop3states.csv") #dat2019 <- edu_3states %>% filter(year== "2019") #melt data base librar...
/EM_gates/cesar_code/education_3states.R
no_license
18rberry/UVA-Economic-Mobility-
R
false
false
2,311
r
####Distributions education library(readr) library(dplyr) setwd("~/Documents/DSPG/EM project") edu_3states <- read_csv("edu_3states.csv") #pop3states <- read_csv("~/Documents/Census/Population/productDownload_2020-07-21T223855/pop3states.csv") #dat2019 <- edu_3states %>% filter(year== "2019") #melt data base librar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/county_fips.R \docType{data} \name{county_fips} \alias{county_fips} \title{Dataset containing FIPS codes for mapping and lookup.} \format{A data frame with 3235 rows and 5 variables} \usage{ data(county_fips) } \description{ Built-in dataset ...
/man/county_fips.Rd
no_license
apeirohedra/blscrapeR
R
false
true
690
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/county_fips.R \docType{data} \name{county_fips} \alias{county_fips} \title{Dataset containing FIPS codes for mapping and lookup.} \format{A data frame with 3235 rows and 5 variables} \usage{ data(county_fips) } \description{ Built-in dataset ...
################################################################################ # title: 'All subtypes SCNAs compilation script' # author: "CASTRO DAU Santiago Manuel" # date: '19 MAR 2020' # last modified: '19 MAR 2020' # description: # 'Makes a list of all unique SCNAs detected through the GISTIC2.0 algorithm # in ...
/data/GISTIC_processed_data/SCNAs_compilation_pipeline.R
no_license
Sann5/SCNAs_Proyect
R
false
false
1,781
r
################################################################################ # title: 'All subtypes SCNAs compilation script' # author: "CASTRO DAU Santiago Manuel" # date: '19 MAR 2020' # last modified: '19 MAR 2020' # description: # 'Makes a list of all unique SCNAs detected through the GISTIC2.0 algorithm # in ...
library("tidyverse") library("lubridate") library("directlabels") meanT <- read.table("climate/data/vgdcnSV000001008.dat") %>% set_names(c("year", "month", "day", "meanT")) %>% mutate(date = ymd(paste(year, month, day, sep = "-")), date0 = ymd(paste(2016, month, day, sep = "-"))) meanT %>% ggplot(a...
/climate/R/temperature_plots.R
no_license
EnquistLab/PFTC4_Svalbard
R
false
false
1,139
r
library("tidyverse") library("lubridate") library("directlabels") meanT <- read.table("climate/data/vgdcnSV000001008.dat") %>% set_names(c("year", "month", "day", "meanT")) %>% mutate(date = ymd(paste(year, month, day, sep = "-")), date0 = ymd(paste(2016, month, day, sep = "-"))) meanT %>% ggplot(a...
# # This file contains functions for constructing node and edge lists. # #' Create an edge list #' #' An edge list is a data frame in which each row describes a flow from one entity to another. #' Columns in the edge list data frame are \code{From}, \code{To}, \code{Value}, and \code{Product}. #' The edge list can be ...
/R/node_edge_list.R
no_license
MatthewHeun/Recca
R
false
false
19,246
r
# # This file contains functions for constructing node and edge lists. # #' Create an edge list #' #' An edge list is a data frame in which each row describes a flow from one entity to another. #' Columns in the edge list data frame are \code{From}, \code{To}, \code{Value}, and \code{Product}. #' The edge list can be ...
library(ape) testtree <- read.tree("7416_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="7416_1_unrooted.txt")
/codeml_files/newick_trees_processed/7416_1/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("7416_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="7416_1_unrooted.txt")
#... Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name #... +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) #... +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) #... +[0-9]+: [0-9a-f]+ +(4|8)+ OBJ...
/external/binutils-2.38/ld/testsuite/ld-elf/pr25458.rd
permissive
zhmu/ananas
R
false
false
382
rd
#... Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name #... +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) #... +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) #... +[0-9]+: [0-9a-f]+ +(4|8)+ OBJ...
cu.nnet = function(train.x, train.y, OPT,net, HP = c(10,1000,0.05,0.01)){ # HP: Hyperparameters # HP[1] = batch size # HP[2] = n iteration # HP[3] = learning rate # HP[4] = weiht decay n.layer <- length(net$W) loss = rep(0,HP[2]) #エラーに対応するloss A = list(); z = list(); Dact = list(); Daff = list() for (...
/ch06_21K.R
no_license
ct-7/Cognitive-information-analysis
R
false
false
4,039
r
cu.nnet = function(train.x, train.y, OPT,net, HP = c(10,1000,0.05,0.01)){ # HP: Hyperparameters # HP[1] = batch size # HP[2] = n iteration # HP[3] = learning rate # HP[4] = weiht decay n.layer <- length(net$W) loss = rep(0,HP[2]) #エラーに対応するloss A = list(); z = list(); Dact = list(); Daff = list() for (...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colorpatch_impl.R \name{DistColor} \alias{DistColor} \title{Computes the distance of to colors within a certain colorspace} \usage{ DistColor(x, y, color.space = "LAB") } \arguments{ \item{x}{First color to be compared} \item{y}{Second color...
/man/DistColor.Rd
no_license
cran/colorpatch
R
false
true
844
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colorpatch_impl.R \name{DistColor} \alias{DistColor} \title{Computes the distance of to colors within a certain colorspace} \usage{ DistColor(x, y, color.space = "LAB") } \arguments{ \item{x}{First color to be compared} \item{y}{Second color...
#!/usr/bin/env Rscript ## NOTE: The scripts embraced by "##<<<... ##>>>..." need to be specified based on your system ## The script was used to run QuantiSNP on Minerva high performance cluster. ## You need to modifiy it according to the system you are using if you would like to use it. ## Please refer to original Qu...
/01_initial_call/run_QuantiSNP/step.2.check.QuantiSNP.R
no_license
rxseadew/ensembleCNV
R
false
false
5,590
r
#!/usr/bin/env Rscript ## NOTE: The scripts embraced by "##<<<... ##>>>..." need to be specified based on your system ## The script was used to run QuantiSNP on Minerva high performance cluster. ## You need to modifiy it according to the system you are using if you would like to use it. ## Please refer to original Qu...
library(ggplot2) library(stringr) library(lubridate) trans <- read.csv("C:\\Users\\sgiraldo\\source\\R\\transacoesJun05-06-07.csv") trans$time <- as.numeric(str_split_fixed(trans$time, ":", Inf)[,1]) * 60 + as.numeric(str_split_fixed(trans$time, ":", Inf)[,2]) # trans$date <- str_split_fixed(trans$timestamp, "_", In...
/disponibilidadeTransacoesJun05-06-07.R
no_license
sergiorgiraldo/R-Lang
R
false
false
628
r
library(ggplot2) library(stringr) library(lubridate) trans <- read.csv("C:\\Users\\sgiraldo\\source\\R\\transacoesJun05-06-07.csv") trans$time <- as.numeric(str_split_fixed(trans$time, ":", Inf)[,1]) * 60 + as.numeric(str_split_fixed(trans$time, ":", Inf)[,2]) # trans$date <- str_split_fixed(trans$timestamp, "_", In...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Ampute.R \name{ampute} \alias{ampute} \title{Generate Missing Data for Simulation Purposes} \usage{ ampute(data, prop = 0.5, patterns = NULL, freq = NULL, mech = "MAR", weights = NULL, std = TRUE, cont = TRUE, type = NULL, odds = NULL, by...
/man/ampute.Rd
no_license
worldbank/mice
R
false
true
11,868
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Ampute.R \name{ampute} \alias{ampute} \title{Generate Missing Data for Simulation Purposes} \usage{ ampute(data, prop = 0.5, patterns = NULL, freq = NULL, mech = "MAR", weights = NULL, std = TRUE, cont = TRUE, type = NULL, odds = NULL, by...
# Simulated Data Generation for One Predictor Logistic Regression Model # Author: Nan Wu library("LaplacesDemon") set.seed(66) N <- 1000 # number of observations x <- rnorm(N) # generate a convariate vector of length N alpha <- rnorm(1, 0.5, 2) # generate a random intercept that we will try to recover beta <- rnorm(1,...
/4simulatedDataGenInR/dataGenLogitRegressionOnePredictor.R
no_license
Rosenguyen0411/RstanWorkflow
R
false
false
1,225
r
# Simulated Data Generation for One Predictor Logistic Regression Model # Author: Nan Wu library("LaplacesDemon") set.seed(66) N <- 1000 # number of observations x <- rnorm(N) # generate a convariate vector of length N alpha <- rnorm(1, 0.5, 2) # generate a random intercept that we will try to recover beta <- rnorm(1,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docdb_operations.R \name{docdb_create_db_cluster_snapshot} \alias{docdb_create_db_cluster_snapshot} \title{Creates a snapshot of a cluster} \usage{ docdb_create_db_cluster_snapshot(DBClusterSnapshotIdentifier, DBClusterIdentifier, Tags) } \...
/cran/paws.database/man/docdb_create_db_cluster_snapshot.Rd
permissive
TWarczak/paws
R
false
true
2,020
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docdb_operations.R \name{docdb_create_db_cluster_snapshot} \alias{docdb_create_db_cluster_snapshot} \title{Creates a snapshot of a cluster} \usage{ docdb_create_db_cluster_snapshot(DBClusterSnapshotIdentifier, DBClusterIdentifier, Tags) } \...
source("other_methods.R") source("AdaPT.R") library("IHWpaper") library("IHW") proteomics_file <- system.file( "extdata/real_data", "science_signaling.csv", package = "IHWpaper" ) proteomics_df <- read.csv(proteomics_file, stringsAsFactors = F) proteomics_df$pvalue <- rank( proteomics_df$p1, ...
/R/proteomics_expr.R
no_license
lihualei71/AdaPT
R
false
false
2,612
r
source("other_methods.R") source("AdaPT.R") library("IHWpaper") library("IHW") proteomics_file <- system.file( "extdata/real_data", "science_signaling.csv", package = "IHWpaper" ) proteomics_df <- read.csv(proteomics_file, stringsAsFactors = F) proteomics_df$pvalue <- rank( proteomics_df$p1, ...
## ----pkg-attach, echo = FALSE, warning=FALSE, message=FALSE------------------- # Load FDboost package library(FDboost) ## ----load-data, echo = TRUE, warning=FALSE, message=FALSE--------------------- library(fda) data("CanadianWeather", package = "fda") ### use data on a monthly basis (c.f. Scheipl et. al. online s...
/inst/doc/FLAM_canada.R
no_license
cran/FDboost
R
false
false
10,075
r
## ----pkg-attach, echo = FALSE, warning=FALSE, message=FALSE------------------- # Load FDboost package library(FDboost) ## ----load-data, echo = TRUE, warning=FALSE, message=FALSE--------------------- library(fda) data("CanadianWeather", package = "fda") ### use data on a monthly basis (c.f. Scheipl et. al. online s...
## version: 1.29 ## method: get ## path: /nodes ## code: 200 ## response: [{"ID":"24ifsmvkjbyhk","Version":{"Index":8},"CreatedAt":"2016-06-07T20:31:11.853781916Z","UpdatedAt":"2016-06-07T20:31:11.999868824Z","Spec":{"Name":"my-node","Role":"manager","Availability":"active","Labels":{"foo":"bar"}},"Description":{"Hostn...
/tests/testthat/sample_responses/v1.29/node_list.R
no_license
cran/stevedore
R
false
false
1,876
r
## version: 1.29 ## method: get ## path: /nodes ## code: 200 ## response: [{"ID":"24ifsmvkjbyhk","Version":{"Index":8},"CreatedAt":"2016-06-07T20:31:11.853781916Z","UpdatedAt":"2016-06-07T20:31:11.999868824Z","Spec":{"Name":"my-node","Role":"manager","Availability":"active","Labels":{"foo":"bar"}},"Description":{"Hostn...
# ts はテーブルデータっぽいけど、普通に1元配列(/ ベクトル)のようにdiff が取れる. # log を取らない場合(差分だけの場合)、乗員数の増え方が年々指数的に増えているから振れ幅が大きくなるようなグラフになる. # log(a) - log(b), つまり a/b のように、対数差分系列は近似的に「変化率」の推移と等しくなるため解釈しなすくなるというメリットがある. log_diff_passenger = diff(log(AirPassengers)) # 図示 par(mfrow = c(2, 1)) plot(AirPassengers, main = "原系列") plot(log_diff_passenge...
/ml/pred_tsdata.R
no_license
RyotaBannai/r
R
false
false
4,689
r
# ts はテーブルデータっぽいけど、普通に1元配列(/ ベクトル)のようにdiff が取れる. # log を取らない場合(差分だけの場合)、乗員数の増え方が年々指数的に増えているから振れ幅が大きくなるようなグラフになる. # log(a) - log(b), つまり a/b のように、対数差分系列は近似的に「変化率」の推移と等しくなるため解釈しなすくなるというメリットがある. log_diff_passenger = diff(log(AirPassengers)) # 図示 par(mfrow = c(2, 1)) plot(AirPassengers, main = "原系列") plot(log_diff_passenge...
#venn diagram maker install.packages('VennDiagram') library(VennDiagram) draw.pairwise.venn(200,400,100,col=c('white','white'),fill=c("#7FFF00","#FF4D40"),ext.text = T) source("https://bioconductor.org/biocLite.R") biocLite(c("RBGL","graph")) install.packages("devtools") library(devtools) install_github("js22...
/downstream_analysis/unorganized/venn-diagram.R
no_license
ferenckata/BLISS
R
false
false
654
r
#venn diagram maker install.packages('VennDiagram') library(VennDiagram) draw.pairwise.venn(200,400,100,col=c('white','white'),fill=c("#7FFF00","#FF4D40"),ext.text = T) source("https://bioconductor.org/biocLite.R") biocLite(c("RBGL","graph")) install.packages("devtools") library(devtools) install_github("js22...
library(copula) library(gsDesign) simCorrData <- function(groupParams, c, rho, nsim) { numGroups <- 3 numEndpoints <- dim(groupParams)[1] - 1 cop <- normalCopula(rho, dim = numEndpoints, dispstr = "ex") sim <- lapply(seq(1:numGroups), function(x) { randx <- rCopula(n...
/R/sim/SimulateData.R
no_license
stevegbrooks/power-sim
R
false
false
2,264
r
library(copula) library(gsDesign) simCorrData <- function(groupParams, c, rho, nsim) { numGroups <- 3 numEndpoints <- dim(groupParams)[1] - 1 cop <- normalCopula(rho, dim = numEndpoints, dispstr = "ex") sim <- lapply(seq(1:numGroups), function(x) { randx <- rCopula(n...
#' Configure which version of Python to use #' #' @param python Path to Python binary #' @param virtualenv Directory of Python virtualenv #' @param condaenv Name of Conda environment #' @param conda Conda executable. Default is `"auto"`, which checks the `PATH` #' as well as other standard locations for Anaconda ins...
/R/use_python.R
permissive
minghao2016/reticulate
R
false
false
7,370
r
#' Configure which version of Python to use #' #' @param python Path to Python binary #' @param virtualenv Directory of Python virtualenv #' @param condaenv Name of Conda environment #' @param conda Conda executable. Default is `"auto"`, which checks the `PATH` #' as well as other standard locations for Anaconda ins...
## Begin to understand system dynamics ## load non-segmented data # ## scale (center, normalize by variance) # ## plot using ggplot over time rm(list = ls()) library(ggplot2) infilename <- "../data/nonsegmented_Rollschuhe_1_pen.csv" pen.data = read.csv(infilename, header = TRUE, sep = ",") ## dat <- pen.data$ac...
/dynamical_system/dynamical_system/plot_dynamics.r
no_license
galenwilkerson/Handwriting-Recognition-using-acceleration-data
R
false
false
1,279
r
## Begin to understand system dynamics ## load non-segmented data # ## scale (center, normalize by variance) # ## plot using ggplot over time rm(list = ls()) library(ggplot2) infilename <- "../data/nonsegmented_Rollschuhe_1_pen.csv" pen.data = read.csv(infilename, header = TRUE, sep = ",") ## dat <- pen.data$ac...
## 03_RandomForest_TuneHyperparameters.R #' This script is intended to tune random forest hyperparameters: #' - mtry #' - ntree #' - min_n #' #' Input variables will be selected using the output from 01_RandomForest_PreliminaryVariableImportance.R #' source(file.path("code", "paths+packages.R")) library(tidymodel...
/code/03_RandomForest_TuneHyperparameters.R
no_license
dry-rivers-rcn/IntermittencyTrends
R
false
false
7,565
r
## 03_RandomForest_TuneHyperparameters.R #' This script is intended to tune random forest hyperparameters: #' - mtry #' - ntree #' - min_n #' #' Input variables will be selected using the output from 01_RandomForest_PreliminaryVariableImportance.R #' source(file.path("code", "paths+packages.R")) library(tidymodel...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ANOVA_posthoc.R \name{ANOVA_posthoc} \alias{ANOVA_posthoc} \title{Creer un dataframe qui exclut les outliers d'une base de donnees} \usage{ ANOVA_posthoc(VD, VI1, VI2, data, nb_fact, alpha, effect) } \arguments{ \item{VD}{la VD de la base de ...
/man/ANOVA_posthoc.Rd
no_license
mdelacre/package.examens
R
false
true
732
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ANOVA_posthoc.R \name{ANOVA_posthoc} \alias{ANOVA_posthoc} \title{Creer un dataframe qui exclut les outliers d'une base de donnees} \usage{ ANOVA_posthoc(VD, VI1, VI2, data, nb_fact, alpha, effect) } \arguments{ \item{VD}{la VD de la base de ...
test_that("valid_term character", { expect_error(valid_term(NA_character_), "`x` must inherit from S3 class 'term'[.]", class = "chk_error" ) }) test_that("valid_term term", { expect_identical(valid_term(new_term()), logical(0)) expect_identical(valid_term(new_term(NA_character_)), NA) expect_iden...
/tests/testthat/test-valid-term.R
permissive
cran/term
R
false
false
1,530
r
test_that("valid_term character", { expect_error(valid_term(NA_character_), "`x` must inherit from S3 class 'term'[.]", class = "chk_error" ) }) test_that("valid_term term", { expect_identical(valid_term(new_term()), logical(0)) expect_identical(valid_term(new_term(NA_character_)), NA) expect_iden...
#' Probability that Domain Hosts Adult Content Based on features of Domain Name and Suffix alone. #' #' Uses a validated ML model that uses keywords in the domain name #' and suffix to predict probability that the domain hosts adult content. For #' more information see \url{https://github.com/soodoku/domain_classifier...
/rdomains/R/adult_ml1_cat.R
permissive
rajesh-shanmugam/domain_classifier
R
false
false
1,869
r
#' Probability that Domain Hosts Adult Content Based on features of Domain Name and Suffix alone. #' #' Uses a validated ML model that uses keywords in the domain name #' and suffix to predict probability that the domain hosts adult content. For #' more information see \url{https://github.com/soodoku/domain_classifier...
######################################### ### Main Function ### ######################################### #' @title Transform R dataframes into ImmPort basicStudyDesign.csv format #' #' @description Based on ImmPort's specifications, the function validates #' a group of dataframes holding metaData ...
/R/transformBasicStudyDesign.R
no_license
ksmbandi/R2i
R
false
false
2,175
r
######################################### ### Main Function ### ######################################### #' @title Transform R dataframes into ImmPort basicStudyDesign.csv format #' #' @description Based on ImmPort's specifications, the function validates #' a group of dataframes holding metaData ...
library(logistf) ### Name: is.logistf ### Title: Check 'logistf' Objects ### Aliases: is.logistf ### Keywords: models regression ### ** Examples data(sex2) fit<-logistf(data=sex2, case~1, pl=FALSE) is.logistf(fit)
/data/genthat_extracted_code/logistf/examples/is.logistf.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
222
r
library(logistf) ### Name: is.logistf ### Title: Check 'logistf' Objects ### Aliases: is.logistf ### Keywords: models regression ### ** Examples data(sex2) fit<-logistf(data=sex2, case~1, pl=FALSE) is.logistf(fit)
branch_nodes <- function(cds,reduction_method="UMAP"){ g = principal_graph(cds)[[reduction_method]] branch_points <- which(igraph::degree(g) > 2) branch_points = branch_points[branch_points %in% root_nodes(cds, reduction_method) == FALSE] return(branch_points) } leaf_nodes <- function(cds,reduction_method="UMA...
/R/order_cells.R
no_license
ntran95/CellTrajectoryExtensions
R
false
false
2,817
r
branch_nodes <- function(cds,reduction_method="UMAP"){ g = principal_graph(cds)[[reduction_method]] branch_points <- which(igraph::degree(g) > 2) branch_points = branch_points[branch_points %in% root_nodes(cds, reduction_method) == FALSE] return(branch_points) } leaf_nodes <- function(cds,reduction_method="UMA...
timestamp <- Sys.time() library(caret) model <- "AdaBag" ######################################################################### set.seed(2) training <- twoClassSim(50, linearVars = 2) testing <- twoClassSim(500, linearVars = 2) trainX <- training[, -ncol(training)] trainY <- training$Class seeds <- vector(mode =...
/RegressionTests/Code/AdaBag.R
no_license
JackStat/caret
R
false
false
3,590
r
timestamp <- Sys.time() library(caret) model <- "AdaBag" ######################################################################### set.seed(2) training <- twoClassSim(50, linearVars = 2) testing <- twoClassSim(500, linearVars = 2) trainX <- training[, -ncol(training)] trainY <- training$Class seeds <- vector(mode =...
#'Conditional Element Selection #' #'Return the value associated with \code{test} from the supplied vectors. #' #'If \code{test} is logical, then if test is \code{TRUE}, return the first #'argument in \dots{}, otherwise return the second argument.\cr If \code{test} #'is numeric, then return that value in the list defin...
/R/select.R
permissive
tfransen/USGSwsBase
R
false
false
3,092
r
#'Conditional Element Selection #' #'Return the value associated with \code{test} from the supplied vectors. #' #'If \code{test} is logical, then if test is \code{TRUE}, return the first #'argument in \dots{}, otherwise return the second argument.\cr If \code{test} #'is numeric, then return that value in the list defin...
#' Tools for describing matrices #' #' @param x Object to show. #' @param n Number of rows to show. If \code{NULL}, the default, will print #' all rows if less than option \code{dplyr.print_max}. Otherwise, will #' print \code{dplyr.print_min} #' @param width Width of text output to generate. This defaults to NULL,...
/R/utils-format.r
no_license
mattwg/dplyr
R
false
false
4,448
r
#' Tools for describing matrices #' #' @param x Object to show. #' @param n Number of rows to show. If \code{NULL}, the default, will print #' all rows if less than option \code{dplyr.print_max}. Otherwise, will #' print \code{dplyr.print_min} #' @param width Width of text output to generate. This defaults to NULL,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dasl.R \docType{data} \name{dasl.broadway_shows} \alias{dasl.broadway_shows} \title{Broadway shows} \format{33 observations} \source{ DASL – The Data And Story Library: \href{https://dasl.datadescription.com/datafile/broadway-shows/?sf_paged=...
/man/dasl.broadway_shows.Rd
no_license
sigbertklinke/mmstat.data
R
false
true
1,180
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dasl.R \docType{data} \name{dasl.broadway_shows} \alias{dasl.broadway_shows} \title{Broadway shows} \format{33 observations} \source{ DASL – The Data And Story Library: \href{https://dasl.datadescription.com/datafile/broadway-shows/?sf_paged=...
library(dplyr) source( "../team/data-prep.R") train.sample.dummy <- train.sample1000 #Group to ID level ID_dummy <- train.sample.dummy %>% select(Id, Ref) %>% group_by(Id) %>% summarise(Ref = mean(Ref, na.rm = TRUE)) #Remove IDs with only NAs ID_dummy_noNAs <- ID_dummy %>% filter(Ref != "NaN") #From O...
/james/impute_dbg.R
no_license
dsdaveh/weddingcap_rain
R
false
false
1,864
r
library(dplyr) source( "../team/data-prep.R") train.sample.dummy <- train.sample1000 #Group to ID level ID_dummy <- train.sample.dummy %>% select(Id, Ref) %>% group_by(Id) %>% summarise(Ref = mean(Ref, na.rm = TRUE)) #Remove IDs with only NAs ID_dummy_noNAs <- ID_dummy %>% filter(Ref != "NaN") #From O...
context("editing") mn <- env_load()$mn test_that("we can publish an update", { if (!is_token_set(mn)) { skip("No token set. Skipping test.") } # Make a test package package <- create_dummy_package(mn) expect_named(package, c("metadata", "resource_map", "data")) # Publish an update on it update <- ...
/tests/testthat/test_editing.R
permissive
robyngit/arcticdatautils
R
false
false
9,298
r
context("editing") mn <- env_load()$mn test_that("we can publish an update", { if (!is_token_set(mn)) { skip("No token set. Skipping test.") } # Make a test package package <- create_dummy_package(mn) expect_named(package, c("metadata", "resource_map", "data")) # Publish an update on it update <- ...
library(data.table) library(dplyr) library(tidyr) library(reshape) # function to load data set, label the columns, and add "subject_id" and "activity_id" load_label_extract_data_set <- function(X_file, Y_file, subject_file, features_file="./features.txt", ...
/run_analysis.R
no_license
rstrahan/ProgrammingAssignment3
R
false
false
2,590
r
library(data.table) library(dplyr) library(tidyr) library(reshape) # function to load data set, label the columns, and add "subject_id" and "activity_id" load_label_extract_data_set <- function(X_file, Y_file, subject_file, features_file="./features.txt", ...