PoisonAlien / maftools

Summarize, Analyze and Visualize MAF files from TCGA or in-house studies.
http://bioconductor.org/packages/release/bioc/html/maftools.html
MIT License
447 stars 219 forks source link

SBS1 counts of TCGA BRCA samples #960

Closed rajkump closed 1 year ago

rajkump commented 1 year ago

Hi Anand,

Question Is there any way to extract the counts of SBS1 (N[C>T]G) trinucleotide (https://cancer.sanger.ac.uk/signatures/sbs/sbs1/) in TCGA BRCA samples?

In another words, the absolute counts of all "A[C>T]G", "C[C>T]G", "G[C>T]G", "T[C>T]G" mutations (as a proxy for SBS1 aging signature) for all TCGA BRCA samples. Please let me know.

Session info

 maftools_2.17.0

Thanks, Praveen

PoisonAlien commented 1 year ago

Hi, You can extract it from trinucleotideMatrix output.

rajkump commented 1 year ago

Hi Anand,

I got hold of TCGA BRCA MAF (TCGA.BRCA.mutect.995c0111-d90b-4140-bee7-3845436c3b42.DR-10.0.somatic.maf.csv).

When I executed this I get the following error.

tcga.tnm = trinucleotideMatrix(maf = maf.Flt, ref_genome = 'BSgenome.Hsapiens.UCSC.hg19', add = TRUE, useSyn = TRUE)

-Extracting 5' and 3' adjacent bases
Error in .Call2("C_solve_user_SEW", refwidths, start, end, width, translate.negative.coord,  : 
  solving row 56: 'allow.nonnarrowing' is FALSE and the supplied start (81914409) is > refwidth + 1

Solved this by changing the correct reference genome BSgenome.Hsapiens.UCSC.hg38

Thanks, Praveen

rajkump commented 1 year ago

Now my question is about the trinucleotideMatrix.object$nmf_matrix values. Are those the absolute counts? I am asking because the values I got has a mean ~15 and median of 12. This seems too low for SBS1 counts. Do you think it is because those are from WES? Please let me know your opinion.

I used the option useSyn = TRUE to include synonymous variants in analysis.

ShixiangWang commented 1 year ago

Yeah, those are counts. You can confirm the number by summing up the rows of your maf in a whole or by sample.

rajkump commented 1 year ago

Thanks a lot Shixiang.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity.

rajkump commented 1 year ago

Thank you so much for the help. I forgot to close the issue.

On Sat, Sep 16, 2023, 10:01 PM github-actions[bot] @.***> wrote:

This issue is stale because it has been open for 60 days with no activity.

— Reply to this email directly, view it on GitHub https://github.com/PoisonAlien/maftools/issues/960#issuecomment-1722367923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHBHYOWH4TCTLAQO2LOMPLX2ZKWZANCNFSM6AAAAAA2NHYGLI . You are receiving this because you authored the thread.Message ID: @.***>