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

Stats summary return a matrix of lists #62

Open
fgvieira opened this issue Jun 20, 2023 · 1 comment
Open

Stats summary return a matrix of lists #62

fgvieira opened this issue Jun 20, 2023 · 1 comment
Labels

Comments

@fgvieira
Copy link

fgvieira commented Jun 20, 2023

I am trying to make a snakemake wrapper to plot nonpareil curves:

[...]
curves <- Nonpareil.curve.batch(snakemake@input[["npo"]],
                label = params[["label"]],
                labels = params[["labels"]],
                col = params[["col"]],
                enforce.consistency = params[["enforce_consistency"]],
                star = params[["star"]],
                correction.factor = params[["correction_factor"]],
                weights.exp = params[["weights_exp"]],
                skip.model = params[["skip_model"]],
                plot = FALSE
                )


# Get stats
stats <- summary(curves)
[...]

stats is a numeric matrix but, when skip.model=True, stats is a matrix of numeric lists.
Is this intended?

@lmrodriguezr
Copy link
Owner

Hi @fgvieira
That doesn't sound intentional, I'll address this next. Thank you!

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

No branches or pull requests

2 participants