Closed komalsrathi closed 4 years ago
Thank you again for a great bug report, @komalsrathi! Code + data = reproducible example, which makes my job a lot easier :) I will look into this today.
This happens because the fusion junction sequence isn't imported from the STAR-Fusion file. When importing data from a defuse results file, you can see that the fusion junction sequence is present:
> defuse833ke <- system.file(
> "extdata",
> "defuse_833ke_results.filtered.tsv",
> package = "chimeraviz")
> fusions_from_chimeraviz_example_data <- importDefuse(defuse833ke, "hg19", 1)
> fusion_from_chimeraviz_example_data <- getFusionById(fusions_from_chimeraviz_example_data, 5267)
> fusion_from_chimeraviz_example_data@geneA@junctionSequence
# 103-letter "DNAString" instance
# seq: TAAAAAGGATGCTTCGCGTTTTCTCTCTCCTTTTTGGAGACAGATTCGCAGTGGTCGCTTCTTCTCCTTGGATTTGTTAAGGATTCCAAGTAACTCTTATTTG
But when I import data from the star-fusion.fusion_predictions.tsv
file you provided:
> sf <- importStarfusion(filename = 'star-fusion.fusion_predictions.tsv', "hg19", 10)
> fusion <- getFusionByGeneName(sf, geneName = 'KANSL1')
> fusion <- getFusionById(fusion, id = '3')
> fusion@geneA@junctionSequence
# 0-letter "DNAString" instance
# seq:
This is simply because the fusion junction sequence isn't provided in the star-fusion.fusion_predictions.tsv
. Luckily for us, Phil Lijnzaad has created a pull request that helps us in this regard: https://github.com/stianlagstad/chimeraviz/pull/23:
STAR-fusion >= 1.2.0, when run with --denovo_reconstruct has a column FUSION_CDS in output file star-fusion.fusion_predictions.abridged.annotated.coding_effect.tsv which contains the fusion sequence. This PR extracts it and adds it to the fusion object (in addition to setting attribute inframe ad also adding FFPM and annots to fusionToolSpecificData )
When that pull request is merged and a new version of chimeraviz has been released, this will work for you providing that you are using STAR-Fusion >= 1.2.0 and run it with the --denovo_reconstruct
option.
chimeraviz should have given you an error message when calling writeFusionReference
with a fusion object that doesn't have the fusion junction sequence. I'll make sure that is added.
Version 1.4.3 of the release version of chimeraviz, and version 1.5.5 of the development version will now issue a warning when calling writeFusionReference
with a Fusion
object without the fusion junction sequence. :)
Thanks Stian for looking into this so quickly - I will do a few tests and close this asap.
Hi Stian,
Is it possible for you to have the function import the other TSV file star-fusion.fusion_predictions.abridged.annotated.coding_effect.tsv
that I have in the drive instead of star-fusion.fusion_predictions.tsv
? The star-fusion.fusion_predictions.tsv will never have a junction sequence or the type of fusion so it is really not very helpful.
The annotated file is the last file to be generated with the new star version and has more information of whether the fusion is INFRAME or not and also has the corresponding sequence (which it obtains from running TRINITY I suppose).
I think pull request https://github.com/stianlagstad/chimeraviz/pull/23 will do what you want, so let's wait for that to be merged in. :)
Hi Stian - any updates on this?
Hey @komalsrathi , no updates from my end. Do you have an example output file from STAR-fusion where the --denovo_reconstruct
parameter was used? Then I can create a new PR where I add it.
Hi Stian - Here are the drive links for the output file from STAR-fusion:
https://drive.google.com/open?id=1XSLJV4EscC77P1z_Pt7f84IG2Dyj2wWv
I am actually interested in looking at the read first fusion: RP11-9L18.2--FLI1.
@komalsrathi Please take a look at https://github.com/stianlagstad/chimeraviz/pull/56
Hi,
I am trying to import the results of STAR-Fusion (
STAR version=STAR_2.5.3a
) and facing some issues:But the reference file is empty and there are no errors associated with it. Can you have a look at this when you get a chance?
Here is my sessionInfo:
STAR output files (there are four .tsv files from STAR output, you can check all four), fastq files and reference output (empty) are attached here: https://drive.google.com/drive/u/0/folders/1NTk0PZRMlH1KFD3xHg8_UXu5m1lmGyKj
Thanks!