Skip to content

Conversation

@lonnekevanbrussel
Copy link
Collaborator

Outrider script for RNA seq pipeline in main.nf (main.yml) and outrider.R

ellendejong and others added 28 commits November 2, 2023 08:04
…ionMask, fitting, pvalue and zscore calculation to run outrider
Copy link
Contributor

@BasMonkey BasMonkey left a 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

- bioconda
- defaults
dependencies:
- bioconda::fastqc=0.12.1 No newline at end of file
Copy link
Contributor

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

sampleTable$pairedEnd <- TRUE

message(date(), ": sampleTable")
print(sampleTable)
Copy link
Contributor

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

# create FRASER object
settings <- FraserDataSet(colData=sampleTable, workingDir="./FRASER_output")
message(date(), ": settings...")
print(settings)
Copy link
Contributor

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

Comment on lines 64 to 65
print(dim(assays(fds)$rawCountsJ))
print(dim(assays(fds)$rawCountsSS))
Copy link
Contributor

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

Comment on lines 69 to 70
print(dim(assays(fds)$rawCountsJ))
print(dim(assays(fds)$rawCountsSS))
Copy link
Contributor

Choose a reason for hiding this comment

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

And for these

}


main(args$query, args$ref, args$output_path, args$pref) No newline at end of file
Copy link
Contributor

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

Copy link
Contributor

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_res <- results(fraser_ds, all=TRUE)
#res <- results(fds, psiType=psiTypes, aggregate=TRUE, collapse=FALSE, all=TRUE)
message(date(), ": result...")
print(fraser_res)
Copy link
Contributor

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

Copy link
Contributor

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

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")
Copy link
Contributor

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
Copy link
Contributor

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.

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.

4 participants