8000 Issues with install dependencies · Issue #37 · dariober/cnv_facets · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Issues with install dependencies #37

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

Open
umasaxena opened this issue May 28, 2021 · 2 comments
Open

Issues with install dependencies #37

umasaxena opened this issue May 28, 2021 · 2 comments

Comments

@umasaxena
Copy link

Hello, I installed cnv_facts via bioconda and i seem to getting the desired parameter info via --help. However whilst running on bam files; I get the following error -

[2021-05-28 14:08:48] Loading file F00105616_BRCA.csv.gz...
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  : 
  line 1 did not have 7 elements
Calls: data.table -> read.table -> scan
Execution halted

Should I manually install R package data.table in the conda environment. Any suggestion is appreciated. I am using R version 4.x.x version.

@umasaxena
Copy link
Author
umasaxena commented May 28, 2021

Just updating my previous query. I dont think it may be a dependency but more about the columns read by the script - cnv_facets.R on my tumor normal data generates this csv.gz file

Chromosome,Position,Ref,Alt,File1R,File1A,File1E,File1D,File2R,File2A,File2E,File2D
1,69372,.,.,1,0,0,0,0,0,0,0
1,69428,T,G,1,0,0,0,1,0,0,0
1,69590,T,A,0,0,0,0,2,0,0,0
1,69594,T,C,0,0,0,0,2,0,0,0
1,69610,C,T,0,0,0,0,1,0,0,0
1,69618,.,.,0,0,0,0,1,0,0,0
1,69635,G,C,1,0,0,0,1,0,0,0
1,69761,A,T,2,0,0,0,0,0,0,0
1,69808,G,C,1,0,0,0,0,0,0,0

This contains 12 columns and from the error it looks like it requires only 7 columns. Could you please let me know any solution to this issue. The way I run it, is as follows -

cnv_facets.R -N 14 -t $tumor_file -n $normal_file -vcf $sample_vcf -o $sample --gbuild hg19 --annotation $annot --targets $interval

Intervals is Broad.human.exome.b37.gatk.interval_list from gatk resource bundle

@dariober
Copy link
Owner

Unfortunately, R doesn't say which line caused the error. I suspect the problem is not with the pileup file but either with the annotation or the targets file. To check that, can you try in an R session, for the annotation file $annot:

library(data.table)
ann<- data.table(read.table(your-annotation-file, comment.char= '#', header= FALSE, sep= '\t', stringsAsFactors= FALSE, na.strings= ""))

and for the targets file $interval:

library(data.table)
targets<- data.table(read.table(xargs$targets, comment.char= '#', header= FALSE, sep= '\t'))

Also, have a look if these files are tab separated with complete lines.

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

2 participants
0