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 calcGexpCnvBoundaries when running with numeric chromosome names #33

Open
asabjorklund opened this issue Sep 10, 2019 · 1 comment

Comments

@asabjorklund
Copy link

asabjorklund commented Sep 10, 2019

Hello,

I am testing the Honeybadger package and we have mapping to an assembly that has chromosome names without the "chr" so I modified setGexpMats to not add on "chr" to the chrom names and then tested running:

hb$calcGexpCnvBoundaries(init=TRUE, verbose=FALSE, chrs=as.character(1:22))

It failed and I found that the chrs parameter is not passed to the the function again at the recursion step, same thing for all params that are not default in the original call to the function. This is the part where it fails:

    ## Recursion

    ##print('Recursion for Group1')

    if(length(g1)>=3) {

        tryCatch({
            calcGexpCnvBoundaries(gexp.norm.sub=gexp.norm[, g1])
        }, error = function(e) { cat(paste0("ERROR: ", e)) })

    }

    ##print('Recursion for Group2')

    if(length(g2)>=3) {

        tryCatch({
            calcGexpCnvBoundaries(gexp.norm.sub=gexp.norm[, g2])
        }, error = function(e) { cat(paste0("ERROR: ", e)) })

    }

Another comment - I need to run the package on a secure server with no internet access, so it would be preferred to be able to pass a data frame with gene annotation instead of the mart object. I made my own function that takes the gos data.frame instead of the mart.obj as input and at the same time changed the chromosome names. Which led me to this new problem...

@JEFworks
Copy link
Collaborator

Hi,

For debugging purposes, it may be easier to use the functions outside the hb object as done in this tutorial: https://jef.works/HoneyBADGER/Integrating.html

Please provide the error messages returned by these failed functions. Otherwise, it is very difficult for me to understand what problems you are referring to.

Best,
Jean

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

2 participants