Closed carolinehey closed 10 months ago
Hello,
First of all, don't use the old script ! The performance is not as good as the latest version and to some extent could introduce wrong calls.
Secondly, I am unsure of how it behaves with the way you wrote the relative paths. Try : "QDNAseq/105025949544_filtered.bam_ratio.txt" -> "./QDNAseq/105025949544_filtered.bam_ratio.txt" "test" -> "./test" "cytoband_adapted_hg38.csv" -> "./cytoband_adapted_hg38.csv"
Thridly, how did you generate you input, with what software ? Please provide an example !
I insist that the latest scripts should really be your primary focus. If you can use : "QDNAseq_from_bam_no_chrX.R" to generate you input "shallowHRD_hg19_1.13_QDNAseq_no_chrX.R" to run the analysis.
Best regards, Alexandre Eeckhoutte
Okay, i will try align to hg19 then. The change in relative paths did not solve the problem. I generated the input using your QDNAseq_from_bam_chrX.R script. As far as i see the input looks like your example.
Section of my input: "chromosome" "start" "ratio" "ratio_median" 1 850001 0.174 -0.002 1 900001 -0.144 -0.002 1 950001 0.025 -0.002 1 1000001 0.011 -0.002 1 1050001 -0.135 -0.002 1 1100001 -0.037 -0.002 1 1200001 0.01 -0.002 1 1250001 -0.126 -0.002 1 1300001 0.114 -0.002 1 1350001 0.057 -0.002 1 1450001 -0.148 -0.002 1 1550001 0.006 -0.002 1 1750001 0.068 -0.002 1 1800001 0.059 -0.002 1 1850001 0.037 -0.002
The old script doesn't work with the chrX, it was added after in the lastest versions. "QDNAseq_from_bam_chrX.R" work for hg19 (default of QDNAseq) and a small adaptation should be made for hg38 !
Going with hg19 and "QDNAseq_from_bam_no_chrX.R" followed by "shallowHRD_hg19_1.13_QDNAseq_no_chrX.R" should make the run smooth.
Keep me posted!
Alexandre
Using hg19 did solve my problems. Thank you wery much. Another question: I do not align using only chr 1-22 because it will introduce some sort of bias in my opinion. The scripts do work anyway, but do you think it is possible to remove everything but chr 1-22 after alignment instead. Then i do not see it as a problem.
Hello yes it is possible! I'm pretty sure it won't change much regarding the profiles but you can remove everything but the chr 1-22 after alignement.
Best, Alexandre
Hello,
Do you have other questions or can I close this issue ?
Best, Alexandre Eeckhoutte
Yes, you can close it. Thank you for the help.
Best, Caroline
Hello, I'm new to Rscripts using terminal and shallowHRD. I tried running the old_hg38 script but get these error messages. Any help on how to solve them would be appreciated.
(shallowHRD) root@srvodeappgsq02:/projekt/G150-2023-Functional-Genomics/shallowHRD/shallowHRD# Rscript old_versions/shallowHRD_hg 38_old.R QDNAseq/105025949544_filtered.bam_ratio.txt test cytoband_adapted_hg38.csv Loading required package: ggplot2 Loading required package: stats4 Loading required package: BiocGenerics
Attaching package: ‘BiocGenerics’
The following object is masked from ‘package:gridExtra’:
The following objects are masked from ‘package:stats’:
The following objects are masked from ‘package:base’:
Loading required package: S4Vectors
Attaching package: ‘S4Vectors’
The following objects are masked from ‘package:base’:
Loading required package: IRanges Loading required package: GenomeInfoDb
Sample : 105025949544_filtered Warning message: NaNs produced Warning message: NaNs produced on going... Error in X[i, 5] : subscript out of bounds Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'diff': argument 'x' must be numeric Calls: localMinima -> diff -> density -> density -> density.default Error in density.default(test) : argument 'x' must be numeric Calls: density -> density -> density.default Don't know how to automatically pick scale for object of type. Defaulting to continuous.
Error in
geom_vline()
: ! Problem while computing aesthetics. ℹ Error occurred in the 2nd layer. Caused by error inFUN()
: ! object 'Threshold' not found Backtrace: ▆[<-
(*tmp*
, 1, c_conf, value = 1) : subscript out of bounds Calls: breakSmoothToLGA -> getSegmentID on going... Error in$<-.data.frame
(*tmp*
, num_line, value = 1:0) : replacement has 2 rows, data has 0 Calls: $<- -> $<-.data.frame Error ingeom_point()
: ! Problem while computing aesthetics. ℹ Error occurred in the 1st layer. Caused by error inFUN()
: ! object 'num_line' not found Backtrace: ▆size
aesthetic for lines was deprecated in ggplot2 3.4.0. ℹ Please uselinewidth
instead. Error in if (higlight_CCNE1[1, 5] >= 0.5) { : missing value where TRUE/FALSE needed Error: object 'WC' not found