-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/add outrider #78
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
base: master
Are you sure you want to change the base?
Conversation
…nf at NexflowModules
…parameter in functions main and save_output
…d choose accordingly
…ionMask, fitting, pvalue and zscore calculation to run outrider
…ate filtering for exon level and ratio fpkm
BasMonkey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Some minor remarks:
- Some files are missing a newline at the end of the file. Why it's important? See https://stackoverflow.com/a/729795
- Try to be consistent with the indentation across your files / code
- See individual files for the remarks per line
Fraser/1.99.3/environment.yml
Outdated
| - bioconda | ||
| - defaults | ||
| dependencies: | ||
| - bioconda::fastqc=0.12.1 No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline at the end of this file, see https://stackoverflow.com/a/729795
Fraser/1.99.3/fraser.R
Outdated
| sampleTable$pairedEnd <- TRUE | ||
|
|
||
| message(date(), ": sampleTable") | ||
| print(sampleTable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to avoid print statements, since they might get lost in the stdout. If you want to save / view the data of a variable, write it to a logfile instead
Fraser/1.99.3/fraser.R
Outdated
| # create FRASER object | ||
| settings <- FraserDataSet(colData=sampleTable, workingDir="./FRASER_output") | ||
| message(date(), ": settings...") | ||
| print(settings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for this print statement
Fraser/1.99.3/fraser.R
Outdated
| print(dim(assays(fds)$rawCountsJ)) | ||
| print(dim(assays(fds)$rawCountsSS)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for these print statements aswell
Fraser/1.99.3/fraser.R
Outdated
| print(dim(assays(fds)$rawCountsJ)) | ||
| print(dim(assays(fds)$rawCountsSS)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And for these
Outrider/1.20.0/outrider.R
Outdated
| } | ||
|
|
||
|
|
||
| main(args$query, args$ref, args$output_path, args$pref) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline at the end of this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the two files that uses two spaces as indentation (instead of four). Try to be consistent throughout your code
Fraser/1.99.3/fraser.R
Outdated
| fraser_res <- results(fraser_ds, all=TRUE) | ||
| #res <- results(fds, psiType=psiTypes, aggregate=TRUE, collapse=FALSE, all=TRUE) | ||
| message(date(), ": result...") | ||
| print(fraser_res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to avoid print statements, since they might get lost in the stdout. If you want to save / view the data of a variable, write it to a logfile instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the two files that uses two spaces as indentation (instead of four). Try to be consistent throughout your code
Outrider/1.20.0/outrider.R
Outdated
| filter_expression <- function(ods, query, prefix){ | ||
| if(grepl("gene", prefix)){ | ||
| ##FOR GENE LEVEL | ||
| ods <- filterExpression(ods, fpkmCutoff = 1, minCounts = FALSE, filterGenes = FALSE, gtfFile="/hpc/diaggen/data/databases/gencode/gencode.v44.primary_assembly.basic.annotation.gtf") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be better to fill this path as a parameter or via a config file. The path may change and to include that change a new release of the software must be made. (or worse: this line gets overlooked at all)
| @@ -0,0 +1,19 @@ | |||
| ################## BASE IMAGE ###################### | |||
| FROM --platform=linux/amd64 quay.io/biocontainers/bioconductor-outrider:1.18.1--r43hf17093f_0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The base image is using version 1.18.1--r43hf17093f_0. Folder name Outrider/1.20.0/ doesnot match.
Outrider script for RNA seq pipeline in main.nf (main.yml) and outrider.R