Code Monkey home page Code Monkey logo

Comments (7)

legrasv avatar legrasv commented on June 24, 2024 1

@ayogasekaram Thank you for working on that, a colleague will test the new function shortly.
For your question, I believe that alt_counts_df is always equal to df (in our case), I don't see any case when you would like to put two different datasets in the two arguments. So I think we are fine from this side, I don't think we need a warning message.

from tern.

ayogasekaram avatar ayogasekaram commented on June 24, 2024 1

yes it's been addressed in this PR

from tern.

ayogasekaram avatar ayogasekaram commented on June 24, 2024

Hi @legrasv, I have a PR going up for this soon so I can tag you for review. I just wanted to confirm if you have any warning message in mind in the case of the alt_counts_df? for example, if the levels for the facet_var are set in adpc for example, but the user also supplied an alt_counts_df, the same levels need to be set there for the plot legend to reflect it.

from tern.

legrasv avatar legrasv commented on June 24, 2024

@ayogasekaram I got this error message which I can't debug, it looks like I don't have the function sfun loaded (when I am using browser()), what is this function? how can I get it?
image

from tern.

ayogasekaram avatar ayogasekaram commented on June 24, 2024

@legrasv the sfun is s_summary but that default should already be set in the g_lineplot parameters. Let me take a look on my end as well!

from tern.

legrasv avatar legrasv commented on June 24, 2024

Dear NEST,

I found a bug in the code of g_lineplot for the strata:

matches <- sapply(unique(df_N[[group_var]]), function(x) unique(df_N[[paste0(group_var, "_N")]])[grepl(paste0("^", x), unique(df_N[[paste0(group_var, "_N")]]))])

in this piece of code, it happens that group_var contains specific regex characters and therefore the grepl will not work, example:

Browse[2]> grepl("^PART 1 \\(Period Effect\\)", unique(df_N[[paste0(group_var, "_N")]]))
[1]  TRUE  TRUE FALSE FALSE
Browse[2]> grepl("^PART 1 (Period Effect)", unique(df_N[[paste0(group_var, "_N")]]))
[1] FALSE FALSE FALSE FALSE

-> I need to tell that "()" are not part of the regex expression. I don't know how we could handle that in general. Here I have the bug with the "(", but it could happen with regex characters such as "+", ".", "[", etc.

from tern.

edelarua avatar edelarua commented on June 24, 2024

@ayogasekaram can this issue be closed now?

from tern.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.