Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducibility of demo data #42

Open
CamilaDuitama opened this issue Jul 21, 2022 · 2 comments
Open

Reproducibility of demo data #42

CamilaDuitama opened this issue Jul 21, 2022 · 2 comments

Comments

@CamilaDuitama
Copy link

Hi!

I am interested in getting the overall contribution of each environment source to a sink. For this reason I tried out your demo data with the following R script, by running it 100 times and then parsing the results per sink.

#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
#Set directory path
dir_path="./FEAST/ReproducibilityExperiment/"
setwd(dir_path)

library(FEAST)
metadata <- Load_metadata(metadata_path = "FEAST/Data_files/metadata_example_multi.txt")
otus <- Load_CountMatrix(CountMatrix_path = "FEAST/Data_files/otu_example_multi.txt")
FEAST_output <- FEAST(C = otus, metadata = metadata, different_sources_flag = 1, dir_path=dir_path,
                      outfile=paste0("demo",args[1]))

Knowing that FEAST is not a deterministic method, and that there is some expected variability in the results, I wanted to ask you why the results for certain samples vary so much (ex: ERR525698_Env_1). I've attached the results for two of the iterations I calculated (demo90_source_contributions_matrix.txt
demo0_source_contributions_matrix.txt).

As you see I always used the same parameters and input data. However, the contribution of Env_2 for the sink mentioned (ERR525698_Env_1) is 0.008 in one iteration and in the other one is 0.798. And this occurs with several other samples.

Is this an expected behaviour?

FEAST version: FEAST_0.1.0

Thank you 👍🏾

@Yixiangzhang1996
Copy link

Yixiangzhang1996 commented Aug 29, 2022

hi
the demo data at plot step something wrong
PlotSourceContribution(SinkNames = rownames(FEAST_output)[c(5:8)],SourceNames = colnames(FEAST_output), dir_path = "FEAST-FEAST_beta/Data_files/",mixing_proportions = FEAST_output, Plot_title = "TEST_",Same_sources_flag = 0, N = 4)

Error in mixing_proportions[which(rownames(mixing_proportions) %in% SinkNames), :

@mattsnelson
Copy link

I have just tried out with the demo dataset and am getting the same issue in plotting step as @Yixiangzhang1996 . Any updates on this? or suggestions on other code / tutorial datasets to look at to get familiar with using this tool? Thanks ;)

metadata <- Load_metadata(metadata_path = "Data_files/metadata_example_multi.txt")
otus <- Load_CountMatrix(CountMatrix_path = "Data_files/otu_example_multi.txt")

FEAST_output <- FEAST(C = otus, metadata = metadata, different_sources_flag = 1, dir_path = "output",
                      outfile="demo_multi")

# graphical output from the output file:
PlotSourceContribution(SinkNames = rownames(FEAST_output)[c(5:8)],
                       SourceNames = colnames(FEAST_output), dir_path = "output",
                       mixing_proportions = FEAST_output, Plot_title = "Test_",Same_sources_flag = 0, N = 4)

plotting step produces this error:
Error in mixing_proportions[which(rownames(mixing_proportions) %in% SinkNames), : incorrect number of dimensions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants