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 types #215

Draft
wants to merge 8 commits into
base: dev
Choose a base branch
from
Draft

Splice types #215

wants to merge 8 commits into from

Conversation

mumichae
Copy link
Collaborator

Annotate Splicing outputs with different splice types.

#' - theta: '`sm cfg.getProcessedDataDir()+
#' "/aberrant_splicing/datasets/savedObjects/raw-{dataset}/theta.h5"`'
#' - txdb: '`sm cfg.getProcessedDataDir() + "/aberrant_expression/{annotation}/txdb.db"`'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snakemake cannot find the txdb, because the annotation wildcard is not specified in the output.
I wouldn't annotate the fds here anyway, because it is not thought to be annotation-depedent. Rather, it would be more useful to only annotate in the steps after FRASER fitting

@mumichae mumichae changed the base branch from master to dev June 24, 2021 12:32
Comment on lines +22 to +26
#' - spliceTypeSetup: '`sm cfg.AS.getWorkdir() + "/spliceTypeConfig.R"`'
#' - addAnnotation: '`sm cfg.AS.getWorkdir() + "/fds_annotation.R"`'
#' - addSpliceType: '`sm cfg.AS.getWorkdir() + "/spliceType_frameshift_annotation.R"`'
#' - subtypes: '`sm cfg.AS.getWorkdir() + "/subtypes_exonSkipping_inconclusive.R"`'
#' - annotate_blacklist: '`sm str(projectDir / ".drop" / "helpers" / "annotate_blacklist.R")`'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would strongly advice to have this in a separate package or within FRASER. But not as just scripts lying around within drop. This functionality could be even good for FRASER by itself. So please think twice if you want to put it just here as is.

#' - ids: '`sm lambda w: sa.getIDsByGroup(w.dataset, assay="RNA")`'
#' - fileMappingFile: '`sm cfg.getRoot() + "/file_mapping.csv"`'
#' input:
#' - setup: '`sm cfg.AS.getWorkdir() + "/config.R"`'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we want the config in requirements and not as params? There should be nothing in there that could change the outcome of the results.
This goes of course also for the other scripts.


# Add the junction annotations to the fds
#message("03: load db for annotation")
#txdb <- loadDb(snakemake@input$txdb)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clean up if you do not need the lines.


### Do the annotation just for the most used intron (highest median expression)
print("start calculating annotations")
annotations <- sapply(c(1:length(fds_junctions)), function(i){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how fast this is, but rather think of vectorized versions. granges is optimized to find overlaps between 1000s of ranges but not 1 by 1 over 1000s ranges.

@@ -0,0 +1,67 @@
### 20210604 klutz

### basic annotations (start, end, none, both) for full fds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a bit more details what the function is doing. Especially going through it you somehow only looking at the max expressed junctions? Why? Please describe this as a doc. For more details see roxygen and some bioconductor packages.

@mumichae
Copy link
Collaborator Author

Hi, is this PR still being worked on?

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

Successfully merging this pull request may close these issues.

3 participants