Comments (5)
While you can make pyBigWig accept input like that, the resulting file will largely be useless. For a bigWig file to have normal functionality, all entries for each chromosome must be together. This is true regardless of the program used.
Sent from my iPhone
On 21 May 2016, at 14:37, PanosFirmpas [email protected] wrote:
hello,
I'm writing a script that goes from a bam input to a bw output (it's in my github page if you feel like checking it out, input would be very welcome!).
Right now, my script outputs wiggle "strings" in a subprocess pipe to wigToBigWig(the ucsc utility). This is very convenient since wigtobigwig seems to accept the input with no concerns that the chromosomes are out of order, as long as the input per chromosome is in order
for example:
chromosome 2 start:100 step 1:
1
2
1
chromosome 1 start:100 step 1:
1
2
1
chromosome 2 start:200 step 1:
1
2
1
chromosome 1 start:200 step 1:
1
2
1works fine because the input for each chromosome is in proper order.
does that work with pyBigWig?
If it does i think it should provide a nice speed boost for my script !
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
from pybigwig.
Could you please elaborate a bit on the file being useless? the output i get seems like what you'd expect it to be (on the browser, around genomic locations we're familiar with), am I getting noise and haven't noticed?
from pybigwig.
Presumably the program you're feeding interleaved regions to sorts them before actually writing them to a file. bigWig files themselves actually require that intervals from a given chromosome be next to each other and in a sorted order in order for the indexing to work. Since pyBigWig doesn't sort the regions for you it'll produce the file with regions in the order provided...which will produce a bigWig file with a broken index.
Anyway, unless validate=False
is used, pyBigWig will also prevent creation of a file with a broken index.
from pybigwig.
As an aside, your bamToBigWig
program sounds like our bamCoverage
program from deepTools.
from pybigwig.
It does look very similar indeed, I'm sorry i didn't know about your tool, but well this was a nice learning experience for me !
Thank you for the comments on bigwigs, it looks like i need to do some testing!!
from pybigwig.
Related Issues (20)
- RuntimeError: Invalid interval bounds
- Document performance considerations? HOT 4
- Cannot add entries of value type int, but only float HOT 2
- support for osx-arm64 HOT 2
- numpy support broken in 0.3.18? HOT 1
- Create a BedGraph file using addEntries() throws segmentation fault HOT 2
- library import error HOT 4
- pyBigWig fails to find numpy installation when installing from PyPI HOT 5
- Writing a nan value should leave a gap HOT 7
- Can't enforce numpy features when pyBigWig is used as a dependency in downstream package HOT 5
- pip installation broken HOT 4
- Installing through pip not working HOT 9
- addHeader does not support multiple calls
- Support for python >=3.11 HOT 1
- Issue Downloading pyBigWig HOT 1
- Simple patch to resolve conflict with roundup() macro
- Stats Sum Not Working as Expected
- 'zsh: segmentation fault ' HOT 1
- Out of memory listing entries on one human chromosome on a machine with 300 GB ram and 165 GB BigBed file HOT 1
- pyBigWig.entries() should return empty array, not None when no entries are found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybigwig.