Skip to content
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

splice junction usage between multiple tissues #26

Open
frankbioinfo opened this issue Oct 23, 2017 · 3 comments
Open

splice junction usage between multiple tissues #26

frankbioinfo opened this issue Oct 23, 2017 · 3 comments

Comments

@frankbioinfo
Copy link

Hello @hartleys

Thank you for developing this method.

I had a question,

Can this model be used to detect tissue specific splice junction usage across n=5 tissues? at the same time?

I used dexseq earlier but i fail to find contrast function like DESeq2, is it possible to perform such analysis using JunctionSeq?

Many thanks.

@hartleys
Copy link
Owner

hartleys commented Nov 7, 2017

See section 8.2 of the JunctionSeq user manual.

Note that this will only work if you have at least 2 samples for each tissue type. As always, you need biological replicates.

So say you have 3 levels:

threeLevelVariable <- c("GroupA","GroupA",
        "GroupB","GroupB",
        "GroupC","GroupC");

Load the junctionSeq example dataset:

library("JunctionSeq")
library("JctSeqData")

decoder.file <- system.file("extdata/annoFiles/decoder.bySample.txt",
    package="JctSeqData",
    mustWork=TRUE);
decoder <- read.table(decoder.file,
    header=TRUE,
    stringsAsFactors=FALSE);
gff.file <- system.file(
    "extdata/tiny/withNovel.forJunctionSeq.gff.gz",
    package="JctSeqData",
    mustWork=TRUE);
countFiles <- system.file(paste0("extdata/tiny/",
    decoder$sample.ID,
    "/QC.spliceJunctionAndExonCounts.withNovel.forJunctionSeq.txt.gz"),
    package="JctSeqData", mustWork=TRUE);

And now you can just do the analysis normally:

jscs <- runJunctionSeqAnalyses(sample.files = countFiles,
    sample.names = decoder$sample.ID,
    condition=factor(threeLevelVariable),
    flat.gff.file = gff.file,
    );

writeCompleteResults(jscs, outfile.prefix = "jctseqexampleThreeLvl")

These output files will have multiple columns for the expression estimates of the different levels, and will have the fold changes for each possible pair.

@frankbioinfo
Copy link
Author

@hartleys thanks, sorry for late response will try this and keep you posted.

@scseekers
Copy link

hi @frankbioinfo

Did you try it? Actually, I have a similar case, wherein I wish to perform all tissue vs all tissue comparison. But the above code gives me all against one (LFCA/B), (LFCA/C), (LFCA/D), where A,B,C,D are tissue types. Also, I get a single significant gene list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants