Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotting fails #10

Open
inijman opened this issue Sep 29, 2017 · 3 comments
Open

plotting fails #10

inijman opened this issue Sep 29, 2017 · 3 comments

Comments

@inijman
Copy link

inijman commented Sep 29, 2017

HI,

I'm trying to plot events found in a sample but the script fails with the following error:
***** ERROR: Requested column 4, but database file tmp.$SAMPLE.prev-and-next.windows.bed only has fields 1 - 0.

I've found that this file is actually empty, mainly because of the the awk command in plot_cnv.sh is selecting $4==0 from the models.bed file. In my models files only the values, 3,6 and -1 appear.

How can I fix this?

Best,

@rgcgithub
Copy link
Owner

Good catch, we haven't updated the plotting script in quite some time. In the short term, you should be able to change it to '$4 >= 0' (-1 indicates a blacklisted window, which is what this is attempting to filter on). I'll push a fix, but the script may need some more attention.

@lakhujanivijay
Copy link

lakhujanivijay commented Nov 29, 2019

Hi

I am looking at this for plotting the CNV results and I am wondering what is this file - sample.cnv.txt ; is this the sample.cnv.bed file which is the output from $CLAMMS_DIR/call_cnv program?

Please help.

@katherinef
Copy link

Yes, it takes the sample.cnv.bed.

I think I've noticed another problem with the plot_cnvs.R. It seems to me that the line:
df$max.cn.considered <- ifelse(df$max.cn.considered == 0, 3, -1)
should be:
df$max.cn.considered <- ifelse(df$max.cn.considered >= 0, 3, -1)

Can someone please confirm?

Best wishes

Kath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants