cancerit / BRASS

Breakpoints via assembly - Identifies breaks and attempts to assemble rearrangements in whole genome sequencing data.
GNU Affero General Public License v3.0
57 stars 20 forks source link

Bedtools problem with get_rg_cns.R #104

Open jsmedmar opened 3 years ago

jsmedmar commented 3 years ago

Best regards,

I'm on version v6.3.2 and I was reviewing the work done by the script get_rg_cns.R.

I realized that the vector cn_estimates, which is the main output, contained always only NA values, indicating that the estimation for small copy number segments was not working.

https://github.com/cancerit/BRASS/blob/dd0e1c1324459c4090c598dc6a12b7b71ef34586/perl/share/Rscripts/get_rg_cns.R#L426

After further investigation, I realized that bedtools was not returning headers expected by get_rg_cns.R, specifically seg_coords were not included in the output of the bedtools coverage system call--resulting in coverages being a vector of NA values:

https://github.com/cancerit/BRASS/blob/dd0e1c1324459c4090c598dc6a12b7b71ef34586/perl/share/Rscripts/get_rg_cns.R#L401-L402

I noticed that on release v6.3.4 you make a reference to stack collision errors, and I wonder if that means this same bug I'm encountering.

Thank you so much in advance.