-
Notifications
You must be signed in to change notification settings - Fork 13
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
full command to run shallowHRD using ichorCNA output file #2
Comments
Hello, There is a little trick to run ichorCNA! You have to adapt the output to the format required by shallowHRD and therefore use two different files of ichorCNA's output : the XXX.correctedDepth.txt and the XXX.seg file (where XXX is the name of your file). Below you will find a simple script in R to unite them. Then it should work!
Tell me if you manage to make it work. Best, |
Great, Works! I changed the script a little to avoid the error.
|
Glad it worked! Good luck on you research!! Best, |
Hi Alexandre, I ran into the same error using QDNAseq output files(.seg and .txt). Best, |
Hello Gianluca, You need to adapt the output of QDNAseq to shallowHRD. What I'm doing :
The point is to match this format: You can then use the shallowHRD_hg19_QDNAseq.R script provided in the repository and it should work! Best, |
Fab!
It works perfectly.
Thanks a lot
Gianluca
Il giorno gio 25 mar 2021 alle ore 09:33 Alexandre Eeckhoutte <
***@***.***> ha scritto:
… Hello Gianluca,
You need to adapt the output of QDNAseq to shallowHRD. What I'm doing :
## end of QDNAseq script that I'm using personnaly
copyNumbersSegmented <- segmentBins(copyNumbersSmooth, transformFun = 'none',
alpha = 0.05, nperm = 10000, p.method = "hybrid",
min.width=5, kmax=25, nmin=200, eta=0.05,
trim = 0.025, undo.splits = "sdundo", undo.SD=1)
copyNumbersSegmented <- normalizeSegmentedBins(copyNumbersSegmented)
## save the results of QDNAseq
exportBins(copyNumbersSegmented, file=paste0(outputPath,"/",NAMEEE,".bam_CN"), format="tsv", type=c("copynumber"))
exportBins(copyNumbersSegmented, file=paste0(outputPath,"/",NAMEEE,".bam_seg"), format="tsv", type=c("segments"))
## Adapt the outputs to a correct format
X = read.table(paste0(outputPath,"/",NAMEEE,".bam_CN"), sep = "\t", header = TRUE)
Y = read.table(paste0(outputPath,"/",NAMEEE,".bam_seg"), sep = "\t", header = TRUE)
X = cbind(X, Y[,5])
X = X[,-4]
X = X[,-1]
head(X)
colnames(X) <- c("chromosome", "start", "ratio", "ratio_median")
write.table(X, file = paste0(outputPath,"/",NAMEEE,".bam_ratio.txt"), sep = "\t", row.names = FALSE)
file.remove(paste0(outputPath,"/",NAMEEE,".bam_CN"))
file.remove(paste0(outputPath,"/",NAMEEE,".bam_seg"))
And then you can use the shallowHRD_hg19_QDNAseq.R script provided
repository and it should work!
Best,
Alexandre
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIHNEU5UVCU6OARQK5Z7BK3TFLYOJANCNFSM4YF66PEQ>
.
|
Hi,
I am using shallowHRD to process the output data from ichorCNA.
By running shallowHRD_hg19_ichorCNA.R, it still required the file name ending with .bam_ratio.txt.
I am wondering which file should I provide, WGS1221-L3.100k.seg or WGS1221-L3.100k.seg.txt, since both of them failed to pass the command even I changed the name to WGS1221-L3.100k.seg.bam_ratio.txt
Since shallowHRD had already provided the ichorCNA option, I am wondering which is the right command to get the HRD score.
Thanks,
Junfeng
The text was updated successfully, but these errors were encountered: