Comments (8)
There's another issue I could use help with in plotting,:
Traceback (most recent call last):
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/bin/cnvkit.py", line 9, in <module>
args.func(args)
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/cnvlib/commands.py", line 685, in _cmd_diagram
cnarr = CNA.read(args.filename) if args.filename else None
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/cnvlib/diagram.py", line 70, in create_diagram
drawing = build_chrom_diagram(features, chrom_sizes, probe_pset.sample_id)
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/cnvlib/diagram.py", line 116, in build_chrom_diagram
return bc_organism_draw(chr_diagram, title)
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/cnvlib/diagram.py", line 163, in bc_organism_draw
sub_component.draw(cur_drawing)
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/Bio/Graphics/BasicChromosome.py", line 281, in draw
sub_component.draw(cur_drawing)
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/Bio/Graphics/BasicChromosome.py", line 426, in draw
self._overdraw_subcomponents(cur_drawing) # Anything on top
File "/group/ngs/src/bcbio-nextgen/latest-devel/rhel6-x64/anaconda/lib/python2.7/site-packages/Bio/Graphics/BasicChromosome.py", line 680, in _overdraw_subcomponents
assert 0 <= start <= end <= self.bp_length
from cnvkit.
I merged a pull request that should fix this. Can you try it now?
from cnvkit.
@etal thanks, I managed to circumvent the initial problem but the second one above still bugs me. Is it maybe because it's a whole genome analysis and I'm trying to include the cnr file in the diagram command and it gets too crowded? Without the cnr file the diagram gets produced fine (but without gene labels)
from cnvkit.
Do the alternative contigs in the .cnr file (chr11_gl000202_random, chr17_ctg5_hap1, chr17_gl000203_random) also appear in the .cns file? I'm guessing they don't, any in any case those contigs probably don't have usable copy number information on them. Can you try deleting those rows (i.e. those contigs) from the .cnr file and retrying the plots?
from cnvkit.
I removed all the alternative contigs prior to getting the second error. Thanks for looking into this, again. I'll do some more testing tomorrow if it's something to do with the fact that we have sometimes overlapping genes on one row as comma separated lists.
from cnvkit.
Sorry, I misunderstood what you did. If this is whole-genome data, then it could be an overcrowding issue where a feature gets squeezed to a size of less than a pixel. What averge bin size did you use to split the "targets" for your WGS dataset?
You could also try the "--short-names" option when processing the targets in order to resolve some of the overlapping gene names.
If you can link to any of the .cnr files you've created I can take a closer look.
from cnvkit.
Hi @etal, I was calling cnvkit from within bcbio and it uses the following settings:
--antitarget-avg-size 1000 --antitarget-min-size 75 --target-avg-size 1000
from cnvkit.
I haven't seen this error in a while, and testing with a WGS-density snippet of chr17 works fine for me. Maybe something was fixed in CNVkit or Reportlab in the interim. But please reopen if you see it again.
from cnvkit.
Related Issues (20)
- Error while indexing BAM files
- Cnvkit call and cnvkit genemetrics_differences + scatter plot
- Convert SEG format and do CNVkit to analysis ?
- Gender Inference in Reference Step
- Update included references for hg38 HOT 1
- What are the specific steps to run for cnvkit.py batch -m wgs?
- How to normalise different sequencing coverage samples in CNVKit?
- For paired-WGS, is it necessary step of markduplicates by PICARD? HOT 1
- `import-rna` not compatible with pandas 2 HOT 1
- Can the results of CNVKIT be applied to clinical clinical?
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte` HOT 1
- negative number in cn column of *call.cns
- Installation from VCS via pip fails during pomegranate installation
- the false negative of segment HOT 2
- Question: Clarification on building a reference HOT 3
- "Genemetrics" combination algorithm seems to include an additional antitarget bin
- Calculating non-integer copy number variations
- A question about purity assumption in the Docs
- Docker image of cnvkit does not contain additional scripts HOT 3
- We could not set the gender of the sample correctly in reference.py HOT 2
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 cnvkit.