Skip to content

Commit

Permalink
fixed a problem with graph metadata when using the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgherardini committed Aug 28, 2018
1 parent c90a1c5 commit 9415096
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: vite
Type: Package
Title: Analyzing single-cell data using graphs
Version: 0.4.2
Version: 0.4.3
Authors@R: "Pier Federico Gherardini <pfgherardini@parkerici.org> [aut, cre]"
Description: This is a package for visualization and analysis of high-dimensional
single-cell data using graphs
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ vite::vite_GUI()

When the GUI starts you will be prompted to select a working directory. This directory must contain all the files that you want to include in the analysis. Select any file in that directory, and the directory that contains the file will be selected as working directory.

Note that if you are running an unsupervised graph analysis and you are including a file with samples metadata, this file needs to include a column called `filename` that matches the individual rows of the metadata table with the name of the `clustered.txt` files you are using as input for the analysis.
Note that if you are running an unsupervised graph analysis and you are including a file with samples metadata, this file needs to include a column called `filename` that matches the individual rows of the metadata table with the name of the `clustered.txt` files you are using as input for the analysis. Please refer to the documentation of the R function `get_unsupervised_graph_from_files` for more information about metadata



6 changes: 4 additions & 2 deletions inst/shinyGUI/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ shinyServer(function(input, output, session) {
files.list <- file.path(working.directory, input$unsupervisedui_files_list)
metadata.tab <- NULL

if(!is.null(input$unsupervisedui_metadata_file) && input$unsupervisedui_metadata_file != "")
metadata.tab <- read.table(input$unsupervisedui_metadata_file, header = TRUE, sep = "\t", check.names = FALSE, stringsAsFactors = FALSE)
if(!is.null(unsupervisedui.reactive.values$metadata.file) && unsupervisedui.reactive.values$metadata.file != "")
metadata.tab <- read.table(unsupervisedui.reactive.values$metadata.file,
header = TRUE, sep = "\t", check.names = FALSE, stringsAsFactors = FALSE)


G <- vite::get_unsupervised_graph_from_files(
files.list = files.list,
Expand Down

0 comments on commit 9415096

Please sign in to comment.