Giter Club home page Giter Club logo

Comments (6)

Fu-Yilei avatar Fu-Yilei commented on July 21, 2024 1

I will download mm39 and take a look, thanks!

from methphaser.

Fu-Yilei avatar Fu-Yilei commented on July 21, 2024

Should be a bug, could you please show me the vcf file? I have never used MethPhaser on mice samples so a little example could help.

from methphaser.

liuy0421 avatar liuy0421 commented on July 21, 2024

It's not public data - I'll have to ask if it could be shared. I may get back to you on this at a later date. Sorry I can't be more helpful now.

Although one thing I encountered from the current implementation is that, since I filtered the .vcf file for only those on chromosome 1-19 (mouse autosomes), phase_block_df (defined here) defaults the dtype for the chr column to be int instead of str, and the subsequent comparison fails as int(chromosome) == str(chromosome) returns False. As a result all chromosomes were being skipped. Adding dtype={'chr' : 'str' } to the pd.read_csv() call in defining phase_block_df fixed the issue. A similar issue is also in methphasing.

from methphaser.

Fu-Yilei avatar Fu-Yilei commented on July 21, 2024

I think that was because most human autosomes can be parsed as int but I can fix that, thanks for pointing out! Btw what is your reference genome headers like? Maybe that was different from human autosomes and could be the issue, not sure.

from methphaser.

liuy0421 avatar liuy0421 commented on July 21, 2024

We use mm39 as reference.

Now I think about it - this line here reads in info from the reference (and the next line gets the chromosome column). If there are non-autosome entries in the reference, there will be non-numerics in their names, and the chromosome column dtype will be str. In this case, if the .vcf file is filtered for autosomes and the chromosome column dtype gets defaulted to int, the int to str comparison fails.

from methphaser.

Fu-Yilei avatar Fu-Yilei commented on July 21, 2024

Yeah mm39 starts with something like NC_000067.7 and HG38 starts with chr22. I will modify the dataframe reader, thanks for pointing that out

from methphaser.

Related Issues (11)

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.