Code Monkey home page Code Monkey logo

Comments (2)

ChenWeiyan avatar ChenWeiyan commented on July 30, 2024

Dear Elmar Bucher,

Thanks for your appreciation and the feedback of my package!

I checked the genes in the PPI network matrix in several ways but cannot find such duplications:

  1. I checked the Entrez ID in the matrix with function duplicated in R and there is no duplication in both matrices: which(duplicated(rownames(net13Jun12.m))), and the result showed integer(0) which means none of them are identical.
  2. I also annotated the Enterz ID into Gene Symbol, and then checked the duplications. But there is still no one for net13Jun12.m and only three in net17Jan16.m, which is much less than what you observed.
  3. And I checked the matrices you provided, it seems those genes which are excluded do not show up in the reshaped ones.

So I am wondering how you actually identify such duplications, could you provide more details so that I can help you further?

Best,
Weiyan

from landscent.

elmbeech avatar elmbeech commented on July 30, 2024

Dear Weiyan,

I see what went wrong. I am sorry for that.

I am not really an R programmer. So I downloaded the network to a tab separated file like this.

library(LandSCENT)
data(net13Jun12.m)
write.table(net13Jun12.m, "net13Jun2012.original.entrez.m.tsv", sep="\t")

And uploaded it into Python3 for mapping the entrenz gene identifier to other gene identifiers.

import pandas as pd
df_net13 = pd.read_csv("net13Jun2012.original.entrez.m.tsv", sep="\t")

Because gene identifier not always map one to one, I used the pandas command:

df_net13 = df_net13.drop_duplicates()

Now drop_duplicates removes all duplicate row, but it ignores the index.
So it removed genes that are in the network the same way connected then already another gene.

I am sorry about that!
I think I can close this issue.
Elmar

from landscent.

Related Issues (17)

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.