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

Error in if (abs(m_guesses[length(m_guesses)] - m_guesses[length(m_guesses) - :missing value where TRUE/FALSE needed #58

Open
KyleRowe1230 opened this issue Nov 13, 2023 · 3 comments

Comments

@KyleRowe1230
Copy link

KyleRowe1230 commented Nov 13, 2023

Dear FEAST Group,

Hello,

I'm trying run FEAST on a 16S dataset and have encontered an error while running the algorithm. Command and error below:

> FEAST_output <- FEAST(C = otus, metadata = metadata, different_sources_flag = 0, dir_path = "~/FEAST/",outfile="demo")
Error in if (abs(m_guesses[length(m_guesses)] - m_guesses[length(m_guesses) -  : 
missing value where TRUE/FALSE needed

Thanks!

Kyle

@nikolgr
Copy link

nikolgr commented Dec 19, 2023

No response?

@AkilaMuthalagu
Copy link

Does anyone have a solution for this? I am facing the same issue

@AkilaMuthalagu
Copy link

It shows there are missing values in your data file. I used (is.na) function to find the rows and columns.
if (any(is.na(otus))) {
stop("Error: Missing values detected in 'otus'. Please handle missing values.")
}

##Result: Error: Error: Missing values detected in 'otus'. Please handle missing values. To check the row with missing values
rows_with_na <- which(apply(metadata, 1, anyNA))
cols_with_na <- which(apply(metadata, 2, anyNA))

I used replace function to add 0, That worked for me

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