## 00a Params.r

## This file should be literally, JUST parameters. 
## Nothing to execute here.
##
## Such that, if I want to modify a run, I should only
##    need to change items in this one single file


verbose <- TRUE

set.seed(1)


  "Not being used"
  MinFanPerArtist <- 10


  ## The number of fans that must be shared between two artists for a rel to be considered
  minNoOfFans <- 2   # This will be used in '<=' 

"BACKUP OF WHAT?"
  ## Whether or not to make a backup precrop
  createBackUpPreCrop <- TRUE

  ## Whether or not to shuffle RELS before importing. 
  ## Helpful in case not all rels get imported
  shuffleRelsPreImport <- TRUE

  ## A list of artist names which we are not using, mostly VA and blank artistName
  ## TODO:  This may not be needed if using ArtistIds instead of ArtistName
  artistsToIgnore <- c("", "Various Artists", "various artists", "varios artistas", "VARIOS ARTISTAS")
  



#------------------------------------------------------------------#
#    WORKFLOW CONTROL, TO SAVE TIME WHEN DEV'ING                   #
#------------------------------------------------------------------#
  ## -- RE PULL FRESH DATA -- ##
  ## Whether to repull fresh data from DB. 
  RERUN.QRY   <- TRUE

  ## If TRUE will NOT import into NEO4j. 
  SKIP.EXPORT.TO.NEO <- FALSE
 
  ## Set to FALSE if do NOT want to save backups
  SAVE.BACKUP  <- TRUE


#------------------------------------------------------------------#




#------------------------------------------------------------------#
#    SPOTIFY SPECIFIC PARAMETERS                                   #
#------------------------------------------------------------------#
  SOURCEGRP  <-  "Spotify"
  tbl        <-  "staging_raw_spotify"

  ## Allow for easy over-ride of minDate in '!GO.r' file
  if (exists("minDate")) {
    warning("'minDate' already exists as ", minDate, " and will use this value.")
  } else
    minDate    <-  "2012-01-01"
#------------------------------------------------------------------#



  

#------------------------------------------------------------------#
#      NEO4J SPECIFIC PARAMETERS                                   #
#------------------------------------------------------------------#

  ## Whether to re load the R2neo4j source files
  ReSource_R2neo4j <- TRUE

  ## Directory where the R2neo4j function files live
  neoSrc <- "~/git/R2neo4j/src/"

  ## Name of the .db file to save the neo4j data to. 
  ## This will be a directory in '$NEO4J_HOME\data\'
  neo4j.DB.name <- "PeerGroups_Spotify.db"

"The only need for neo V1 is the Gephi-Neo4j interface."
"If instead exporting directly to gexf, then just stick with V2 and labels"
  ## Which version of neo4j to use
  neoVersion <- 1

  ## Whether or not the edges will contain as a property the names of the nodes they connect.
  ## Set to TRUE for debugging, otherwise keep as FALSE to keep data size down
  keep.names <- FALSE

  ## Whether to clear the .db folder at start of process. 
  ## Currently not implemented
  clearDB <- TRUE

  ## Whether to shut down Neo4j when done importing
  ## It needs to be off in order for another program like Gephi to access it
  stop.when.done  <- FALSE

  ## Whether to start gephi when done
  ## (Will be ignored if `stop.when.done` is FALSE or if gephi.app not found)
  start.gephi <- stop.when.done
  gephiApp    <- "/Applications/gephi.app"

  ##  One of the more expensive parts of batchCreateNodesAndRels 
  ##    is the creation of the JSON strings.  
  ##  It has an option to save these to a global object.
  ##  This option is useful if  troubleshooting / deving / debugging
  ##  Thus, change this to TRUE if you want to save the JSONS
  ##  (Note that if this is TRUE and the data has changed -- either 
  ##    via new raw data, or a modified calculation, etc -- then 
  ##   those updates will essentially be ignored.)
  saveJSONS <- FALSE

#------------------------------------------------------------------#



