Giter Site home page Giter Site logo

Comments (6)

guoweilong avatar guoweilong commented on June 29, 2024

Hi @doncarlos999 ,

Thanks for your feedback. It seems to be a bug in code. And we just update the source code for this program.
Can you update the source code from https://github.com/guoweilong/cgmaptools/blob/master/src/CGmapMethInBins.py
for your local version, and see if the output is improved to right version?

We'll formally release the updated version if it runs well on your data set. And looking forward for your feedback.

Best,
Weilong

from cgmaptools.

doncarlos999 avatar doncarlos999 commented on June 29, 2024

Hi @guoweilong ,
Thanks so much for helping with this and for your quick response.

The updated source code has fixed the truncation problem but all but the last line are na.

➜  25bp_bdg  19-04-29 10:02 wc -l 25bin.tsv            
10564 25bin.tsv
➜  25bp_bdg  19-04-29 10:02 grep na 25bin.tsv | wc -l 
10563
➜  25bp_bdg  19-04-29 10:02 tail -n 4 25bin.tsv      
chr1    264001  264025  na
chr1    264026  264050  na
chr1    264051  264075  na
chr1    264076  264100  0.0473

➜  25bp_bdg  19-04-29 10:01 wc -l 25CGbin.tsv       
10560 25CGbin.tsv
➜  25bp_bdg  19-04-29 10:01 grep na 25CGbin.tsv | wc -l
10559
➜  25bp_bdg  19-04-29 10:01 tail -n 4 25CGbin.tsv      
chr1    263901  263925  na
chr1    263926  263950  na
chr1    263951  263975  na
chr1    263976  264000  0.3076

from cgmaptools.

guoweilong avatar guoweilong commented on June 29, 2024

Hi @doncarlos999 ,

This function will scan from 1st base to the last base.
Thus, some region without enough coverage, will output "NA".
From my side, all the last lines are NOT "NA". So is this what you mean?

Best,
Weilong

from cgmaptools.

doncarlos999 avatar doncarlos999 commented on June 29, 2024

Did you try to run it on the file I attached in my first post?
If so can you attach the results with the same command that I am running?
cgmaptools mbin -i head_chr1.CGmap.txt -c 1 -B 25 -C CG > 25CGbin.tsv

I set the coverage to minimum 1 base. You can see in this file that there are many bases with more than 1 coverage but they are not being picked up in the scan.

Thanks
Carl

from cgmaptools.

guoweilong avatar guoweilong commented on June 29, 2024

Hi Carl,

I just modified the code again, and commit the changes to github. Could you see if the new code works well for your data?

Looking forward to your feedback!

Best,
Weilong

from cgmaptools.

doncarlos999 avatar doncarlos999 commented on June 29, 2024

Hi @guoweilong

This has solved the issue. It now outputs the correct bins.

Thanks a lot for the assistance

from cgmaptools.

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.