GithubHelp home page GithubHelp logo

Comments (5)

z0on avatar z0on commented on June 11, 2024

from emapper_to_gomwu_kogmwu.

yaaminiv avatar yaaminiv commented on June 11, 2024

Hi Misha,

The data frames look fine in R. I modeled them after the larval and adult data included with the KOGMWU package with gene and KOG data as factors.

> str(temp)
tibble [400 × 2] (S3: tbl_df/tbl/data.frame)
 $ ApalmGeneID: Factor w/ 400 levels "evm.model.hic_scaffold_1.11",..: 1 2 3 4 5 6 7 8 9 10 ...
 $ log2fc     : num [1:400] 0.484 0.999 -0.977 -0.943 0.832 ...

>head(temp)
# A tibble: 6 × 2
  ApalmGeneID                   log2fc
  <fct>                          <dbl>
1 evm.model.hic_scaffold_1.11    0.484
2 evm.model.hic_scaffold_1.1206  0.999
3 evm.model.hic_scaffold_1.1237 -0.977
4 evm.model.hic_scaffold_1.1322 -0.943
5 evm.model.hic_scaffold_1.1436  0.832
6 evm.model.hic_scaffold_1.1476  0.440
> str(ApalmKOG)
tibble [11,697 × 2] (S3: tbl_df/tbl/data.frame)
 $ ApalmGeneID: Factor w/ 10362 levels "evm.model.hic_scaffold_1.1",..: 1 1 2 3 4 5 6 7 8 9 ...
 $ KOG        : Factor w/ 23 levels "Amino acid transport and metabolism",..: 22 17 18 18 8 21 18 21 21 21 ...

> head(ApalmKOG)
# A tibble: 6 × 2
  ApalmGeneID                             KOG                                                         
  <fct>                                   <fct>                                                       
1 evm.model.hic_scaffold_1.1              Transcription                                               
2 evm.model.hic_scaffold_1.1              Posttranslational modification, protein turnover, chaperones
3 evm.model.hic_scaffold_1.101            Replication, recombination and repair                       
4 evm.model.hic_scaffold_1.101.1.5f5b2bfd Replication, recombination and repair                       
5 evm.model.hic_scaffold_1.1013           Cytoskeleton                                                
6 evm.model.hic_scaffold_1.102            Signal transduction mechanisms  

I'm don't see any problems outright, so I'd appreciate any insight you have!

from emapper_to_gomwu_kogmwu.

yaaminiv avatar yaaminiv commented on June 11, 2024

Hi @z0on I'm still getting errors when I try to run KOGMWU:

> kog.mwu(data = temp, gene2kog = ApalmKOG, Alternative = "t")

Error in xtfrm.data.frame(x) : cannot xtfrm data frames
11. stop("cannot xtfrm data frames")
10. xtfrm.data.frame(x)
9. | xtfrm(x)
8. as.vector(xtfrm(x))
7. FUN(X[[i]], ...)
6. lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
5. order(y)
4. factor(x)
3. as.factor(annotated[, 2])
2. levels(as.factor(annotated[, 2]))
1. kog.mwu(data = temp, gene2kog = ApalmKOG, Alternative = "t")

Any suggestions for how to get around this?

from emapper_to_gomwu_kogmwu.

z0on avatar z0on commented on June 11, 2024

from emapper_to_gomwu_kogmwu.

yaaminiv avatar yaaminiv commented on June 11, 2024

Converting my tibbles to data frames with as.data.frame allowed me to run my data through KOGMWU! Thanks for pointing that out

from emapper_to_gomwu_kogmwu.

Related Issues (3)

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.