Skip to content

Feature/add outrider#78

Open
lonnekevanbrussel wants to merge 31 commits into
masterfrom
feature/add_outrider
Open

Feature/add outrider#78
lonnekevanbrussel wants to merge 31 commits into
masterfrom
feature/add_outrider

Conversation

@lonnekevanbrussel

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

@BasMonkey BasMonkey left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread Fraser/1.99.3/environment.yml Outdated
- bioconda
- defaults
dependencies:
- bioconda::fastqc=0.12.1 No newline at end of file

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

Comment thread Fraser/1.99.3/fraser.R Outdated
sampleTable$pairedEnd <- TRUE

message(date(), ": sampleTable")
print(sampleTable)

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

Comment thread Fraser/1.99.3/fraser.R Outdated
# create FRASER object
settings <- FraserDataSet(colData=sampleTable, workingDir="./FRASER_output")
message(date(), ": settings...")
print(settings)

Copy link
Copy Markdown
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 thread Fraser/1.99.3/fraser.R Outdated
Comment on lines +64 to +65
print(dim(assays(fds)$rawCountsJ))
print(dim(assays(fds)$rawCountsSS))

Copy link
Copy Markdown
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 thread Fraser/1.99.3/fraser.R Outdated
Comment on lines +69 to +70
print(dim(assays(fds)$rawCountsJ))
print(dim(assays(fds)$rawCountsSS))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And for these

Comment thread Outrider/1.20.0/outrider.R Outdated
}


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

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

Comment thread 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)

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

Comment thread Fraser/1.99.3/fraser.R

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

Comment thread 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")

Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants